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 { 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.