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

Content deleted Content added
No edit summary
No edit summary
Line 701:
dates();
 
//year: temporary change to protect accessyear etc. Undone below at #1
txt.value=txt.value.replace(/(accessyear\s?=\s?)(\[\[(\d{1,4})\]\])/gi, '$1xx1qq$2xx2');
txt.value=txt.value.replace(/(=\s?)(\[\[\d\d?\s(?:January|February|March|April|May|June|July|August|September|October|November|December)\]\])/gi,'$1qq$2');
txt.value=txt.value.replace(/(=\s?)(\[\[\d\d?\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\]\])/g,'$1qq$2');
txt.value=txt.value.replace(/(=\s?)(\[\[(?:January|February|March|April|May|June|July|August|September|October|November|December)\s\d\d?\]\])/gi,'$1qq$2');
txt.value=txt.value.replace(/(=\s?)(\[\[(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s\d\d?\]\])/g,'$1qq$2');
txt.value=txt.value.replace(/(=\s?)(\[\[(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s\d\d?\]\])/g,'$1qq$2');
txt.value=txt.value.replace(/(=\s?)(\[\[(?:January|February|March|April|May|June|July|August|September|October|November|December)\s\d\d?\]\])/gi,'$1qq$2');
txt.value=txt.value.replace(/(=\s?)(\[\[\d\d?\s(?:January|February|March|April|May|June|July|August|September|October|November|December)\]\])/gi,'$1qq$2');
 
 
 
Line 717 ⟶ 725:
//year: now remove unprotected linked years
txt.value=txt.value.replace(/\[\[(\d{1,4})\]\]/gi, '$1');
//year: #1. Undo temporary change to protect accessyear and date preference datesetc
txt.value=txt.value.replace(/xx(=\d{1,4}s?)qq(\[\[)xx/gi, '\[\[$1\]\]$2');
 
}