[Pixlr] Unlimited Saves UPDATED: (26/03/2024)

Bypasses the daily save limit

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        [Pixlr] Unlimited Saves UPDATED: (26/03/2024)
// @namespace   NiceATC
// @match       https://pixlr.com/*/*
// @grant       none
// @version     1.0
// @author      All Crdits to ClaytonTDM
// @description Bypasses the daily save limit
// @run-at      document-start
// @license MIT
// ==/UserScript==

(() => {
    // Define as configurações do usuário no armazenamento local
     localStorage.setItem('user-settings', '{"lastNewsCheck":"1970-01-01T00:00:00Z"}');

    let deletedModal = false;

    window.addEventListener('load', function () {
        // Define o nó alvo e a configuração do observador de mutação
        let targetNode = document.body;
        let config = { childList: true, subtree: true };

        // Cria um observador de mutação
        let observer = new MutationObserver(function (mutationsList, observer) {
            for (let mutation of mutationsList) {
                if (mutation.type === 'childList') {
                    // Verifica se há uma modal e a remove
                    let modal = document.querySelector('.modal');
                    if (modal && !deletedModal) {
                        setTimeout(() => {
                            modal.remove();
                            deletedModal = true;
                        }, 50);
                    }
                }
            }
        });

        // Inicia a observação
        observer.observe(targetNode, config);

        // Define um intervalo para atualizar o horário da última verificação de notícias no armazenamento local
        setInterval(() => {
             localStorage.setItem('user-settings', {"lastNewsCheck":"${new Date().toISOString()}"});
        }, 500);
    });
})();