3 ms·
How you block some forms of tracking/ads is you inject your own STUB javascript functionality before the offending script loads. https://github.com/uBlock-user
by rasz 6y ago
How you block some forms of tracking/ads is you inject your own STUB javascript functionality before the offending script loads.
https://github.com/uBlock-user/uBO-Scriptlets https://github.com/uBlock-user/uBO-Scriptlets
This wont work with webassembly.
- Alexendoo 6y agoNone of these scriptlets would break if a site uses WASM, they're utilities for things like adding/removing/mutating elements from the DOM, modifying localStorage, stopping alert() executesitefunction.js could arguably be effected, but that relies on a site installing a particular function on window, which isn't required when using JS, and could be still done where the function is backed by WASM
- rasz 6y agoHmm this repo doesnt have the currently used scriptlets.js file, weird. I think this is the official one https://git.furworks.de/opensourcemirror/ublock-origin/src/branch/master/assets/resources/scriptlets.js https://git.furworks.de/opensourcemirror/ublock-origin/src/b... A lot of stubs, a lot of functionality to kill a script when tripping certain trigger action, or force some properties.