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/1090047/WebAssembly%20integrator.js

// ==UserScript==
// @name		WebAssembly integrator
// @namespace		https://greasyfork.org/en/users/954625
// @version		0.0.0.0
// @description		THIS IS NOT A SCRIPT IF YOU USE IT IT WILL DO NOTHING!!!!!!!!!!!!!!!!
// @author		ᎻueᎻаnаejistlа!
// @match		*://diep.io/*
// @run-at		document-start
// @grant		GM_setValue
// @grant		GM_getValue
// ==/UserScript==
// #######################################################################################################################################################################
// ░██╗░░░░░░░██╗███████╗██████╗░  ░█████╗░░██████╗░██████╗███████╗███╗░░░███╗██████╗░██╗░░░░░██╗░░░██╗
// ░██║░░██╗░░██║██╔════╝██╔══██╗  ██╔══██╗██╔════╝██╔════╝██╔════╝████╗░████║██╔══██╗██║░░░░░╚██╗░██╔╝
// ░╚██╗████╗██╔╝█████╗░░██████╦╝  ███████║╚█████╗░╚█████╗░█████╗░░██╔████╔██║██████╦╝██║░░░░░░╚████╔╝░
// ░░████╔═████║░██╔══╝░░██╔══██╗  ██╔══██║░╚═══██╗░╚═══██╗██╔══╝░░██║╚██╔╝██║██╔══██╗██║░░░░░░░╚██╔╝░░
// ░░╚██╔╝░╚██╔╝░███████╗██████╦╝  ██║░░██║██████╔╝██████╔╝███████╗██║░╚═╝░██║██████╦╝███████╗░░░██║░░░
// ░░░╚═╝░░░╚═╝░░╚══════╝╚═════╝░  ╚═╝░░╚═╝╚═════╝░╚═════╝░╚══════╝╚═╝░░░░░╚═╝╚═════╝░╚══════╝░░░╚═╝░░░
//                 by ᎻueᎻаnаejistlа! for diep.io
// Youtube channel:
//	https://www.youtube.com/channel/UC4edUdWxLr7sFaPh4zqgXXw?sub_confirmation=1
//
// WHAT HAPPENED TO THIS SCRIPT?
//	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.
//	If you still have the original ᎻueᎻаnаejistlа's Diep.io Multiboxing Script, congratulations, you've been upgraded to DIEP SCRIPT DELUXE+++. This
//	is a library that modifies the game code to provide core features for DELUXE+++, as well as other (planned) scripts.
//#######################################################################################################################################################################
var mouse = [0, 0]; var player = [0, 0];
var buffer = (numberone + numbertwo).split(','); var i = 0; const instant = WebAssembly.instantiate; var BUFFER = new ArrayBuffer(buffer.length); var Buffer = new Uint8Array(BUFFER);
while (i < buffer.length) { Buffer[i] = buffer[i]; i++; }
WebAssembly.instantiateStreaming = (r, i) => r.arrayBuffer().then(b => WebAssembly.instantiate(b, i));
WebAssembly.instantiate = function(b, i) {
	i.b = { b:
		function(p, m, xory) {
			p = Math.floor(p); m = Math.floor(m);
			switch (xory) {
				case 0: player[0] = p; mouse[0] = m; break;
				case 1: player[1] = p; mouse[1] = m; break;
			}
		} }
	return instant(Buffer, i).then(function(w) { return w; }).catch(function(error) { throw error; });
};