User:Faern./global.js

// Add a link to the watchlist at the top of the page function restoreWatchlistLink { var wlLink      = document.createElement('a'); wlLink.href     = '/wiki/Special:Watchlist'; wlLink.title    = 'Your watchlist'; wlLink.innerHTML = "My watchlist";

if (skin == 'oasis') { var wlObj       = document.createElement('li'); wlObj.appendChild(wlLink); var accNav = document.getElementById('AccountNavigation'); accNav.getElementsByTagName('li')[0].getElementsByTagName('ul')[0].appendChild(wlObj); } else { var wlObj       = document.createElement('span'); wlObj.id        = 'header_mywatchlist'; wlObj.appendChild(wlLink); document.getElementById('WikiaHeader').insertBefore(wlObj, document.getElementById('AccountNavigation')); } } if (window.addEventListener) window.addEventListener("load",restoreWatchlistLink,false); else if (window.attachEvent) window.attachEvent("onload",restoreWatchlistLink);

// Override Lightboxes and go directly to the image's page when clicking on an image thumbnail var ImageLightbox= { log:function(msg) { $.log(msg,'ImageLightbox'); }, track:function(fakeUrl){ window.jQuery.tracker.byStr('lightbox'+fakeUrl); }, init:function{ var self=this; if(!window.wgEnableImageLightboxExt){ this.log('disabled'); return; }   var images=$('#bodyContent').find('a.lightbox, a.image'); if(!images.exists){return;} images.unbind('.lightbox').bind('click.lightbox',function(ev){self.onClick.call(self,ev);}); }, onClick:function(ev){ }, show:function(imageName,caption){ } }; ImageLightbox.init.call(ImageLightbox);