User:JustLeafy/global.js

//__NOWYSIWYG__

/* Imports */ importArticles({   type: 'script',    articles: [        'u:dev:AdminDropdown.js',        'u:dev:AdvancedOasisUI/code.js',        'u:dev:AjaxDelete/code.js',        'u:dev:AjaxRename/code.js',        'u:dev:AjaxUndo/code.js',        'u:dev:BlogLink/code.js',        'u:dev:CommentPreview/code.js',        'u:dev:DedicatedTalkButton.js',        'u:dev:DoTheHarlemShake/code.js',        'u:dev:EditBio/code.js',        'u:dev:EditConflictAlert/code.js',        'u:dev:FandomizedChat/library.js',        'u:dev:FollowDropdown/code.js',        'u:dev:GalleryCaptions/code.js',        'u:dev:Less/code.2.js',        'u:dev:MediaWiki:FindAndReplace/code.js',        'u:dev:MediaWiki:Nuke/code.js',        'u:dev:ModernProfile/EditButton.js',        'u:dev:PurgeButton/code.js',        'u:dev:QQX/code.js',        'u:dev:RandomWikiButton/code.js',        'u:dev:RedirectManagement/code.js',        'u:dev:RevealAnonIP/code.js', 'u:dev:SeeMoreActivityButton/code.js', 'u:dev:Sine/code.js', 'u:dev:UserActivityTab/code.js', 'u:dev:UTCClock/code.js', 'u:dev:View Source/code.js', 'u:dev:VisualSpellCheck/code.js', 'u:dev:WallGreetingButton/code.js', 'u:dev:Wikimarks/code.js' ] });

window.WHAMDelay = 1000;

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

//Adavanced Oasis UI window.AdvancedOasisUI = { accountNavFollowedPages: false, accountNavWatchlist: false, categoryRedlink: true, RCHeader: true, DefaultSourceMode: false, lightbox: false, randomPageLimitedTo: 'Main', activity2RC: true, userLang: true, };

//Contribute Button

/* Contribute Button */ $(function { $('.createpage').remove;   $('.wds-community-header__wiki-buttons a[data-tracking="admin-dashboard"]').remove;    $('.wds-community-header__wiki-buttons a[data-tracking="wiki-activity"]').remove; var config = mw.config.get([ 'wgPageName' ]);   $('.wds-community-header__wiki-buttons.wds-button-group').prepend( ' ' + ' '+ ' ' + ' Contribute  ' + '' + '' + 'Wiki Activity' + 'Random Page</a></li>' + 'Add a Page</a></li>' + 'Upload a File</a></li>' + 'Upload Multiple Files</a></li>' + 'Add a Video</a></li>' + 'Create Blog Post</a></li>' + 'Admin Dashboard</a></li>' + 'Edit wiki navigation</a></li>' + '<a href="/wiki/MediaWiki:Wikia.css?action=edit" class="sysop-only">Sculpt with some CSS</a></li>' + '<li><a href="/wiki/MediaWiki:Common.js?action=edit" class="sysop-only">Go advanced with some JS</a></li>' + '</ul> ');    if(wgUserGroups.indexOf('sysop') > -1 || wgUserGroups.indexOf('staff') > -1 || wgUserGroups.indexOf('helper') > -1) {        return 0;    } else {        $('a.sysop-only').remove;    } }); /* End */