WebAssembly integrator

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

目前为 2022-09-05 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.cn-greasyfork.org/scripts/450790/1090047/WebAssembly%20integrator.js

  1. // ==UserScript==
  2. // @name WebAssembly integrator
  3. // @namespace https://greasyfork.org/en/users/954625
  4. // @version 0.0.0.0
  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 buffer = (numberone + numbertwo).split(','); var i = 0; const instant = WebAssembly.instantiate; var BUFFER = new ArrayBuffer(buffer.length); var Buffer = new Uint8Array(BUFFER);
  30. while (i < buffer.length) { Buffer[i] = buffer[i]; i++; }
  31. WebAssembly.instantiateStreaming = (r, i) => r.arrayBuffer().then(b => WebAssembly.instantiate(b, i));
  32. WebAssembly.instantiate = function(b, i) {
  33. i.b = { b:
  34. function(p, m, xory) {
  35. p = Math.floor(p); m = Math.floor(m);
  36. switch (xory) {
  37. case 0: player[0] = p; mouse[0] = m; break;
  38. case 1: player[1] = p; mouse[1] = m; break;
  39. }
  40. } }
  41. return instant(Buffer, i).then(function(w) { return w; }).catch(function(error) { throw error; });
  42. };