Last active
October 4, 2017 21:27
-
-
Save HenriBeck/8646c6d0fa079b20feb07409b81fd811 to your computer and use it in GitHub Desktop.
TF2Center remove ads
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name TF2Center remove ads | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Remove the ads from tf2center without getting redirected to /adblock | |
// @author Henri Beck (kampfkeks) | |
// @match https://tf2center.com/* | |
// @grant none | |
// ==/UserScript== | |
function removeAds() { | |
Element.prototype.isVisible = function isVisible() { return true; } | |
$('iframe').css({ display: 'none' }); | |
$('._containerHor').css({ height: 0 }); | |
$('._containerVer').css({ width: 0 }); | |
$('._containerVerRight').css({ width: 0 }); | |
} | |
(function() { | |
removeAds(); | |
setInterval(removeAds, 500); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment