MediaWiki talk:Gadget-Watchlist-wo-uploads.js
This script, Watchlist-wo-uploads, is a JavaScript gadget which can be enabled or disabled in your Preferences. |
i18n | Gadget translations:
no internationalisation required: |
If you have a lot of redlinks and deletion-requests in your watchlist, you can clean it up, running this script from your JavaScript-Console. |
Code[edit]
Here's the code:
// import the script rather then raw writing it // Reason being that the script depends on jQuery, which on Wikimedia-sites is included _after_ the gadgets (thus making this script fail if raw included as gadget) // Instead I've used the importScript-function which includes it as last item (at which point jQuery is loaded and thus not making "jQuery" an undefined variable) importScript( 'User:Krinkle/Watchlist-wo-uploads.js' );
Function[edit]
This script hides any "Upload log"-lines from your watchlist.
For many users, their presence on Wikimedia Commons is moving files to it and every now and then doing some other activities. But if you're like me and like to +Watch every page you edit (Preferences » Watchlist) , and easiliy move 50+ files on a day, then the Watchlist can get pretty messy.
Reason being that MediaWiki automaticly adds the backlog of every watched pages aswell (in other words, the (Bot)Move).
With this script you hide those lines and will only see the "real" edits on your Watchlist.
Use it if you like it, contact me at my homewiki if you have any queries. Greetings, Krinkle (talk) 02:31, 17 December 2009 (UTC)