Forum:Can I make links on WLH go straight to edit page?

I use What Links Heres a lot when re-linking things. To re-link I open up multiple pages, then go through them all hitting Alt+Shift+E. This is a process that wouldn't be necessary if the links on WLHs could go straight to the edit form.

Is it possible to change the links featured on WLHs to go straight to the edit form, or to add a "(edit)" link to the end of each entry on the WLH? I figured if it were possible it would be through JS, however I only have a very limited knowledge of JS and thought it would be easier to ask here to find out if it is possible. JBed 22:14, January 24, 2012 (UTC)


 * Yes. Put this in your global.js:

 function WLHEditLinks { if(wgCanonicalSpecialPageName != 'WhatLinksHere') {return;} var list = document.getElementById('mw-whatlinkshere-list').getElementsByTagName('li'); for(var i = 0; i < list.length; i++) { var link = list[i].getElementsByTagName('a')[0]; link.outerHTML += ' (edit)'; } } addOnloadHook(WLHEditLinks);
 * That'll put  with a link to edit the page next to every page.
 * Unless I somehow added it wrong, it doesn't seem to be working :/ JBed 14:44, January 25, 2012 (UTC)
 * It takes a little while for Wikia to recognize new personal code pages and begin serving them, usually around a day. Also, while troubleshooting this, I realized I forgot to have it make sure it's on S:WLH first, so I added that in the code above.