WebAssembly integrator

THIS IS NOT A SCRIPT IF YOU USE IT IT WILL DO NOTHING!!!!!!!!!!!!!!!!

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.cn-greasyfork.org/scripts/450790/1108171/WebAssembly%20integrator.js

  1. // ==UserScript==
  2. // @name WebAssembly integrator
  3. // @namespace https://greasyfork.org/en/users/954625
  4. // @version 0.0.0.1
  5. // @description THIS IS NOT A SCRIPT IF YOU USE IT IT WILL DO NOTHING!!!!!!!!!!!!!!!!
  6. // @author ᎻueᎻаnаejistlа!
  7. // @match *://diep.io/*
  8. // @run-at document-start
  9. // @grant GM_setValue
  10. // @grant GM_getValue
  11. // ==/UserScript==
  12. // #######################################################################################################################################################################
  13. // ░██╗░░░░░░░██╗███████╗██████╗░  ░█████╗░░██████╗░██████╗███████╗███╗░░░███╗██████╗░██╗░░░░░██╗░░░██╗
  14. // ░██║░░██╗░░██║██╔════╝██╔══██╗  ██╔══██╗██╔════╝██╔════╝██╔════╝████╗░████║██╔══██╗██║░░░░░╚██╗░██╔╝
  15. // ░╚██╗████╗██╔╝█████╗░░██████╦╝  ███████║╚█████╗░╚█████╗░█████╗░░██╔████╔██║██████╦╝██║░░░░░░╚████╔╝░
  16. // ░░████╔═████║░██╔══╝░░██╔══██╗  ██╔══██║░╚═══██╗░╚═══██╗██╔══╝░░██║╚██╔╝██║██╔══██╗██║░░░░░░░╚██╔╝░░
  17. // ░░╚██╔╝░╚██╔╝░███████╗██████╦╝  ██║░░██║██████╔╝██████╔╝███████╗██║░╚═╝░██║██████╦╝███████╗░░░██║░░░
  18. // ░░░╚═╝░░░╚═╝░░╚══════╝╚═════╝░  ╚═╝░░╚═╝╚═════╝░╚═════╝░╚══════╝╚═╝░░░░░╚═╝╚═════╝░╚══════╝░░░╚═╝░░░
  19. // by ᎻueᎻаnаejistlа! for diep.io
  20. // Youtube channel:
  21. // https://www.youtube.com/channel/UC4edUdWxLr7sFaPh4zqgXXw?sub_confirmation=1
  22. //
  23. // WHAT HAPPENED TO THIS SCRIPT?
  24. // The original author has discontinued operations by the name of ᎻueᎻаnаejistlа!, so this is a continuation of ᎻueᎻаnаejistlа's diep.io scripts.
  25. // If you still have the original ᎻueᎻаnаejistlа's Diep.io Multiboxing Script, congratulations, you've been upgraded to DIEP SCRIPT DELUXE+++. This
  26. // is a library that modifies the game code to provide core features for DELUXE+++, as well as other (planned) scripts.
  27. //#######################################################################################################################################################################
  28. var mouse = [0, 0]; var player = [0, 0];
  29. var i = 0; const instant = WebAssembly.instantiate;
  30. var WEBASSEMBLY = new Uint8Array(numberone.length + numbertwo.length);
  31. WEBASSEMBLY.set(numberone); WEBASSEMBLY.set(numbertwo, numberone.length);
  32. WebAssembly.instantiateStreaming = (r, i) => r.arrayBuffer().then(b => WebAssembly.instantiate(b, i));
  33. WebAssembly.instantiate = function(b, i) {
  34. i.b = { b:
  35. function(p, m, xory) {
  36. p = Math.floor(p); m = Math.floor(m);
  37. switch (xory) {
  38. case 0: player[0] = p; mouse[0] = m; break;
  39. case 1: player[1] = p; mouse[1] = m; break;
  40. }
  41. } }
  42. return instant(WEBASSEMBLY, i).then(function(w) { return w; }).catch(function(error) { throw error; });
  43. };