User:Roadhawk/global.js

importArticles({   type: 'script',    articles: [        'w:dev:QuickCreateUserPage/code.js'    ] }); var qtEnableUserPageOverwrite = true; var qtUserPageTemplate = '';

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');

//Imports importScriptPage('MessageBlocker/code.js', 'dev'); importScriptPage('MediaWiki:B3.js', 'monchbox'); importScriptPage('View_Source/code.js', 'dev'); importScriptPage('MediaWiki:WhamAPI.js', 'monchbox'); importScriptPage('EditcountTag/code.js', 'dev'); importScriptPage('SearchButtonV2/code.js', 'dev'); importScriptPage('BackToTopArrow/code.js/black', 'dev'); importScriptPage('ListAdmins/code.js', 'dev'); importScriptPage('User:Joeyaa/wham.js','vstf'); importScriptPage('MarkForDeletion/code.js', 'dev'); importScriptPage('Translator/Translator.js', 'dev'); importScriptPage('ArchiveTool/code.js', 'dev'); importScriptPage('User:Joeytje50/tabinsert.js','rs'); importScriptPage('SocialIcons/code.js','dev'); importScriptPage('ExternalImageLoader/code.js', 'dev');

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:NoImageLightbox/code.js",        "w:c:a:User:Jr Mime/MarkForTemplate.js",        "w:c:dev:CacheCheck/code.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:CapsFirst/code.js',       'u:dev:Code/code.js',       'u:dev:PageMakerPro/code.js',       'w:c:mostlyeverything:User:Sactage/RollbackMods.js',        // ...        'u:dev:FastDelete/code.js',        // ...    ] }); //Fast Delete 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' };

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

//Custom Edit Buttons if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/central/images/b/b4/Button_category03.png", "speedTip": "Category", "tagOpen": "[[Category:",    "tagClose": "]]", "sampleText": "Category name"}; } if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/3/3b/Button_template_alt.png", "speedTip": "Template", "tagOpen": "", "sampleText": "Template"}; } if (wgAction == "edit" || wgAction == "submit") { /***** Custom edit buttons *****/ if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/__cb20100502153339/callofduty/images/1/17/Button_Ssig.jpg", "speedTip": "Signature", "tagOpen": "", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c8/Button_redirect.png", "speedTip": "Redirect", "tagOpen": "#redirect",               "tagClose": "", "sampleText": "PAGE"}; } }