User:RogalDorn/wikia.js

// Make images link to the file pages again, like they should >_> $('a.image').each(function { var url = $(this).attr('href').split('/');    url = url[url.length-1];     url = 'http://warhammer40k.wikia.com/wiki/File:'+url;           $(this).attr('href',url); });

// Change section edit links back to the way they were before $('span.editsection').each(function{ var hre = $('a:first-child',$(this)).attr('href'); $(this).html('[edit]').css('float','right'); });

// Fix search so it goes directly to pages, again like it used to when things worked right $('#WikiaSearch').attr('action','/index.php?title=Special:Search'); $('#WikiaSearch input[name="fulltext"]').val('0');