Skip to content

Instantly share code, notes, and snippets.

@neophiliac
Forked from varenc/ublock_custom_scripts.js
Created April 9, 2022 20:57
Show Gist options
  • Save neophiliac/cbd6bb5419c07ba090503788dd86831c to your computer and use it in GitHub Desktop.
Save neophiliac/cbd6bb5419c07ba090503788dd86831c to your computer and use it in GitHub Desktop.
uBlock origin custom scripts
# Expires: 5 minutes
# License: See source for license and credits
nano-tiny-noopvast-2.0 text/xml
<VAST version="2.0"></VAST>
disable-webassembly.js application/javascript
(function() {
delete WebAssembly;
console.log('CV SAYS: WebAssembly deleted')
})();
disable-websocket.js application/javascript
(function() {
delete WebSocket;
console.log('CV SAYS: WebSocket deleted')
})();
disable-sendBeacon.js application/javascript
(function() {
navigator.sendBeacon = function(url,data) { console.log("blocked sendBeacon: ", url,data); return true }
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment