Skip to content

Instantly share code, notes, and snippets.

@leepa
Created June 17, 2010 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leepa/442134 to your computer and use it in GitHub Desktop.
Save leepa/442134 to your computer and use it in GitHub Desktop.
// ==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