Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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://userscripts.org/scripts/show/26062 Scripts updater   * http://userscripts.org/scripts/show/26062 Scripts updater
 +  * http://www.fbpurity.com - Facebook purifier
 +  * http://userscripts.org/scripts/show/57025 - odstrani reklame na 24ur.com/poptv.si
 +  * slo-tech.com - killfile.js by jure@hehe.si
 +
 +<code javascript>
 +// ==UserScript==
 +// @name           killfile
 +// @namespace      killfile
 +// @description    slo-tech killfile
 +// @include        http://slo-tech.com/forum/t*
 +// @include        https://slo-tech.com/forum/t*
 +// @include        http://*.slo-tech.com/forum/t*
 +// @include        https://*.slo-tech.com/forum/t*
 +// ==/UserScript==
 +var users = ['Thomas', 'mtosev'];
 +window.addEventListener(
 + 'load', 
 + function () {
 + var usersRe = '^(' + users.join('|') + ')';
 + var posts, thisPost;
 + posts = document.evaluate(
 + "//div[@class='post even' or @class='post odd']",
 + document,
 + null,
 + XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
 + null);
 + for (var i = 0; i < posts.snapshotLength; i++) {
 + thisPost = posts.snapshotItem(i);
 + if (thisPost.childNodes[0].title.match(usersRe)) {
 + thisPost.style.display="none";
 + }
 + }
 + },
 + 'true'
 +);
 +</code>
greasemonkey.txt ยท Last modified: 2010/06/24 19:55 by greebo
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready