Comments (29)
This isnt
from diepindepth.
you could always make your own wasm hook and have it fetch the constants from an automator inside the hijacked WebAssembly.instatiate
from diepindepth.
GM_xmlhttpRequest bypasses CORS
from diepindepth.
console.time() your packet handling code to make sure it's really the packet hook
from diepindepth.
it is, i tested only the packet hook by itself
from diepindepth.
I cannot replicate, make sure you're using the latest version since there was a new build today
from diepindepth.
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';
})();
from diepindepth.
Please stop opening off topic issues - I will update the build on packet hook now
from diepindepth.
how is this off topic?
from diepindepth.
Oh wait lol. The phook automator is actually still running so there really is an issue! LOL
from diepindepth.
@CoderSudaWuda I am not experiencing this issue. All you did was install the script? Or did you have other stuff
from diepindepth.
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.
from diepindepth.
Try looking at the performance tab
from diepindepth.
I could not reproduce with your repl version either
from diepindepth.
@CoderSudaWuda @require
meta tag is cached in most Script Monkey extensions. Your issue is likely that the PacketHook cached in your extension is not the latest version. You can test this with PacketHook.CONFIG.BUILD === "b6c132517d2f9e84c9d9334a5fdeaba8a96e3343"
in your userscript you sent above. If it returns false then that is the issue - if it returns true however, you can re open this issue
from diepindepth.
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
from diepindepth.
i can't open the issue so uh can someone read this
from diepindepth.
Meant PacketHook.CONST
not Hook.CONFIG
Oops
from diepindepth.
yeah thats the issue, what do I do about it?
from diepindepth.
Try fetch()
ing the packet hook code yourself inside the script instead of depending on the tampermonkey/violentmonkey @require
, that way it doesn't cache forever
from diepindepth.
CORS error, I can't do that. even if i could evalling doesnt work.
from diepindepth.
that is an issue on your server, there is a cors package on npm
from diepindepth.
i can't fetch clientside
from diepindepth.
Fetch it from jsdelivr
from diepindepth.
fetch("https://cdn.jsdelivr.net/gh/ABCxFF/diepindepth/protocol/userscripts/packethook.user.js?" + Date.now())
from diepindepth.
the thing with fetching is that i can't import anything from it since evalling it wont work
from diepindepth.
Maybe eval the config only? There should be a way, good luck on your scripting!
from diepindepth.
is there a way to import WAIL without using @require
from diepindepth.
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);
from diepindepth.
Related Issues (13)
- incoming.md - Force strict types on eval packet HOT 1
- tankdefs.js HOT 1
- incoming.md - Building a party link HOT 4
- Discussing XORs in update.md HOT 3
- hi HOT 1
- Packethook Userscript Error HOT 1
- IRFEDHYUGIFKFGU7DIOLE HOT 1
- Request for PHook API to allow packet modification HOT 17
- real vectors have templates HOT 1
- Fix 00 HOT 4
- Question HOT 1
- tanks.js
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diepindepth.