User:Super Miron/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");	}); }

///////////IMPORTS window.AdvancedOasisUI = { accountNavFollowedPages: true, accountNavWatchlist: true, categoryRedlink: true, RCHeader: true, lightbox: true, randomPageLimitedTo: '', activity2RC: true, userLang: true, };

window.ajaxPages = [ "Special:Contributions", "Special:Log", "Special:RecentChanges", "Special:Watchlist", "Special:WikiActivity" ];

var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'spam', 'label': 'spam' }; fdButtons[fdButtons.length] = { 'summary': 'copyright violation', 'label': 'copyvio' }; fdButtons[fdButtons.length] = { 'summary': 'not related', 'label': 'unrelated' }; fdButtons[fdButtons.length] = { 'summary': 'advertisement', 'label': 'ad' }; fdButtons[fdButtons.length] = { 'summary': 'author request', 'label': 'request' };

importArticles({   type: 'script',    articles: [        'u:dev:QuickToolsv2/code.js',        'u:dev:AdvancedOasisUI/code.js',        'u:dev:MessageBlocker/code.js',        'u:dev:MarkForDeletion/code.js',        'u:dev:RevealAnonIP/code.js',        'u:dev:DisplayClock/code.js',        'u:dev:PortableCSSPad/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:dev:FastDelete/code.js',        'u:dev:WHAM/code.2.js',        'u:dev:Rollback/code.js'    ] });

if ( wgPageName == "Special:Chat" ) { importScriptPage("MediaWiki:ChatOptions/code.js", "dev");

var faces = [ ["( ≖‿≖)", "( ≖⁔≖)"],   ["( ≖ิ‿≖ิ)", "( ͡° ͜ʖ ͡°)"], ["٩(͡๏̯͡๏)۶", "ಠ_ಠ"] ]; var facesTable = ""; for(var i=0; i'+faces[i][j]+' '; }   facesTable += " "; } $('form#Write').append('Faces'); $("body").append(' '); function toggleFaces { $("table#faces").toggle; } var inputbox = '#Write textarea[name="message"]'; function inputboxAppend(s){ var inputboxVal = $(inputbox).val; if ( inputboxVal != '' ) { if ( inputboxVal[inputboxVal.length-1] != " " ) { var val = inputboxVal + ' ' + s;		} else { var val = inputboxVal + s;		} $(inputbox).val(''); } else { var val = s;	} $(inputbox).focus; // set focus on the input box $(inputbox).val(val); // apply the new value } $('table#faces td').click(function{   inputboxAppend($(this).html); }); appendCSS('table#faces td { cursor: pointer !important; }');

};