MediaWiki:Common.js/Watchlist.js

/* This scripts warns you when a page on your watchlist is edited. It shows the person who edited what page, and hovering over gives the summary used. To install this, put the following on your personal js file: Example of the script: http://img847.imageshack.us/img847/5374/watchlistnotify.png

importScript('User:Joeytje50/watchlist.js');



$.getJSON('http://runescape.wikia.com/api.php?action=query&list=watchlist&wllimit=1&wldir=older&format=json&wlprop=ids|user|title|comment', function(wlid) {	$('ul.tools').append('' + wlid.query.watchlist[0].user + ' changed ' + wlid.query.watchlist[0].title + ''); });

$("a#WatchlistNotify:visited").parent(".tools").addClass("visitedlink"); $('head').append('.visitedlink, a#WatchlistNotify:visited {display:none;} ');