]> git.sven.stormbind.net Git - sven/scripts.git/commitdiff
Add kommandolangstrumpf user script
authorSven Hoexter <sven@timegate.de>
Mon, 17 Jan 2011 17:30:06 +0000 (18:30 +0100)
committerSven Hoexter <sven@timegate.de>
Mon, 17 Jan 2011 17:30:06 +0000 (18:30 +0100)
home/kommandolangstrumpf.user.js [new file with mode: 0644]

diff --git a/home/kommandolangstrumpf.user.js b/home/kommandolangstrumpf.user.js
new file mode 100644 (file)
index 0000000..dbb3368
--- /dev/null
@@ -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);
+    }
+}