User:JustLeafy/global.js

// $(function {   $('a').each(function(_, el) { el = $(el); if(el.attr('href')) { try { var url = new mw.Uri(el.attr('href')); if(url.query.action === 'edit' && url.query.redlink) { delete url.query.action; delete url.query.redlink; }               if(url.query.flow) { delete url.query.flow; }               if(url.query.tracked) { delete url.query.tracked; }               el.attr('href', url.toString); } catch(e) { // rip }       }    }); }); // /* Imports */ importArticles({   type: 'script',    articles: [        'u:dev:Less/code.2.js',        "u:dev:EditConflictAlert/code.js",        'w:c:dev:RevealAnonIP/code.js',        'w:dev:MediaWiki:WallGreetingButton/code.js',        'u:dev:View Source/code.js',        'u:dev:DedicatedTalkButton.js',        'w:c:dev:VisualSpellCheck/code.js',        'u:dev:UTCClock/code.js',        'u:dev:AdminDropdown.js',        'u:dev:SeeMoreActivityButton/code.js',        'u:dev:PurgeButton/code.js',        'u:dev:MediaWiki:FindAndReplace/code.js',        'u:dev:FollowDropdown/code.js',        "u:dev:AjaxDelete/code.js",        "u:dev:CommentPreview/code.js",        'u:dev:FandomizedChat/library.js',        'u:dev:EditBio/code.js',        'u:dev:BlogLink/code.js',        'u:dev:RedirectManagement/code.js',        "u:dev:MediaWiki:FandomIcons/code.css",        "u:dev:LinkPreview/code.js"    ] });

WHAMDelay = 1000;

//__NOWYSIWYG__

window.DisplayClockJS = { offset: 180, format: '%2H:%2M:%2S %d %b %Y (CST)', };

if (mwCustomEditButtons.length) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://pixelgun.wikia.com/Special:FilePath/RedirectButton.png", "speedTip": "Redirect", "tagOpen": "#REDIRECT [" + "[", "tagClose": "]]", "sampleText": "Insert text" };	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://pixelgun.wikia.com/Special:FilePath/Strike-ThroughButton.png", "speedTip": "Strike", "tagOpen": " ", "tagClose": " ", "sampleText": "Strike-through text" };	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://pixelgun.wikia.com/Special:FilePath/LineBreakButton.png", "speedTip": "Line break", "tagOpen": " ", "tagClose": "", "sampleText": "" };	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://pixelgun.wikia.com/Special:FilePath/CommentsButton.png", "speedTip": "Comment visible only for editors", "tagOpen": "", "sampleText": "Insert comment here" }; }

require(['fosl.wds'], function (wds) {   $('.foo').append(wds.icon('pencil')); });

require(['fosl.wds'], function (wds) {   $('.foo').append(wds.icon('trash', ['garbage'], 16)); });

require(['fosl.wds'], function (wds) {   $('.foo').html(' ... ');    wds.render('.foo'); });

if ( !document.getElementById( 'ca-randomwiki' ) ) { if ( skin === 'oasis' || skin === 'wikia' ) { $( 'Random wiki' ).appendTo( '.mcf-card-related-wikis__header' ); } else { $( 'Random wiki' ).appendTo( '#p-wikicities-nav > .pBody > ul' ); }	}

importScriptPage('Sine/code.js', 'dev');

importScriptPage('MediaWiki:Nuke/code.js', 'dev');

importScriptPage( 'DoTheHarlemShake/code.js', 'dev' );