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

// ===================================== // Name: AddLinks-Toolbar // Desc: Add custom links to the Toolbar // ===================================== $(document).ready(function {       $('Upload files').insertAfter('ul.tools > li:first-child');        $('Upload log').insertAfter('#CT1');        $('Abuse log').insertAfter('#CT2');        $('CSS / JS</a></li>').insertAfter('#CT3');        $('<a href="/wiki/Forum:Index">Yew Grove</a></li>').insertAfter('#CT4'); });

// =============================================== // Name: AddLinks-Global // Desc: Add custom links to GlobalNavigation // =============================================== $(document).ready(function {   $('<a href="http://runescape.wikia.com/wiki/Special:RecentChanges"> RuneScape Wiki<img src="http://upload.wikimedia.org/wikipedia/commons/b/b5/Crystal_Clear_app_ksirtet.png" width="20" height="20" align="left" border="0"></a></li>').appendTo('ul.GlobalNavigation');    $('<a href="http://community.wikia.com/wiki/Blog:Wikia_Staff_Blog"> Community Central<img src="http://upload.wikimedia.org/wikipedia/commons/d/db/Crystal_Clear_app_kblackbox.png" width="20" height="20" align="left" border="0"></a></li>').appendTo('ul.GlobalNavigation');    $('<a href="http://trac.wikia-code.com/log"> Wikia TRAC Log<img src="http://upload.wikimedia.org/wikipedia/commons/1/1a/Crystal_Clear_app_terminal.png" width="20" height="20" align="left" border="0"></a></li>').appendTo('ul.GlobalNavigation'); }); //