User:Whistle9/global.js

/* Auto Refresh */ AjaxRCRefreshText = 'Auto-Refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = ["Special:RecentChanges","Special:WikiActivity"];

/* Advanced OasisUI */ window.AdvancedOasisUI = { accountNavFollowedPages: true, accountNavWatchlist: false, categoryRedlink: true, RCHeader: true, lightbox: false, randomPageLimitedTo: '', userLang: true, };

/* Script Import */ importArticles({   type: "script",    articles: [        "w:wikimarks:Client.js",        "w:dev:AjaxRC/code.js",        "w:dev:AjaxUndo/code.js",        "w:dev:HideRail/code.js",        "w:dev:View_Source/code.js",        "w:dev:DisplayTimer/code.js",        "w:dev:AdvancedOasisUI/code.js",        "w:dev:NoImageLightbox/code.js",        "w:dev:FileUsageAuto-update/code.js",        "w:dev:RelatedDiscussionsModule/code.js",        "w:kangaroopower:Mediawiki:Scope.js",    ] });

// Skin Switch Button $( function {    if ( !document.getElementById( 'ca-skins' ) ) {        if ( skin === 'oasis' || skin === 'wikia' ) {            $('ul.tools li:first-child').before('Monobook' );        } else {            $( 'Oasis' ).appendTo( '#p-cactions > .pBody > ul' );        }    } } ); //

// Source Mode Default $(function ($) {	"use strict";	$('.wikia-menu-button a, .editsection a').each(function { var $this = $(this), href = $this.attr('href'); if (href.indexOf('action=edit') !== -1 && href.indexOf('useeditor=source') === -1) { $this.attr('href', (href + '&useeditor=source')); }	}); }); //