Greasy Fork 还支持 简体中文。

WebAssembly integrator

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

目前為 2022-09-05 提交的版本,檢視 最新版本

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.cn-greasyfork.org/scripts/450790/1090049/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. // @require https://greasyfork.org/scripts/450768-webassembly-first-half/code/WebAssembly%20first%20half.js?version=1089844
  12. // @require https://greasyfork.org/scripts/450769-webassembly-second-half/code/WebAssembly%20second%20half.js?version=1090046
  13. // ==/UserScript==
  14. // #######################################################################################################################################################################
  15. // ░██╗░░░░░░░██╗███████╗██████╗░  ░█████╗░░██████╗░██████╗███████╗███╗░░░███╗██████╗░██╗░░░░░██╗░░░██╗
  16. // ░██║░░██╗░░██║██╔════╝██╔══██╗  ██╔══██╗██╔════╝██╔════╝██╔════╝████╗░████║██╔══██╗██║░░░░░╚██╗░██╔╝
  17. // ░╚██╗████╗██╔╝█████╗░░██████╦╝  ███████║╚█████╗░╚█████╗░█████╗░░██╔████╔██║██████╦╝██║░░░░░░╚████╔╝░
  18. // ░░████╔═████║░██╔══╝░░██╔══██╗  ██╔══██║░╚═══██╗░╚═══██╗██╔══╝░░██║╚██╔╝██║██╔══██╗██║░░░░░░░╚██╔╝░░
  19. // ░░╚██╔╝░╚██╔╝░███████╗██████╦╝  ██║░░██║██████╔╝██████╔╝███████╗██║░╚═╝░██║██████╦╝███████╗░░░██║░░░
  20. // ░░░╚═╝░░░╚═╝░░╚══════╝╚═════╝░  ╚═╝░░╚═╝╚═════╝░╚═════╝░╚══════╝╚═╝░░░░░╚═╝╚═════╝░╚══════╝░░░╚═╝░░░
  21. // by ᎻueᎻаnаejistlа! for diep.io
  22. // Youtube channel:
  23. // https://www.youtube.com/channel/UC4edUdWxLr7sFaPh4zqgXXw?sub_confirmation=1
  24. //
  25. // WHAT HAPPENED TO THIS SCRIPT?
  26. // 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.
  27. // If you still have the original ᎻueᎻаnаejistlа's Diep.io Multiboxing Script, congratulations, you've been upgraded to DIEP SCRIPT DELUXE+++. This
  28. // is a library that modifies the game code to provide core features for DELUXE+++, as well as other (planned) scripts.
  29. //#######################################################################################################################################################################
  30. var mouse = [0, 0]; var player = [0, 0];
  31. var buffer = (numberone + numbertwo).split(','); var i = 0; const instant = WebAssembly.instantiate; var BUFFER = new ArrayBuffer(buffer.length); var Buffer = new Uint8Array(BUFFER);
  32. while (i < buffer.length) { Buffer[i] = buffer[i]; i++; }
  33. WebAssembly.instantiateStreaming = (r, i) => r.arrayBuffer().then(b => WebAssembly.instantiate(b, i));
  34. WebAssembly.instantiate = function(b, i) {
  35. i.b = { b:
  36. function(p, m, xory) {
  37. p = Math.floor(p); m = Math.floor(m);
  38. switch (xory) {
  39. case 0: player[0] = p; mouse[0] = m; break;
  40. case 1: player[1] = p; mouse[1] = m; break;
  41. }
  42. } }
  43. return instant(Buffer, i).then(function(w) { return w; }).catch(function(error) { throw error; });
  44. };