User:Suzon/global.js

// Skin Switch Button $( function {    if ( !document.getElementById( 'ca-skins' ) ) {        if ( skin === 'oasis' || skin === 'wikia' ) {            $('ul.tools li:first-child').before('Switch Skin' );        } else {            $( 'Switch Skin' ).appendTo( '#p-cactions > .pBody > ul' );        }    } } ); // /* Monchomans chat hacks */ importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); /* Change "A Wikia contributor" to IP address*/ importScriptPage('MediaWiki:Common.js/ipAnon.js', 'admintools'); /*Custom Edit buttons- (The help page) */ importScriptPage('User:Kangaroopower/global.js/editbuttons.js', 'c'); /* Add a clock to the wiki header */ importScriptPage('MediaWiki:Common.js/displayTimer.js', 'c'); /* Auto-refresh the Recentchanges and Wikiactivity; copied from Avatar Wiki's */ AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = ["Special:RecentChanges","Special:WikiActivity"]; importScriptPage('AjaxRC/code.js', 'dev');

/*ChatPMs*/ if(wgCanonicalSpecialPageName == 'Chat') { function createGroupPM { var users = prompt('Enter comma seperated list of users to start a PM with',''); var users = users.split(','); mainRoom.openPrivateChat(users); } $('form#Write').append('PM'); }