User:Rjd0060/findreplace.js

function replace { document.forms["editform"].wpTextbox1.value = document.forms["editform"].wpTextbox1.value.replace(/\[\[Dustin Brown/g, "[[Dustin Brown (ice hockey)");   document.forms["editform"].wpSummary.value = "update link - was to a disambiguation page";    document.forms["editform"].wpWatchthis.checked = false;    document.forms["editform"].submit; } $(function {    if(location.href.search(/[\?\&]action\=edit/) != -1) mw.util.addPortletLink("p-tb", "javascript:replace", "Text replacer", "t-replacetext"); });