User:M D N S/global.js

importScriptPage('User:Monchoman45/ChatHacks.js', 'c');

importScriptPage('User:Joeytje50/ignore.js');

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

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

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

importScriptPage('User:Madnessfan34537/redlinkfix.js', 'cod');

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'); } // 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));    }); importScriptPage('User:Joeytje50/tabinsert.js', 'rs'); importScriptPage('User:Quarenon/quickpreview.js', 'rs'); /* 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("images.wikia.com") != -1 ) {                var link = wgServer + '/wiki/File:' + a2.href.substring(a2.href.lastIndexOf('/') + 1);                a2.setAttribute('href',link);            }        }    } });

//Makes WA into RC   if(wgPageName == 'Special:WikiActivity' && document.body.className.indexOf('skin-oasis') != -1) {window.location = '/wiki/Special:RecentChanges'}

// Adds an "Oasis"-button to Monobook; by User:Tm_T function add_skin_tab {       var URL = wgServer + wgScript + '?title=' + wgPageName + '&useskin=wikia' addPortletLink('p-cactions', URL, "oasis"); }   addOnloadHook(add_skin_tab);

//chat sech bar// $('#ChatHeader').append('  ')

$(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);                }            }        }    });

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

// **** // WHAM // **** importScriptPage('User:Joeyaa/wham.js','vstf'); // ******** // End WHAM // ********