Difference between revisions of "User:Nathan/Scripts/sigdash.js"

MyWikiBiz, Author Your Legacy — Monday November 25, 2024
Jump to navigationJump to search
 
 
Line 1: Line 1:
// This script changes the "Your signature with timestamp" edit button to use a real em dash instead of two hyphens.  <pre><nowiki>
+
{{delete}}
 
 
(function () {
 
    var oldAddButton = addButton;
 
    if (typeof(oldAddButton) != 'function') return;
 
    addButton = function () {
 
        if (arguments.length > 2)
 
            arguments[2] = arguments[2].replace(/^--(~+)$/, '—$1');
 
        oldAddButton.apply(this, arguments);
 
    };
 
})();
 
 
 
// </nowiki></pre>
 

Latest revision as of 08:19, 20 April 2007

{{delete}}