User:UltimateSupreme/global.js

if ( ( skin === "oasis" || skin === "wikia" )&& wgAction !== "edit" ) { importStylesheetPage("User:Dantman/global.css", "community"); jQuery(function($) { $ ( ' Recent Changes' ) . insertAfter ( "#WikiHeader .buttons .wikia-button[data-id=wikiactivity]" ) . before ( ' ' ) ;    }); } /* Custom edit buttons* Original by User:Grunny*/ if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/7/73/Button_code_nowiki.png?1", "speedTip": "code nowiki", "tagOpen": " ", "sampleText": "Insert code here" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/2/29/Button_user.png?1", "speedTip": "Global user template", "tagOpen": "", "tagClose": "", "sampleText": "" }; }

/** * Add stuff to user menu */ $(function { $ ( 'ul.AccountNavigation li:first-child ul.subnav li:first-child' ) . after ( 'ContributionsFollowed pages' ) ; }); $(function changeimagelinks {   if (window.skin == 'oasis') {        var article = $('#WikiaArticle, .LatestPhotosModule, #article-comments');    }    else {        var article = $('#bodyContent');    }    article.unbind('click.lightbox');    var a = document.getElementsByTagName("a");    for ( var t = 0; t < a.length; ++t ) {        var a2 = a[t];        var img = a2.getElementsByTagName("img");        if ( img[0] != null ) {            if ( a2.href.indexOf("images.wikia.com") != -1 ) {                var link = wgServer + '/wiki/File:' + a2.href.substring(a2.href.lastIndexOf('/') + 1);                a2.setAttribute('href',link);            }        }    } }); importScriptPage('FixWantedFiles/code.js', 'dev'); importScriptPage('PurgeButton/code.js', 'dev' ); importScriptPage('InactiveUsers/code.js', 'dev'); importScriptPage('AjaxBatchDelete/code.js', 'dev');

/** * Auto updating recent changes opt-in * See w:c:dev:AjaxRC for info & attribution */ AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; importScriptPage('AjaxRC/code.js', 'dev');