User:JustLeafy/global.js

/* Imports */ importArticles({   type: 'script',    articles: [        'u:dev:Less/code.2.js',        'u:dev:Wikimarks/code.js',        "u:dev:EditConflictAlert/code.js",        'w:c:dev:RevealAnonIP/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:RandomWikiButton/code.js',        'u:dev:WallGreetingButton/code.js',        'u:dev:Sine/code.js',        'u:dev:MediaWiki:Nuke/code.js', 'u:dev:DoTheHarlemShake/code.js', 'u:dev:MediaWiki:AjaxUndo/code.js', 'u:dev:QQX/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'); });

// Random Page in Category

$(function{   function createButton(text, page) {        return $('', { href: mw.util.wikiGetlink(page), title: text, 'class': 'wds-button wds-is-squished wds-is-secondary' }).text(text);   }    $('.page-header__contribution-buttons').append;        createButton('Random Page In This Category', 'Special:RandomInCategory/'),        createButton('Layout Guide', 'Layout Guide:'); });