User:RMakise/global.js

// // Fix Lightbox Extension // By: User:Rappy 4187

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('wikia.nocookie.net') != -1) { var link = wgServer + '/wiki/File:' + a2.href.substring(a2.href.lastIndexOf('/') + 1); a2.setAttribute('href',link); }		}	} } addOnloadHook(changeimagelinks);

// Add links to the toolbar $(function{   $('Upload').insertAfter('ul.tools > li:first-child');    $('File list').insertAfter('#CT1');    $('CSS / JS').insertAfter('#CT2');    $('Forums</a></li>').insertAfter('#CT4'); });