Created
November 23, 2009 17:58
-
-
Save goffreder/241236 to your computer and use it in GitHub Desktop.
This file contains 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 TFP Forum Ads Remover | |
// @description Removes ads from TFP Forum | |
// @include http://www.tfpforum.it | |
// ==/UserScript== | |
var ads = document.getElementById('ads'); | |
if(ads) { | |
ads.parentNode.removeChild(ads); | |
} | |
var body = document.getElementsByTagName('body'); | |
if(body) { | |
var h2s = body[0].getElementsByTagName('h2'); | |
var br; | |
for(var i = 0; i < 4; i++) { | |
br = h2s[4].nextElementSibling; | |
br.parentNode.removeChild(br); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment