Bypass Stencil Sticker's Size Limit

Make stencil stickers larger than the default size limit.

目前為 2022-07-06 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Bypass Stencil Sticker's Size Limit
// @namespace    http://tampermonkey.net/
// @version      1.0.1
// @description  Make stencil stickers larger than the default size limit.
// @author       Vholran
// @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) => {
    $(() => {
        let roomWords = new RegExp('\Шаблоны|Plantillas|Stencils');
        let joinRoomObserver = new MutationObserver((mutations) => {
            if (roomWords.test(mutations[0].target.textContent) && LOGGEDIN) {
                let launchStickerObserver = new MutationObserver((mutations) => {
                    if (mutations[0].target.disabled) {
                        $('.fa-parachute-box').parent().prop('disabled', false);
                    }
                });
                launchStickerObserver.observe($('.fa-parachute-box').parent()[0], {
                    attributes: true
                });
            }
            joinRoomObserver.disconnect();
        });
        joinRoomObserver.observe($('#infotext')[0], {
            childList: true
        });
    });
})(window.jQuery.noConflict(true));