User:KORNiUX/global.js

importArticles({   type: 'script',    articles: [        'u:wikimarks:Client.js',        'u:dev:WHAM/code.js',        'u:dev:AjaxBatchDelete/code.js',        'u:dev:RevealAnonIP/usercode.js',        'u:dev:Code/code.js',        'u:ru.community:User:Wildream/AdvancedWikiActivity/code.js',        'u:korniux:AproveEdit/code.js',        'u:c:User:Monchoman45/ChatHacks.js'    ] });

/* kill image popups (Monchoman45's code) */ 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 && a2.href.indexOf('images.wikia.com') != -1) { var link = wgServer + '/wiki/File:' + a2.href.substring(a2.href.lastIndexOf('/') + 1); a2.setAttribute('href',link); }	} } if(skin == 'oasis') {addOnloadHook(changeimagelinks);}