From 906c3e77fb11559b3db719e914ae3dfe04ccb997 Mon Sep 17 00:00:00 2001 From: Sven Hoexter Date: Mon, 17 Jan 2011 18:30:06 +0100 Subject: [PATCH] Add kommandolangstrumpf user script --- home/kommandolangstrumpf.user.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 home/kommandolangstrumpf.user.js 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); + } +} -- 2.39.5