User:Pbeaudette/global.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:FastDelete/code.js',        'u:dev:MediaWiki:QuickDelete/code.js',    ] });

//fast delete buttons 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': 'Violation of Wikia\'s Terms of Use', 'label': 'ToU' };

$('Wikia.css' +    'Wikia.js' +     'Global.css' +     'Global.js') .insertAfter('.AccountNavigation .subnav li:first');

if (wgAction != 'edit') { var mods = ""; if (document.URL.indexOf('?') != -1) { mods = '&' + document.URL.substring(document.URL.indexOf('?') + 1); if (mods.indexOf('&useskin=') != -1) { mods = mods.replace(/&useskin=\w+/, ""); }   }    switch (skin) { case 'uncyclopedia': case 'monobook': $('<a title="View in Oasis" href="/wiki/' + wgPageName + '?useskin=oasis' + mods + '">Oasis</a></li>').appendTo('#p-cactions ul'); break; case 'oasis': case 'wikia': $(' <a title="View in Monobook" href="/wiki/' + wgPageName + '?useskin=monobook' + mods + '">Monobook</a></li>').appendTo('#WikiaBarWrapper .toolbar .tools'); break; } }