User:Wimmel/monobook.js

From OpenStreetMap Wiki
Jump to: navigation, search
/* <pre><nowiki> */

// http://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_scripts/Scripts/Sigdash
(function () {
    var oldAddButton = window.addButton;
    if (typeof(oldAddButton) != 'function') return;
    addButton = function () {
        if (arguments.length > 2)
            arguments[2] = arguments[2].replace(/^--(~+)$/, '∼ $1');
        oldAddButton.apply(this, arguments);
    };
})();

// </nowiki></pre> //