Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
greasemonkey [2010/05/26 13:04]
greebo
greasemonkey [2010/06/24 19:38]
greebo
Line 2: Line 2:
   * http://www.fbpurity.com - Facebook purifier   * http://www.fbpurity.com - Facebook purifier
   * http://userscripts.org/scripts/show/57025 - odstrani reklame na 24ur.com/poptv.si   * http://userscripts.org/scripts/show/57025 - odstrani reklame na 24ur.com/poptv.si
-  * slo-tech.com - killfile.js by jure@hehe.si +  * http://bou.si/rest/killfile.user.js slo-tech.com - killfile.js by jure@hehe.si 
- +  http://userscripts.org/scripts/show/72944 forces sites like gmail/facebook/wikipedia to use secure https connections
-<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