EmilioEstevezqsvuiEmilioEstevezunsafeWindow.noAds = true;
Put that in a greasemonkey script and you can run adblock on tf2center without it redirecting you.
This works with Greasemonkey on Firefox but not with Tampermonkey on Chrome. What gives?
unsafeWindow doesn't have the same access in Chrome as it does in Firefox.
Something like this should work in both :
// ==UserScript==
// @name tf2center allow adblock
// @namespace tf2center
// @version 1
// @match *://tf2center.com/*
// @grant none
// ==/UserScript==
function allowAdblock() {
noAds = true;
}
function inject(func) {
var source = func.toString();
var script = document.createElement('script');
script.innerHTML = "("+ source +")()";
document.body.appendChild(script);
}
inject(allowAdblock);
this no longer works, nor does any other of the 6 or 7 scripts that i've looked at