Differences
This shows you the differences between two versions of the page.
Next revision Both sides next revision | |||
greasemonkey [2009/08/20 09:49] greebo created |
greasemonkey [2010/05/26 13:04] greebo |
||
---|---|---|---|
Line 1: | Line 1: | ||
* http:// | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * slo-tech.com - killfile.js by jure@hehe.si | ||
+ | |||
+ | <code javascript> | ||
+ | // ==UserScript== | ||
+ | // @name | ||
+ | // @namespace | ||
+ | // @description | ||
+ | // @include | ||
+ | // @include | ||
+ | // @include | ||
+ | // @include | ||
+ | // ==/ | ||
+ | var users = [' | ||
+ | window.addEventListener( | ||
+ | ' | ||
+ | function () { | ||
+ | var usersRe = ' | ||
+ | var posts, thisPost; | ||
+ | posts = document.evaluate( | ||
+ | "// | ||
+ | document, | ||
+ | null, | ||
+ | XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, | ||
+ | null); | ||
+ | for (var i = 0; i < posts.snapshotLength; | ||
+ | thisPost = posts.snapshotItem(i); | ||
+ | if (thisPost.childNodes[0].title.match(usersRe)) { | ||
+ | thisPost.style.display=" | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | ' | ||
+ | ); | ||
+ | </ |