From: Sven Hoexter Date: Mon, 17 Jan 2011 17:30:06 +0000 (+0100) Subject: Add kommandolangstrumpf user script X-Git-Url: https://git.sven.stormbind.net/?a=commitdiff_plain;h=906c3e77fb11559b3db719e914ae3dfe04ccb997;p=sven%2Fscripts.git Add kommandolangstrumpf user script --- diff --git a/home/kommandolangstrumpf.user.js b/home/kommandolangstrumpf.user.js new file mode 100644 index 0000000..dbb3368 --- /dev/null +++ b/home/kommandolangstrumpf.user.js @@ -0,0 +1,28 @@ +// ==UserScript== +// @name Kommando Langstrumpf +// @namespace http://forum.outdoorseiten.net/kommando/langstrumpf +// @description Ich mach mir meine Welt wie sie mir gefaellt. +// @include http://forum.outdoorseiten.net/* +// ==/UserScript== + +//756 Fjaellraev +//736 Vivalranger +//4172 akonze + +var uids = "(756|736|4172)"; +var matchMe= new RegExp('^http:\\/\\/forum\\.outdoorseiten\\.net\/member\\.php\\?u='+ uids); +var allDivs, thisDiv; +allDivs = document.evaluate( + "//a[@class='bigusername']", + document, + null, + XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, + null); + +for (var i = 0; i < allDivs.snapshotLength; i++) { + thisDiv = allDivs.snapshotItem(i); + if (matchMe.test(thisDiv)) { + tDparent = thisDiv.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode; + tDparent.parentNode.removeChild(tDparent); + } +}