User:Lightmouse/monobook.js/script.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 726:
txt.value=txt.value.replace(/([^q])\[\[(\d{1,4})\]\]([^\|])/gi, '$1$2$3');
txt.value=txt.value.replace(/([^q])\[\[(\d{1,4})\]\](\s[^\|])/gi, '$1$2$3');
txt.value=txt.value.replace(/([^q])\[\[(\d{1,4})\]\]([^}])/gi, '$1$2$3');
txt.value=txt.value.replace(/([^q])\[\[(\d{1,4})\]\](\s[^}])/gi, '$1$2$3');
//year: #1. Undo temporary change to protect accessyear etc
txt.value=txt.value.replace(/(=\s?)qq(\[\[)/gi, '$1$2');