Skip to content

Instantly share code, notes, and snippets.

@HenriBeck
Last active October 4, 2017 21:27
Show Gist options
  • Save HenriBeck/8646c6d0fa079b20feb07409b81fd811 to your computer and use it in GitHub Desktop.
Save HenriBeck/8646c6d0fa079b20feb07409b81fd811 to your computer and use it in GitHub Desktop.
TF2Center remove ads
// ==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