/*
WpWatchlist-Diffs -- show only diff links in a Wikipedia watchlist

0.1
2005-11-01
Copyright (c) 2005, Rich Lafferty <rich+sourceplease@lafferty.ca>
Released under the BSD license
http://www.opensource.org/licenses/bsd-license.php

-----------------------------------------------------------------------

This is a Greasemonkey user script.

To install, you need Greasemonkey: http://greasemonkey.mozdev.org/
Then restart Firefox and revisit this script.
Under Tools, there will be a new menu item to "Install User Script".
Accept the default configuration and install.

To uninstall, go to Tools/Manage User Scripts, select "WpWatchlist Diffs",
and click Uninstall.

*/


// ==UserScript==
// @name        WpWatchlist Diffs
// @namespace   http://www.lafferty.ca/software/greasemonkey/
// @description Only links to diffs on a Wikipedia watchlist
// @include     *
// ==/UserScript==

(function() {

    var xpath = "//a[starts-with(@href,'http://prdownloads.sourceforge.net/')]";
    var res = document.evaluate(xpath, document, null,
                                XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);

    var i, link;
    for (i = 0; link = res.snapshotItem(i); i++) {
        link.href = '';
    } 

})();

