User:KOER admin/link-edit.js

function linkEdit {   e = document.createElement ("input"); e.setAttribute ("type", "button"); e.setAttribute ("value", "ಕೊಂಡಿ ಸರಿಪಡಿಸು"); e.setAttribute ("onclick", "oc"); b = document.getElementById ('wpDiff'); b.parentNode.insertBefore (e, b.nextSibling); } function oc {   tb = document.getElementById ("wpTextbox1"); tb.value = tb.value.replace (/\[\[ *([^|\]]*?) *\| *\1 *\]\]/g, "$1"); tb.value = tb.value.replace (/\[\[ *([^|\]]*?)\u0ccd *\]\]([\u0c80-\u0cff]+)/g, "$1\u0ccd\u200c$2"); tb.value = tb.value.replace (/\[\[ *([^|\]]*?) *\]\]([\u0c80-\u0cff]+)/g, "$1$2"); s = document.getElementById ("wpSummary"); if(null == s.value.match("LinkEdit")) {       s.value += "LinkEdit ಉಪಯೋಗಿಸಿ ಕೊಂಡಿಗಳನ್ನು ಸರಿಪಡಿಸಲಾಗಿದೆ"; } } linkEdit; void (0);