Bypass Stencil Sticker's Size Limit

Make stencil stickers larger than the default size limit.

Nainštalovať tento skript?
Autor skriptu navrhuje

Tiež sa vám môže páčiť Search Bar on Palettes Panel.

Nainštalovať tento skript
// ==UserScript==
// @name         Bypass Stencil Sticker's Size Limit
// @namespace    Vholran.BypassStencilSticker'sSizeLimit
// @version      1.0.2
// @description  Make stencil stickers larger than the default size limit.
// @author       Vholran (https://greasyfork.org/en/users/841616)
// @match        https://*.drawaria.online/*
// @require      https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js
// @icon         https://www.google.com/s2/favicons?domain=drawaria.online
// @grant        none
// ==/UserScript==

(($, undefined) => {
    $(() => {
        if ($('#main').length && LOGGEDIN) {
            const roomObserver = new MutationObserver(m => {
                if (/\Шаблоны|Plantillas|Stencils/.test(m[0].target.textContent)) {
                    new MutationObserver(m => {
                        if (m[0].target.disabled) {
                            m[0].target.removeAttribute('disabled');
                        }
                    }).observe($('.fa-parachute-box').parent()[0], { attributes: true });
                }
                roomObserver.disconnect();
            });
            roomObserver.observe($('#infotext')[0], { childList: true });
        }
    });
})(window.jQuery.noConflict(true));