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:

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 + ''); }); if ($("a#WLNotifyLink:visited").length) { var WLNVisitedHide = document.getElementById("WatchlistNotify"); WLNVisitedHide.style.display="none"; }