您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Pixel Place Anti Ban
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.cn-greasyfork.org/scripts/445776/1055993/PPAB.js
- // ==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]')){
- console.log(window.checkId)
- 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);
- }
- }
- })();