User:JustLeafy/global.js

////////////////////////////////////////////////////////////////////////// /************************************************************************/ /******************************** Imports *******************************/ /************************************************************************/ ////////////////////////////////////////////////////////////////////////// /* Universal 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:MediaWiki:ConsistentModules/code.js',        'u:dev:BlogLink/code.js',        'u:dev:RedirectManagement/code.js',        "u:dev:MediaWiki:FandomIcons/code.css",    ] });

WHAMDelay = 1000;

//__NOWYSIWYG__

importStylesheetPage('MediaWiki:ScrollableFanFeed/main.css', 'el.alpha-styles');

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-header' ); } else { $( 'Random wiki' ).appendTo( '#p-wikicities-nav > .pBody > ul' ); }	}

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

// from pl.nfs - wikia.js // $(function {	if (mw.config.get("wgNamespaceNumber") == 2 && $(".UserProfileActionButton").length && $(".masthead-info hgroup").length) {		var actions = mw.config.get("wgWikiaPageActions"),			curAction		$('.UserProfileActionButton').remove		if (actions) {			var button = ' '			curAction = actions.filter(function (action) { return action.id === "page:Edit"; })[0]			if (curAction) button += ' ' + curAction.caption + ' '			else button += '<path d="M11 6H7V5c0-1.1.9-2 2-2s2 .9 2 2v1zm-1 6.7V14H8v-1.3c-.6-.3-1-1-1-1.7 0-1.1.9-2 2-2s2 .9 2 2c0 .7-.4 1.4-1 1.7zM9 1C6.8 1 5 2.8 5 5v1H3c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1h12c.6 0 1-.4 1-1V7c0-.6-.4-1-1-1h-2V5c0-2.2-1.8-4-4-4z" fill-rule="evenodd">  Tekst źródłowy </a>' button += ' <div class="wds-button wds-is-secondary wds-is-squished wds-dropdown__toggle"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" class="wds-icon wds-icon-tiny wds-dropdown__toggle-chevron" id="wds-icons-dropdown-tiny"><path d="M6 9l4-5H2" fill-rule="evenodd"> <div class="wds-dropdown__content wds-is-not-scrollable wds-is-right-aligned"><ul class="wds-list wds-is-linked">' curAction = actions.filter(function (action) {				return action.id === "page:History";			})[0] if (curAction) button += '' + curAction.caption + '</a></li>' curAction = actions.filter(function (action) {				return action.id === "page:Move";			})[0] if (curAction) button += '' + curAction.caption + '</a></li>' curAction = actions.filter(function (action) {				return action.id === "page:Protect";			})[0] if (curAction) button += '' + curAction.caption + '</a></li>' curAction = actions.filter(function (action) {				return action.id === "page:Delete";			})[0] if (curAction) button += '' + curAction.caption + '</a></li>' button += '</ul>  ' $(button).appendTo(".masthead-info hgroup").css({				float: "right"			}) }	} })