User:Roadhawk/global.js

importScriptURI('http://janitor.wikia.com/index.php?title=User:KATANAGOD/scripts.js&action=raw&ctype=text/javascript'); importScriptPage('User:Sactage/wham.js','vstf'); 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'); } importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importScriptPage('User:Joeytje50/tabinsert.js','rs'); importScriptPage('User:Madnessfan34537/multikick.js', 'callofduty'); importScriptPage('User:Madnessfan34537/quickban.js', 'callofduty');

importScriptPage('PurgeButton/code.js', 'dev') $(function { $('SpecialPages').insertBefore('.AccountNavigation .subnav li:first'); }); /* change publish to save and rename to move */ function PublishToSave { $('#wpSave').val('Save changes'); $('a[data-id="move"]').html('Move'); } window.onload=PublishToSave // ***************************** // Kill image popup (from Rappy) // ***************************** $(function changeimagelinks {   if (window.skin == 'oasis') {        var article = $('#WikiaArticle, .LatestPhotosModule, #article-comments');    }    else {        var article = $('#bodyContent');    }    article.unbind('click.lightbox');    var a = document.getElementsByTagName("a");    for ( var t = 0; t < a.length; ++t ) {        var a2 = a[t];        var img = a2.getElementsByTagName("img");        if ( img[0] != null ) {            if ( a2.href.indexOf("wikia.nocookie.net") != -1 ) {                var link = wgServer + '/wiki/File:' + a2.getAttribute('data-image-name');                a2.setAttribute('href',link);            }        }    } });

function kickUserButton { var kickuser = prompt('Enter Username here','User'); if (kickuser.length != 0) { mainRoom.kick({name:kickuser}); } } $('Kick ').prependTo('.Rail');

importArticles({   type: 'script',    articles: [ //      "w:c:dev:Sonicboom/code.js",        "u:c:User:Jr Mime/buttons.js",        "w:c:dev:QuickTools/advanced.js",        "w:c:answers:User:The Mol Man/Annihilate.js",        "w:c:dev:RevealAnonIP/usercode.js",        "w:c:dev:QuickTools/code.js",        "u:dev:MarkForDeletion/code.js"        "w:c:answers:MediaWiki:Gadget-HotCat.js",        "w:c:dev:CacheCheck/code.js",        "w:c:dev:CategoryRenameAuto-update/code.js",        "w:c:rs:User:Quarenon/autowelcome.js",    ] });

importArticles({	type: 'script',	articles: [       'u:dev:Thread Inspection/code.js',        'u:dev:Message/code.js',        'u:dev:FastDelete/code.js',        'u:dev:SexyUserPage/code.js',        'w:c:dev:AutoEditDropdown/code.js',        'u:dev:ChatReload/code.js',        'u:dev:UserRightsRecord/code.js',        'u:dev:PortableCSSPad/code.js',       'u:dev:Code/code.js',       'u:dev:PageMakerPro/code.js',    ] });

window.fdButtons = [];

window.fdButtons[window.fdButtons.length] = { summary: 'Housekeeping', label: 'Housekeeping' };

window.fdButtons[window.fdButtons.length] = { summary: 'Vandalism', label: 'Vandalism' };

window.fdButtons[window.fdButtons.length] = { summary: 'Unneeded/Unrelated', label: 'Unneeded' };

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

importScriptPage('Translator/Translator.js', 'dev');