User:OneTwoThreeFall/global.js

window.AjaxRCRefreshText = 'Auto-refresh'; window.AjaxRCRefreshHoverText = 'Automatically refresh the page'; window.ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:WikiActivity","Special:Log","Special:Contributions"]; window.ajaxRefresh = 30000;

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

// # on the end of 'recentchanges' link makes entries expand by default for whatever reason $('a[data-name="recentchanges"]').attr('href', mw.config.get('wgArticlePath').slice(0,-2) + 'Special:RecentChanges#');

// - derived from w:c:dev:AdvancedOasisUI/code.js -

// add 'contributions' and 'watchlist' to accountnav $('#AccountNavigation > li > ul.subnav > li:has(a[data-id="mytalk"])').after('My contributionsMy watchlist');

// hdd 'history' and 'what links here"' to edit panel if (mw.config.get('wgAction') === "edit" || mw.config.get('wgAction')=== "submit") { $('#wpDiff').parent.after('HistoryWhat links here'); }

// rename 'publish' to 'save', and 'rename' to 'move' $('#wpSave').attr('value', 'Save Page'); $('a[data-id="move"]').html('Move'); $('a[data-name="move"]').html('Move');

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

var $parent = $(''), $node = $('<a title="Purge" 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, 5000); $parent = null; });