hacklib
Hacklib is a javascript library for creating browser hack scripts that are as undetectable as possible.
It contains important utitilies such as checking if a native function has been modified, functions to trim strings undetectably, restore lost functions, create an element without calling any methods and more.
Caveats & Notes
There is no way to make everything completely undetectable. But as of now the only way hacklib can be tricked or detected is to modify toString, which is unlikely.
If you feel comfortable that a website has not modded Function.prototype.toString (you can check using browser devtools), no hl method should be detectable.
For utmost security, hacklib will immediately redirect a page to about blank if it detects that it is not wrapped in a function. This is to prevent a page detecting any publicly set variables or methods. Be careful anyways, as the redirect may not be fast enough to stop some requests.
The only other way hacklib can be detected is using a MutationObserver (once more features are added), or if the user decides to call an external method or variable.
Getting started
To create your first project, simply run
npm create hacklib@latest. Have fun!