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',    'u:dev:MassNullEdit/code.js'  ] });

// use uncyclopedia's vector style for monobook w/ tweaks if (mw.config.get('skin') === 'monobook') { importArticles({   type: 'style',    article: 'u:uncyclopedia:MediaWiki:Uncyclopedia.css'  }); $('.editsection').each(function {    $(this).css({"float": "none", "padding-left": "1em", "display": "inline", "color": "#555"}).parent.append(this);  }); $(" .editsection::before,.editsection::after{content:\"\";} div#content{border-color:#A7D7F9;} h1,h2,h3,h4,h5,h6{padding-top:20px;} #catlinks{border:1px solid #AAA;}#pt-wall-notifications .prehide{visibility:inherit;} #firstHeading{margin-top:0;} .portlet h5 {border:none;} #p-wikicities-nav{display:none;} #footerlinks{float:right;} ").appendTo("body"); }

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

// add 'used templates' link in wide-mode edit panel $(window).load(function { $('.text-links').clone(true).css('display', 'none').appendTo('.checkboxes').find('a').html('Used templates'); });

// link to S:RC in 'Recent Wiki Activity' rail module if (mw.config.get('skin') === 'oasis') { $('.WikiaRail').on('afterLoad.rail', function {    $('#WikiaRecentActivity a[title="Special:WikiActivity"]').html('Wiki Activity &gt;').after(' Recent Changes &gt;');  }); } else if (mw.config.get('skin') === 'venus') { $('#recentWikiActivity a[title="Special:WikiActivity"]').html('Wiki Activity').after(' Recent Changes'); }

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

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

// UTC time on right of oasis toolbar w/ purge option - originally from c:dev:DisplayTimer jQuery(function ($) { var $parent = $(''),      $node = $('<a title="Purge current page cache" href="' + mw.util.getUrl(mw.config.get('wgPageName'), {action: 'purge'}) + '"/>').appendTo($parent);

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

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