User:Nekky-chan/global.js

//writeonly $(function { var qstring = (window.location.search) ? '&' : '?',    li3 = mw.html.element('li', {id: 'mca'}, new mw.html.Raw(mw.html.element('a', {href: (window.location.href).replace(/#.*/, '') + qstring + 'mcache=writeonly',}, ('writeonly'))));    $('.tools').append(li3); });

//internal stats $('.tools').append( $('').text('env: '+wgWikiaEnvironment+' | NS: '+wgNamespaceNumber+' | lang: '+wgContentLanguage+' | Id: '+wgCityId+' | db: '+wgDBname ) );

//Preview var url = location.toString; var indexOfFandom = url.search(/(\.fandom\.com)|(\.wikia\.com)|(\.wikia\.org)/); var previewURL = ""; if (indexOfFandom != -1) { previewURL = url.slice(0,indexOfFandom) + ".preview" + url.slice(indexOfFandom); previewURL = previewURL.replace("https","http"); } //add to toolbar $('#WikiaBar .toolbar .tools').append('preview');

// @DarkBarbarian $(function {   //Notifcations open on hover	$('.notifications > .wds-dropdown').mouseover(function { mw.loader.using("skin.fandomdesktop.GlobalNavigationNotifications.js").then(function(e) {			e("skin.fandomdesktop.GlobalNavigationNotifications.js").loadNotifications;			$('.notifications > .wds-dropdown').mouseenter(function { $('.notifications > .wds-dropdown').addClass('wds-is-active'); }).mouseleave(function { $('.notifications > .wds-dropdown').removeClass('wds-is-active'); });		});	}); });

// soap imports mw.loader.load('//internal-soap.fandom.com/index.php?title=User:Nekky-chan/scripts-ucp.js&action=raw&ctype=text/javascript'); //GlobalNavButtons imports mw.loader.load('//dev.fandom.com/index.php?title=User:Nekky-chan/GlobalNavButtonsConf.js&action=raw&ctype=text/javascript');

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AjaxEditPreview.js',        'u:dev:MediaWiki:QuickDiff/code.js',        'u:dev:MediaWiki:PortableCSSPad/code.js',        'u:dev:MediaWiki:ThemeToggler.js',        'u:dev:MediaWiki:View_Source/code.js',        'u:dev:MediaWiki:ThemeDesignerSidebarHidingButton.js',        'u:dev:MediaWiki:QuickBarPageTools.js',        'u:dev:MediaWiki:MobilePreview.js',        'u:helpers:MediaWiki:CleanupChatmods.js',        'u:community:MediaWiki:Van-RedirectCategories.js',        'u:dev:MediaWiki:QuickPurge.js',        'u:dev:MediaWiki:Bang.js',        'u:dev:MediaWiki:GlobalNavButtons.js',    ] });