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

var WikiaNotificationMessage = "Hello world!"; importScriptPage('WikiaNotification/code.js', 'dev');

importScriptPage('AjaxBatchDelete/code.js', 'dev');

importScriptPage('ShareMenu/code.js', 'dev');

importScriptPage('SkinSwitchButton/code.js', 'dev');

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

importScriptPage('Voice_Output/code.js', 'dev');

importScriptPage('ChatRefresh/code.js', 'dev');

importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importScriptPage('User:Joeytje50/tabinsert.js','rs'); importScriptPage('User:Madnessfan34537/multikick.js', 'callofduty'); importScriptPage('User:Madnessfan34537/quickban.js', 'callofduty'); $(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);            }        }    } }); // Changes WikiaContributer to IP in Article Comments from rappy $('#WikiaArticleComments .edited-by a[href*="/wiki' +         '/Special:Contributions"]').each(function {       $(this).html(this.href.substring(this.href.lastIndexOf('/') + 1));    }); function kickUserButton { var kickuser = prompt('Enter Username here','User'); if (kickuser.length != 0) { mainRoom.kick({name:kickuser}); } } $('Kick ').prependTo('.Rail'); importArticles({   type: "script",    articles: [        // Useful buttons        "u:c:User:Jr Mime/buttons.js",        // Advanced tools        "w:c:dev:QuickTools/advanced.js",        // Auto RC        "w:c:dev:AjaxRC/code.js",        // Undo+        "w:c:rs:User:Suppa_chuppa/undoplus.js",        // Template button        "w:c:mlp:User:Jr Mime/MarkForTemplate/General.js",        // Kill Tool        "w:c:answers:User:The Mol Man/Annihilate.js",        // Kill Tool V2 //      "w:c:dev:Sonicboom/code.js",        // HotCat        "w:c:answers:MediaWiki:Gadget-HotCat.js",        // File uglyness fix        "w:c:dev:NoImageLightbox/code.js",        // Cheating template        "w:c:a:User:Jr Mime/MarkForTemplate.js",        // CSS pad        "w:c:dev:PortableCSSPad/code.js",        // Cache script        "w:c:dev:CacheCheck/code.js",

// File Usage Auto update "w:c:dev:FileUsageAuto-update/code.js", // Mini Complete "w:c:dev:MiniComplete/code.js",

// Category Rename Auto Update "w:c:dev:CategoryRenameAuto-update/code.js" //Quick Tools (v1) "w:c:dev:QuickTools/code.js", ] }); dev.verbatim.ready dev.verbatim.ready(callback); dev.verbatim.ready(function (mw, $) { $('#username').text(mw.config.get('wgUserName')); }); importArticles({ type: 'script', articles: [ 'u:dev:Message/code.js' ] }); importArticles({ type: 'script', articles: [ 'u:dev:UserRightsRecord/code.js' ] }); importArticles({ type: 'script', articles: [ 'u:dev:SexyUserPage/code.js' ] });