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"; var wlObj       = document.createElement('span'); wlObj.id        = 'header_mywatchlist'; wlObj.appendChild(wlLink); document.getElementById('userData').insertBefore(wlObj, document.getElementById('header_mytalk').nextSibling); } addOnloadHook(restoreWatchlistLink);

// Override Lightboxes and go directly to the image's page when clicking on an image 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);