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.
/**
 * SpaceEdit v1.0
 */

function spaceEdit()
{
    e = document.createElement ("input");
    e.setAttribute ("type", "button");
    e.setAttribute ("class", "oo-ui-inputWidget-input oo-ui-buttonElement-button");
    e.setAttribute ("value", "ಬಿಳಿ ಜಾಗ ತೆಗೆ");
    e.setAttribute ("onclick", "ocSpaceEdit()");
    b = document.getElementById ('wpDiff');
    if(b)b.parentNode.insertBefore (e, b.nextSibling);
}

function ocSpaceEdit()
{
    tb = document.getElementById ("wpTextbox1");
    tb.value = tb.value.replace (/^\s*/g, "");
    tb.value = tb.value.replace (/(\n+)\s*/g, "$1");
    s = document.getElementById ("wpSummary");
    if(null == s.value.match("SpaceEdit"))
    {
        s.value += "ಲೇಖನವನ್ನು ಒಪ್ಪವಾಗಿಸಿದೆ";
    }
}

spaceEdit();
void (0);