-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@require cache (solved) #30
Comments
console.time() your packet handling code to make sure it's really the packet hook |
it is, i tested only the packet hook by itself |
I cannot replicate, make sure you're using the latest version since there was a new build today |
I import the script via a repl (so it automatically updates), there wasn't an issue until today's update. Can you reproduce with this? // ==UserScript==
// @name ABC Hook
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://diep.io/
// @icon https://www.google.com/s2/favicons?domain=diep.io
// @require https://raw.githubusercontent.com/Qwokka/wail.min.js/5e32d36bd7a5e0830d1ff4b64d3587aea13f77da/wail.min.js
// @require https://wasm-hook-fetcher.codersudawuda.repl.co
// @grant none
// ==/UserScript==
(function() {
'use strict';
})(); |
Please stop opening off topic issues - I will update the build on packet hook now |
how is this off topic? |
This isnt |
Oh wait lol. The phook automator is actually still running so there really is an issue! LOL |
@CoderSudaWuda I am not experiencing this issue. All you did was install the script? Or did you have other stuff |
If you had another memory related script installed, it might have made the packet hook script from hooking into the wrong function hence the lag - so maybe try running packet hook without any other scripts. |
Try looking at the performance tab |
I could not reproduce with your repl version either |
@CoderSudaWuda |
there isnt a config property for Hook. as for the questions above: i tested in an environment where its the only script, there is no other script clashing |
i can't open the issue so uh can someone read this |
Meant |
yeah thats the issue, what do I do about it? |
Try |
CORS error, I can't do that. even if i could evalling doesnt work. |
that is an issue on your server, there is a cors package on npm |
i can't fetch clientside |
Fetch it from jsdelivr |
fetch("https://cdn.jsdelivr.net/gh/ABCxFF/diepindepth/protocol/userscripts/packethook.user.js?" + Date.now()) |
you could always make your own wasm hook and have it fetch the constants from an automator inside the hijacked WebAssembly.instatiate |
the thing with fetching is that i can't import anything from it since evalling it wont work |
Maybe eval the config only? There should be a way, good luck on your scripting! |
is there a way to import WAIL without using @require |
ok i got around it! const resp = await fetch("https://cdn.jsdelivr.net/gh/ABCxFF/diepindepth/protocol/userscripts/packethook.user.js?" + Date.now());
const js = await resp.text();
const resp2 = await fetch('https://raw.githubusercontent.com/Qwokka/wail.min.js/5e32d36bd7a5e0830d1ff4b64d3587aea13f77da/wail.min.js');
const js2 = await resp2.text();
var script1 = document.createElement('script');
script1.appendChild(document.createTextNode(js2));
document.head.appendChild(script1);
var script = document.createElement('script');
script.appendChild(document.createTextNode(js));
document.head.appendChild(script); |
GM_xmlhttpRequest bypasses CORS |
Packet hook gives really bad lag (10fps + ~2000ms)
The text was updated successfully, but these errors were encountered: