Created
June 17, 2010 13:38
-
-
Save leepa/442134 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 MPUK Forum Banner Head Removal | |
// @namespace http://leenux.org.uk/ | |
// @description Removes awful header thingy that people hate | |
// @include http://forums.multiplay.co.uk/* | |
// ==/UserScript== | |
var allDivs, thisDiv; | |
allDivs = document.evaluate( | |
"//div[@class='main-page']", | |
document, | |
null, | |
XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, | |
null); | |
for (var i = 0; i < allDivs.snapshotLength; i++) { | |
thisDiv = allDivs.snapshotItem(i); | |
thisDiv.removeChild(thisDiv.children[0]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment