PPAB

Pixel Place Anti Ban

Versione datata 30/05/2022. Vedi la nuova versione l'ultima versione.

Questo script non dovrebbe essere installato direttamente. È una libreria per altri script da includere con la chiave // @require https://update.greasyfork.org/scripts/445776/1055992/PPAB.js

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

You will need to install an extension such as Tampermonkey to install this 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         PPAB
// @description  Pixel Place Anti Ban
// @version      1.0.3
// @author       0vC4
// @namespace    https://greasyfork.org/users/670183
// @match        https://pixelplace.io/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=pixelplace.io
// @license      MIT
// @grant        none
// @run-at       document-start
// ==/UserScript==
(() => {
    const badStrings = ['baba', 'a[href=', '[\'html\']', 'injected', 'using', 'execution']
    const _console = {log: window.console.log};
    const realInterval = window.setInterval;
    const checkid = realInterval(() => {
        console.log(window.setInterval.toString(), window.setInterval.toString().includes('[native code]'))
        if(!window.setInterval.toString().includes('[native code]')){
            clearInterval(checkid);
            wrapInterval();
        }
    }, 10)

    function wrapInterval(){
        window.setInterval = function(func, ms){
            const code = func.toString();
            const match = badStrings.find(x => code.includes(x));
            if(match) _console.log('MATCHES', code);
            if(match) return Math.random()*10000|0;
            return realInterval(...arguments);
        }
    }
})();