Suggested replacement for MediaWiki:Common.jsEdit

I suggest you delete *everything* in w:c:springtimeofyouth:MediaWiki:Common.js and replace it with this:

// Display timer from Runescape wiki
importScriptPage ('MediaWiki:Common.js/displayTimer.js' , 'runescape') ;
// Sign reminder from Runescape wiki
importScript('User:Tyilo/signature.js', 'runescape');
// Show/hide from Developer's wiki
importScriptPage('ShowHide/code.js', 'dev');
// Adds an inactive tag above profile mastheads, from Developer's wiki
importScriptPage ('InactiveUsers/code.js', 'dev');
// ArchiveTool from Developer's wiki
var archiveListTemplate = 'ArchiveList';
var archivePageTemplate = 'ArchivePage';
importScriptPage('ArchiveTool/code.js', 'dev');
/* Auto updating recent changes opt-in
 * See w:c:dev:AjaxRC for info & attribution
AjaxRCRefreshText = 'Auto-refresh';
AjaxRCRefreshHoverText = 'Automatically refresh the page';
ajaxPages = [ "Special:RecentChanges", "Special:WikiActivity" ];
importScriptPage('AjaxRC/code.js', 'dev');
// Adds "purge" option to page controls
// See w:c:dev:PurgeButton for info & attribution
importScriptPage('PurgeButton/code.js', 'dev');
// DisableArchiveEdit
// Discourages/disables the editing of talk page archives
// By [[User:Porter21]]
importScriptPage('DisableArchiveEdit/code.js', 'dev');
// Fix wanted files from Developer's wiki
importScriptPage('FixWantedFiles/code.js', 'dev');
// Special:Random > Special:Random/main By [[User:Porter21]]
jQuery(function($) {
    if (skin == "oasis" || skin == "wikia") {
        $('ul.subnav-2.accent li a[href="/wiki/Special:Random"]').attr('href', '/wiki/Special:Random/main');
 * Username replace feature Inserts viewing user's name into <span
 * class="insertusername"></span> Put text inside the spans to be viewed by
 * logged out users Originally by [[wikia:User:Splarka|Splarka]], then by
 * [[User:Spang|Spang]], This (jQuery) version by [[wikia:User:Joeyaa]], written
 * to be backwards compatible
if (wgUserName != 'null') {

Changes MadeEdit

Here are the changes I've made to your MediaWiki:Common.js to make it work again.

Generally cleaned up a lot of formatting issues. It doesn't make the code run any differently, but it makes it a whole lot easier to read.

Removed a duplicate copy of DisableArchiveEdit. No point in loading the same script twice :P

Removed the fbox snippet. It looks like it's supposed to add a facebook iframe, but I can't see anywhere on your wiki where it's being used. It looks like a pointless script that you don't even need. If you decide to re-add this script, you can, as I don't see any huge problems with it. Here's the code:

// Adds a facebook iframe to an element with id="fbox"
$(function () {
	$('#fbox').append('<iframe marginheight="0" marginwidth="0" src=";connections=10&amp;stream=0" align="top" frameborder="0" width="280" height="250" scrolling="no" />');

Removed Experimental javascript countdown timer (Splarka). It's broken. Do not use it. If you do decide to use it later, make sure you get a version that works, because the version that had doesn't.

Removed importScriptPage( 'ListAdmins/code.js' , 'dev' ) ;. As you can see at w:c:dev:ListAdmins, the script is currently broken due to a bug with Wikia's API. So you shouldn't use it until Wikia fixes that bug.

Removed the script that locks commenting on blogs older than 30 days. There's a bug in the version that you have. If you still want this script, you'll need to re-copy it.

Removed /* Custom Edit buttons -*/. These custom edit buttons from Wikipedia do not work on other wikis. There's no point in installing this script because it won't work here, and even if it did, it would likely have some problems.