User:ThatCruelAngel/global.js

importScriptPage( 'AjaxUndo/code.js', 'dev' ); importScriptPage('User:Quarenon/quickpreview.js', 'runescape'); importScriptPage('AdvancedOasisUI/code.js', 'dev'); importScriptPage('User:Foodbandlt/FixedChatHacks.js', 'c');

/* PMs button */ 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'); }

//changes the contribute button to a recent changes button $(function { $('.WikiHeader div.buttons nav').replaceWith('  Recent Changes '); });

//fast delete var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'spam', 'label': 'SP'}; fdButtons[fdButtons.length] = { 'summary': 'vandalism', 'label': 'VA'}; fdButtons[fdButtons.length] = { 'summary': 'Housekeeping', 'label': 'HK'}; fdButtons[fdButtons.length] = { 'summary': 'Spam/Self-Answered Question', 'label': 'Self'}; fdButtons[fdButtons.length] = { 'summary': 'Not a Question/Nonsensical Question', 'label': 'NotAQ'}; fdButtons[fdButtons.length] = { 'summary': 'Not About Bleach', 'label': 'NotB'}; fdButtons[fdButtons.length] = { 'summary': 'Please see the main page. The anime has ended. It is not coming back', 'label': 'Anime'}; // remove admin link on toolbar $.ready( function { $('li > a[data-tracking="admindashboard/toolbar/admin"]').remove; } );

// ============================================================ // displayTimer // ============================================================ var refreshDate; function addDate { var UTCDate = ((new Date).toUTCString).replace("GMT", "(UTC)"); $('#showdate').empty.append(' ' + UTCDate.substring(5) + ' '); window.clearTimeout(refreshDate); refreshDate = window.setTimeout(addDate, 5000); } $(document).ready(function {   if (skin == 'oasis')         $(' ').appendTo('#GlobalNavigation');    else        $('#p-personal ul').prepend(' ');    addDate;    refreshDate = window.setTimeout(addDate, 5000);    $('#displayTimer').css({'font-size': "12px"}); }); //

/* skin change buttons */ function CreateSkinChangeButtons { //Oasis buttons $('div.buttons a:first-child').before('MonobookVector'); //Monobook buttons $('#p-cactions .pBody ul li:nth-last-child(1)').after('<a href="/index.php?title='+ encodeURIComponent(wgPageName) +'&useskin=wikia" title="Change to Oasis [o]" id="skinChangeButton" accesskey="o">Oasis</a></li><a href="/index.php?title='+ encodeURIComponent(wgPageName) +'&useskin=vector" title="Change to Vector [v]" id="skinChangeButton" accesskey="o">Vector</a></li>'); } addOnloadHook(CreateSkinChangeButtons);