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'  ] });

// because spelling is important $('a[data-name="customize"]').html('Customise');

// add 'used templates' link in wide-mode edit panel $('Used templates').appendTo('.checkboxes');

// link to S:RC in 'Recent Wiki Activity' rail module $('.WikiaRail').on('afterLoad.rail', function {  $('#WikiaRecentActivity .more[title="Special:WikiActivity"]').html('Wiki Activity &gt;').after(' Recent Changes &gt;'); });

// quick gnlf prefix search for lyricwiki $(' Prefix search Prefix search (Gracenote) Prefix search (LyricFind)</li>').appendTo('.tools-menu');

// - derived from c:dev:AdvancedOasisUI - // add 'contributions' and 'watchlist' to accountnav $('#AccountNavigation > li > ul.subnav > li:has(a[data-id="mytalk"])').after('<a href="' + mw.config.get('wgArticlePath').slice(0,-2) + 'Special:Contributions/' + mw.config.get('wgUserName') + '" data-id="mycontribs">My contributions</a></li><a href="' + mw.config.get('wgArticlePath').slice(0,-2) + 'Special:Watchlist" data-id="mywatchlist">My watchlist</a></li>');

// - derived from c:dev:DisplayTimer - // UTC time on right of oasis toolbar w/ purge option jQuery(function($) { // disable this clock if another is used  if ($('#DisplayClockJS, #displayTimer, #showdate').length) return;

var $parent = $(''), $node = $('<a title="Purge current page cache" href="' + mediaWiki.util.wikiGetlink + '?action=purge" data-name="purge"/>').appendTo($parent);

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

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