Make asmr.one download dialog bigger

Make asmr.one download dialog bigger.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name              Make asmr.one download dialog bigger
// @name:zh-CN        放大 asmr.one 的下载对话框
// @name:ja-JP        asmr.one のダウンロード窓を拡大せよ
// @namespace         http://tampermonkey.net/
// @version           2.0.0-20241112
// @description:en    For further tuning, search for "look here" in script.
// @description:zh-CN 如需微调大小,搜索脚本中的 "look here"
// @description:ja-JP サイズを調整するには、スクリプトの「look here」をご参照ください
// @author            Homo Hamstern (仓猿)
// @match             https://asmr.one/work/*
// @match             https://*.asmr.one/work/*
// @grant             none
// @license           MIT
// @description Make asmr.one download dialog bigger.
// ==/UserScript==

(() => {
    "use strict";
    
    const width = "60vw"; // locok here
    const height = "55vh"; // locok here
    
    const style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = `
      .q-gutter-y-sm .q-scrollarea {
          height: ${height} !important;
      }

      .q-dialog-plugin {
          width: ${width} !important;
          max-width: ${width} !important;
      }
    `;
    document.head.appendChild(style);
})();