User:Cblair91/doubleredirectcheck.js

// /* * * Coded by Cblair91 (http://BetaDev.co.uk) * * Checks the Special:DoubleRedirect and alerts the user if * there is any new pages added. * * Version 0.1 - Current under development */

/* * Grabs the content from BetaDev.co.uk */ function grabContent {	$.get('http://betadev.co.uk/runescapewiki.php', function(data)	{		if(data.search(' New! ') {			// If there is something new $('#WikiaPageHeader h1').after(' There are new Double Redirect pages, click here to check them now! '); }	})	.error(function {		$('#WikiaPageHeader h1').after(' There was an error accessing BetaDev to check for new DoubleRedirect pages'); }); }

/* * When the document is ready, check every minute */ $(document).ready {	setInterval("grabContent;", 60000); }