User:Proteins/whitewatchlist.js

// // Sorts watchlist alphabetically, and colors by trusted editor // // // Notes2Self: // Begin with check that the page being viewed is the Special:Watchlist // Add sort button just before box before first date; sort all unordered lists on page // Sort by colon (indicating namespace) and then alphabetically // Allow for option to aggregate all days together into one sorted, unordered list // Specify to all days and mainspace articles (and no bots) with: // http://en.wikipedia.org/w/index.php?title=Special:Watchlist&hideBots=1&namespace=0&days=0 // Allow user-specified whitelist of editors, but provide default // Use show/hide to collapse multiple edits by a single editor // Use colors to flag for vandalism, edit wars, etc. as well // // To use this script, // add "importScript('User:Proteins/whitewatchlist.js');" to your monobook.js subpage // under your user page, as you can see at User:Proteins/monobook.js // Default whitelist of trusted editors = all

// Main function

// Add hook

$(function { mw.util.addPortletLink('p-navigation', 'javascript:whiteWatchlist', 'Watchlist', 'ca-whitewatch', 'Organizes watchlist', , ); }); //