remove rizzitgo pop-up limit

Automatically remove the pop-up limit on RizzitGo by detecting and closing the "Unsellable items" modal.

// ==UserScript==
// @name         remove rizzitgo pop-up limit
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Automatically remove the pop-up limit on RizzitGo by detecting and closing the "Unsellable items" modal.
// @author       Horjer
// @match        https://rizzitgo.com/*
// @match        https://www.rizzitgo.com/*
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
    function bypassPurchaseLimit() {
        const unsellableTag = document.querySelector('span.ant-tag-error');
        if (unsellableTag && unsellableTag.textContent.includes('Unsellable items')) {
            const modalDiv = unsellableTag.closest('div.ant-modal-root').parentElement;
            if (modalDiv) {
                modalDiv.remove();
                console.log('RizzitBuy purchase limit bypassed. Unsellable items prompt removed.');
            }
        }
    }

    function modifyPageStyles() {
        const style = document.createElement('style');
        style.textContent = `
            html, body {
                overflow-y: auto !important;
                width: calc(100% - 4px) !important;
            }
        `;

        document.head.appendChild(style);
        console.log('Page styles modified: overflow-y set to auto.');
    }


    const observer = new MutationObserver(() => {
        bypassPurchaseLimit();
        modifyPageStyles();
    });


    observer.observe(document.body, {
        childList: true,
        subtree: true
    });


    bypassPurchaseLimit();
    modifyPageStyles();
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址