User:OneTwoThreeFall/global.js

importArticles({ type: 'script',  articles: [    'u:dev:CacheCheck/code.js',    'u:dev:NullEditButton/code.js',    'u:dev:RevealAnonIP/usercode.js',    'u:dev:NoImageLightbox/code.js'  ] });

// disable redirect links $('.mw-redirect, .allpagesredirect a').each(function {  if (this.href.indexOf('?') === -1) {    $(this).attr('href', this.href + '?redirect=no');  } else if (this.href.indexOf('redirect=no') === -1) {    $(this).attr('href', this.href + '&redirect=no');  } }); // no redirect when moving files if (mw.config.get('wgPageName').indexOf("Special:MovePage/File:") !== -1) { $('#wpLeaveRedirect').removeAttr('checked'); }

$(window).load(function { // add 'used templates' link in wide-mode edit panel $('.text-links').clone(true).css('display', 'none').appendTo('.checkboxes').find('a').html('Used templates'); // link to S:RC in 'Recent Wiki Activity' rail module  $('#WikiaRecentActivity .more, #recentWikiActivity .more').html('Wiki Activity &gt;').after(' Recent Changes &gt;'); });

// quick prefix search w/ namespace function getPrefixLI($ns, $nsname) { return ' Prefix search (' + ($nsname || $ns) + ')'; } if (mw.config.get('wgNamespaceNumber') !== -1) { $(getPrefixLI('0', 'Main')).appendTo('.tools-menu'); }

// - derived from c:dev:AdvancedOasisUI - // add 'contributions' and 'watchlist' to accountnav $('#AccountNavigation > li > ul.subnav > li:has(a[data-id="preferences"])').after('My watchlistMy contributions');

// - derived from c:dev:DisplayTimer - // UTC time on right of oasis toolbar w/ purge option jQuery(function ($) { var $parent = $(''),      $node = $('').appendTo($parent);

function updateDate { $node.text(new Date.toUTCString.replace('GMT', 'UTC').slice(5)); }

$parent.appendTo('.tools'); updateDate; window.setInterval(updateDate, 1000); $parent = null; });