User:JBed/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);