MyWikiBiz, Author Your Legacy — Tuesday December 03, 2024
Jump to navigationJump to search
445 bytes added
, 08:10, 20 April 2007
// This script changes the "Your signature with timestamp" edit button to use a real em dash instead of two hyphens. <pre><nowiki>
(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>