User:Spydar007/global.js

/* the ability to review deleted messages in the forum */ /* manual removal - the ability to view a removed message by clicking it */ $(document).ready(function {	$("#Wall .replies .hide").attr("title","Click here to view this message").attr("style","cursor: hand; cursor: pointer;");	$("#Wall .replies .hide").mousedown(function { $(this).removeClass("hide").removeAttr("title").removeAttr("style"); }); }); /* absolute removal - the ability to review all removed messages at once */ // oasis if ($("body.ns-1201.skin-oasis #Wall .replies .hide").length > 0) { $("#my-tools-menu").prepend(' Review all messages\n'); $('#my-tools-menu .overflow a[data-name="undeleteBoardThreadMessages"]').click(function {		$("#Wall .replies .hide").removeClass("hide").removeAttr("title").removeAttr("style");	}); } // monobook if ($("body.ns-1201.skin-monobook #Wall .replies .hide").length > 0) { $(".BreadCrumbs:first").prepend('Review all messages\n'); $('#undeleteBoardThreadMessages').click(function {		$("#Wall .replies .hide").removeClass("hide").removeAttr("title").removeAttr("style");	}); } $("head title").html(wgPageName + " - " + wgSiteName); window.AdvancedOasisUI = { accountNavFollowedPages: true, accountNavWatchlist: true, categoryRedlink: true, RCHeader: true, lightbox: true, randomPageLimitedTo: '', activity2RC: true, userLang: true, }; ajaxPages = [ "Special:Contributions", "Special:Log", "Special:RecentChanges", "Special:Watchlist", "Special:WikiActivity" ]; importArticles({   type: 'script',    articles: [        'u:dev:AdvancedOasisUI/code.js',        'u:dev:MessageBlocker/code.js',        'u:dev:MarkForDeletion/code.js',        'u:dev:RevealAnonIP/code.js',        'u:dev:PurgeButton/code.js',        'u:dev:AjaxRC/code.js',        'u:dev:AjaxBatchDelete/code.js',        'u:dev:AjaxPatrol/code.js',        'u:dev:AjaxUndo/code.js',        'u:dev:HideRail/code.js',        'u:dev:FloatingToc/code.js',        'u:c:User:Cap123/ChatHacks2.js',        'u:c:User:Monchoman45/ChatHacks.js',        'u:c:User:Cap123/ChatHacks.js',        'u:c:User:Joeytje50/ChatPMs.js', //      'u:c:User:Super Miron/ChatTop.js',        'u:cod:User:Madnessfan34537/multikick.js',        'u:dev:WHAM/code.js',        'u:wikimarks:Client.js',,    ] });

// Adding a clock to the WikiHeader hookEvent( 'load', displayTimer ); function displayTimer {   if ( typeof( timerDisplay ) !== 'undefined' && timerDisplay === false ) return; var date; if (skin == 'oasis') {   var timerParent = document.getElementById( 'WikiHeader' ).getElementsByTagName( 'div' )[0]; }   if (skin == 'monobook') {   var timerParent = document.getElementById( 'p-personal' ).getElementsByTagName( 'ul' )[0]; }   var timerLink   = document.createElement( 'a' ); var timerObj   = document.createElement( 'li' ); timerLink.href              = '/wiki/' + wgPageName + '?action=purge'; timerLink.title             = 'Purge the server cache and update the contents of this page.' timerObj.id                 = 'displayTimer'; timerObj.style.textTransform = 'none'; timerObj.style.fontWeight   = 'bold'; timerObj.style.fontSize     = '100%'; timerObj.appendChild( timerLink ); timerParent.insertBefore( timerObj, timerParent.firstChild ); if (skin == 'oasis') {       $('#displayTimer').css({'position': "inherit", 'right': "175px", 'top': "-28px"}); }   var month = new Array(12); month[0] = "Jan"; month[1] = "Feb"; month[2] = "Mar"; month[3] = "Apr"; month[4] = "May"; month[5] = "Jun"; month[6] = "Jul"; month[7] = "Aug"; month[8] = "Sep"; month[9] = "Oct"; month[10] = "Nov"; month[11] = "Dec"; function actualizeUTC {       timerDate           = new Date; timerLink.innerHTML = ( timerDate.getUTCDate    < 10 ? '0' : '' ) + timerDate.getUTCDate     + ' ' + ( timerDate.getUTCMonth   < 10 ?  :   ) + month[timerDate.getUTCMonth] + ' ' + ( timerDate.getUTCFullYear < 10 ? '0' : '' ) + timerDate.getUTCFullYear + ' ' + ( timerDate.getUTCHours   < 10 ? '0' : '' ) + timerDate.getUTCHours    + ':' + ( timerDate.getUTCMinutes < 10 ? '0' : '' ) + timerDate.getUTCMinutes  + ':' + ( timerDate.getUTCSeconds < 10 ? '0' : '' ) + timerDate.getUTCSeconds  + ' (UTC)'; }   function actualizeCustom {       timerDate           = new Date; timerDate.setMinutes ( timerDate.getMinutes + timerDate.getTimezoneOffset + timerTimezone * 60 ); timerLink.innerHTML = ( timerDate.getDate    < 10 ? '0' : '' ) + timerDate.getDate     + ' ' + ( timerDate.getMonth   < 10 ?  :   ) + month[timerDate.getMonth] + ' ' + ( timerDate.getFullYear < 10 ? '0' : '' ) + timerDate.getFullYear + ' ' + ( timerDate.getHours   < 10 ? '0' : '' ) + timerDate.getHours    + ':' + ( timerDate.getMinutes < 10 ? '0' : '' ) + timerDate.getMinutes  + ':' + ( timerDate.getSeconds < 10 ? '0' : '' ) + timerDate.getSeconds + ' (UTC' + ( timerTimezone < 0 ? '' : '+' ) + timerTimezone + ')'; }   // start if ( typeof( timerTimezone ) !== 'number' ) {       actualizeUTC; setInterval( actualizeUTC, 1000 ); }   else {       actualizeCustom; setInterval( actualizeCustom, 1000 ); } }