NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name navigator.sendBeacon Remover
// @author TNT
// @description Remove navigator.sendBeacon from all pages.
// @icon https://raw.github.com/sizzlemctwizzle/GM_config/master/gm_config_icon_large.png
// @include http*://*
// @grant none
// @version 1.2
// @run-at document-start
// ==/UserScript==
// check if browser support API
if(navigator.sendBeacon){
// replace standart API with fake one
navigator.sendBeacon = function(a, b){
//alert("navigator.sendBeacon is invoked with these parameters: "+a+", "+b);
//console.log("navigator.sendBeacon is invoked with these parameters: "+a+", "+b);
// fuck you W3C
return false;
}
}
else {
console.log('navigator.sendBeacon not supported')
}