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

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