User:Rifatmfarid/global.js

// ============================================================ // 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, 1000); } $(document).ready(function {   if (skin == 'oasis')         $(' ').appendTo('#GlobalNavigation');    else        $('#p-personal ul').prepend(' ');    addDate;    refreshDate = window.setTimeout(addDate, 1000);    $('#displayTimer').css({'font-size': "12px"}); }); // /* Fixed Chat Hacks */ importScriptPage('User:Foodbandlt/FixedChatHacks.js', 'c'); /* PMs button */ if(wgCanonicalSpecialPageName == 'Chat') { function createGroupPM { var users = prompt('Enter comma separated list of users to start a PM with',''); var users = users.split(','); mainRoom.openPrivateChat(users); } $('form#Write').append('Group'); } /* BackToTopButton */ importScriptPage('BackToTopButton/code.js', 'dev'); /* InactiveUsers */ importScriptPage('InactiveUsers/code.js', 'dev'); // http://dev.wikia.com/wiki/RevealAnonIP importScriptPage('RevealAnonIP/code.js', 'dev'); importScriptPage('AjaxRC/code.js', 'dev'); function AddRecentChanges { $('div.buttons').css({'width': '310px'}); $('a[data-id="wikiactivity"]').after('Recent Changes'); } addOnloadHook(AddRecentChanges); /* Auto Refresh */ AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = ["Special:RecentChanges","Special:WikiActivity"]; importScriptPage('AjaxRC/code.js', 'dev'); /* Code for custom edit buttons (ō, ū characters). */ if (mwCustomEditButtons) { /*** wrappers *****/ mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/deadmanwonderland/images/e/e1/O_Accent_Button.png", "speedTip": "Add the ō character", "tagOpen": "ō", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/deadmanwonderland/images/d/db/U_Accent_Button.png", "speedTip": "Add the ū character", "tagOpen": "ū", "tagClose": "", "sampleText": ""}; }

/* Fast Delete */ importScriptPage( 'FastDelete/code.js', 'dev' );

var fdButtons = [];

fdButtons[fdButtons.length] = { 'summary': 'spam', 'label': 'spam' }; fdButtons[fdButtons.length] = { 'summary': 'vandalism', 'label': 'vandal' };

fdButtons[fdButtons.length] = { 'summary': 'spam', 'label': 's' };

fdButtons[fdButtons.length] = { 'summary': 'Repetitive question', 'label': 'Rp question' };

fdButtons[fdButtons.length] = { 'summary': 'Repetitive relationship questions', 'label': 'Rpr question' };