Fandom Developers Wiki
Advertisement

Advanced auto refreshing recent changes and watchlist

  • Code courtesy of "pcj" of WoWWiki.
  • Works for all languages
  • importScriptPage('AjaxRC/code.js', 'dev');
  • importScriptPage('AjaxRC/i18n.code.js', 'dev');

Individual use

  • This is a modified version of the WoWWiki site-wide version.
  • This version is designed for Special:Mypage/global.js use.

Wiki-wide use

  • If you add it to a wiki's MediaWiki:Common.js it works.
  • It should not conflict with your own global.js.

What it does

  • The code adds a checkbox at the top of Special:RecentChanges and Special:Watchlist, next to the header.
  • Ticking this sets a cookie (specific to each wiki) and starts updating the list.
  • This occurs silently every 60 seconds without a full page reload occurring.

Options

  • An alternate progress indicator can be declared below the import line as such (image used in example seen below):
importScriptPage('AjaxRC/code.js', 'dev');
var indicator = 'http://images2.wikia.nocookie.net/__cb20100609110347/software/images/a/a9/Indicator.gif';
Advertisement