User:Clear Arrow/global.js

// if (wgCanonicalSpecialPageName == 'Chat') importScriptPage('ChatOptions/code.js', "dev");

(function($,d){'use strict';var f=,_init=function{var a;if(window.location.href.indexOf('useskin=')==-1)return;a=_parseURL(window.location.href);if(a.query.useskin){f=(a.query.propagateskin||a.query.useskin)}if(f){$(document.body).bind('click.skinpropagation',_clicEvent);$('form').bind('submit.skinpropagation',_submitEvent)}},_parseURL=function(a){var b={base:,qs:,query:{},hash:},loc=a.indexOf('#'),paras,i,p;if(loc!=-1){b.hash=a.substr(loc+1);a=a.substr(0,loc)}loc=a.indexOf('?');if(loc!=-1){b.qs=a.substr(loc+1);a=a.substr(0,loc);paras=b.qs.split('&');for(i=0;i<paras.length;i++){p=paras[i].split('=');if(p.length==2){b.query[p[0]]=p[1]}}}b.base=a;return b},_getURL=function(a){var b,p;b=a.base+'?';for(p in a.query){if(a.query.hasOwnProperty(p)&&(a.query[p]||a.query[p]==='')){b+=p+'='+a.query[p]+'&'}}b=b.substr(0,b.length-1);if(a.hash){b+='#'+a.hash}return b},_clicEvent=function(e){var a,thisloc;if(e.target.tagName.toLowerCase!='a')return;if(e.target.href.indexOf(d.config.get('wgServer'))!==0)return;a=_parseURL(e.target.href);thisloc=_parseURL(window.location.href);if(a.base==thisloc.base&&a.qs==thisloc.qs&&a.hash){return}if(a.query.useskin&&a.query.useskin!=f){a.query.propagateskin=f}else{a.query.useskin=f}e.target.href=_getURL(a)},_submitEvent=function(e){var a;if(this.action.indexOf(d.config.get('wgServer'))!==0)return;if(this.method.toLowerCase=='post'){a=_parseURL(this.action);a.query.useskin=f;this.action=_getURL(a)}else{$('').val(f).appendTo(this)}},_addUseSkin=function(a,b){var c=_parseURL(a);c.query.useskin=b;c.query.propagateskin=false;return _getURL(c)};window.SkinPropagation={addUseSkin:_addUseSkin};$(_init)})(jQuery,mw);

window.ajaxSpecialPages = ["Recentchanges", "WikiActivity", "Watchlist", "Log", "Contributions"]; window.ajaxIndicator = 'https://vignette1.wikia.nocookie.net/dev/images/c/c5/Circle_throbber.gif'; window.ajaxRefresh = 30000; window.needsLicense = true; window.YoutubePlayerDisableAutoplay = true; window.AjaxRCRefreshText = 'Auto-refresh'; window.ignoreWarnings = true; window.AjaxRCRefreshHoverText = 'Actualiza automáticamente la página'; importScriptPage("MediaWiki:ChatHacks.js", "dev"); window.pseudoVector = { loadCss: true, addReadTab: true, addContributionsTab: false, disableWatchIcon: false, visualEditorIcons: false, blacklist: [ 'es.pokemon.wikia.com', 'es.mario.wikia.com', 'es.kirby.wikia.com', "community.wikia.com", 'kirby.wikia.com', "es.metroid.wikia.com" ] }; importArticles({   type: 'script',    articles: [        'u:dev:PortableCSSPad/code.js',        'u:dev:WHAM/code.2.js',        'u:dev:View_Source/code.js',        'u:dev:WallGreetingButton/code.js',        'u:dev:RevealAnonIP/usercode.js',        'u:dev:RelatedDiscussionsModule/code.js',        'u:dev:PurgeButton/code.js',        "u:dev:RecentChangesMultiple/code.2.js",        'u:dev:MiniComplete/code.js',        'u:dev:QuickDiff/code.js',        'u:dev:ViewRemoved/code.js',        'u:dev:AjaxRC/code.js',        "u:dev:UploadInPage/code.js",        'u:dev:MediaWiki:Wikimarks/code.js',        "u:dev:MediaWiki:BotoneraPopups/BotoneraPopups.js",        "u:dev:MediaWiki:BotoneraPopups/WikiArticle.js",        'u:dev:Pseudo-Vector.js',        'u:dev:UserWikiInfo/code.js',        'u:dev:MediaWiki:AntiSoundcloud/code.js',        "u:dev:MediaWiki:BotoneraPopups/UILang/es.js",        "u:dev:MediaWiki:BotoneraPopups/code.js", 'u:dev:CommentPreview/code.js', 'u:dev:QuickToolsv2/code.js' ] });

$(function {    $('.wds-global-navigation__user-menu:not(a)').on('click', function  { window.location.replace('/wiki/Special:MyPage'); });   var oasis;    if (window.location.href.indexOf('?') != -1) {        oasis = window.location.href + '&useskin=wikia';    }    else {        oasis = window.location.href + '?useskin=wikia';    }    $('#p-tb ul').append('Usar oasis'); }); mw.loader.using('mediawiki.action.edit', function {	if (mw.toolbar) {		mw.toolbar.addButton( 'http://upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png', 'Redirección', '#REDIRECT ',			'', 'Texto', 'mw-editbutton-redirect' );		mw.toolbar.addButton( 'http://upload.wikimedia.org/wikipedia/commons/b/b6/Button_category_link.png', 'Categoría', '[[Category:',		   ']]', 'Texto', 'mw-editbutton-category' );		mw.toolbar.addButton( 'http://upload.wikimedia.org/wikipedia/commons/9/9e/Btn_toolbar_gallery.png', 'Galería', '',			'Imágenes', 'mw-editbutton-gallery' );		mw.toolbar.addButton( 'https://upload.wikimedia.org/wikipedia/en/f/fd/Button_blockquote.png', 'Usuario', '',			mw.config.get('wgUserLanguage'), 'mw-editbutton-userpage' );		mw.toolbar.addButton( 'https://upload.wikimedia.org/wikipedia/en/6/60/Button_insert_table.png', 'Insignia', '',			'Ing2', 'mw-editbutton-badge' );	} });

$(function {	if (!mw.config.get('wgMWSuggestTemplate') && mw.loader.getVersion('mediawiki.legacy.mwsuggest')) {		mw.config.set('wgMWSuggestTemplate', mw.util.wikiScript('api') + '?action=opensearch&search={searchTerms}&namespace={namespaces}&suggest');		mw.config.set('wgSearchNamespaces', [0, 6, 10, 14, 110]);		importScriptURI(mw.config.get('stylepath') + '/common/mwsuggest.js');		window.setTimeout(function { if (window.os_MWSuggestInit) { window.os_MWSuggestInit; }		}, 1000);	} });

//