User:Wedkarski/global.js

//IMPORTS importScriptPage('AjaxRC/code.js', 'dev');                         // AjaxRC importScriptPage('User:Monchoman45/ChatHacks.js', 'c');            // ChatHacks importScriptPage('User:Joeytje50/ChatPMs.js', 'c');                // MultiPriv importScriptPage('Użytkownik:Wedkarski/multikick.js', 'wedkarski'); // MultiKick importScriptPage('Użytkownik:Wedkarski/cs-kick.js', 'wedkarski');  // QuickKick importScriptPage('WHAM/code.js', 'dev');                           // WHAM! importScriptPage('PortableCSSPad/code.js', 'dev');                 // PortableCSSPad

window.wgEnableImageLightboxExt = false; function changeimagelinks { $('#WikiaArticle, .LatestPhotosModule, #article-comments').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); }		}	} } addOnloadHook(changeimagelinks);