Open main menu
Home
Random
Log in
Settings
About MyWikiBiz
Disclaimers
MyWikiBiz
Search
Changes
← Older edit
Newer edit →
User:Nathan/monobook.js
(view source)
Revision as of 08:19, 20 April 2007
399 bytes added
,
08:19, 20 April 2007
no edit summary
Line 1:
Line 1:
−
importScript
('
User:Nathan
/
Scripts
/
sigdash
.
js'
);
+
// 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>
+
importScript('User:Nathan/Scripts/Time');
importScript('User:Nathan/Scripts/Time');
importScript('User:Nathan/Scripts/usertabs.js');
importScript('User:Nathan/Scripts/usertabs.js');
Nathan
111
edits