ಸದಸ್ಯ:ChiK/zeroEdit.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/**
* ZeroEdit v1.0
*/
function zeroEdit()
{
e = document.createElement ("input");
e.setAttribute ("class", "oo-ui-inputWidget-input oo-ui-buttonElement-button");
e.setAttribute ("title", "ಸೊನ್ನೆಯಿಂದ ಅನುಸ್ವಾರಕ್ಕೆ ಬದಲಾವಣೆ ಮಾಡು");
e.setAttribute ("type", "button");
e.setAttribute ("value", "ಅನುಸ್ವಾರ ಸರಿಪಡಿಸು");
e.setAttribute ("onclick", "ocZeroEdit()");
b = document.getElementById ('wpDiff');
if(b)b.parentNode.insertBefore (e, b.nextSibling);
}
function ocZeroEdit()
{
tb = document.getElementById ("wpTextbox1");
tb.value = tb.value.replace (/([ಂ-ೣ])೦/g, "$1ಂ");
s = document.getElementById ("wpSummary");
if(null == s.value.match("ZeroEdit"))
{
s.value += "ಅನುಸ್ವಾರಗಳನ್ನು ಸರಿಪಡಿಸಲಾಗಿದೆ";
}
}
zeroEdit();
void (0);