User:Ohconfucius/test/Sources.js: Difference between revisions

Content deleted Content added
rewinding publishers to an earlier version per discussions with HJMitchell
+Radio Times
Line 73:
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?\[?\[?[^\[\|]{0,10}ew.com\]?\]?)(?=[\s]*[\|\}])/gi, '|work=Entertainment Weekly ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?\[?\[?[^\[\|]{0,10}forbes\.com\]?\]?)(?=[\s]*[\|\}])/gi, '|work=Forbes');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?\[?\[?radiotimes\.com\]?\]?)(?=[\s]*[\|\}])/gi, '|work=Radio Times ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?\[?\[?ft.com\]?\]?)(?=[\s]*[\|\}])/gi, '|work=Financial Times ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?\[?\[?Guardian(\.co\.uk|\sUnlimited)\]?\]?)(?=[\s]*[\|\}])/gi, '|work=The Guardian |___location=UK');
Line 79 ⟶ 80:
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?\[?\[?[^\[]{0,7}independent\.co\.uk\]?\]?)(?=[\s]*[\|\}])/gi, '|work=The Independent |___location=UK');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?\[?\[?independent\.ie\]?\]?)(?=[\s]*[\|\}])/gi, '|work=The Irish Independent ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?\[?\[?irishtimes\.com\]?\]?)(?=[\s]*[\|\}])/gi, '|work=The Irish TImesTimes ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?\[?\[?latimes\.com\]?\]?)(?=[\s]*[\|\}])/gi, '|work=Los Angeles Times ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?\[?\[?lefigaro\.fr\]?\]?)(?=[\s]*[\|\}])/gi, '|work=Le Figaro |___location=France');
Line 235 ⟶ 236:
txt.value=txt.value.replace(/(?:\|\s?(newspaper|work|publisher)\s?\=\s?\[?\[?Hachette Filipacchi Médias\|(Hachette Filipacchi) \(UK\) Ltd\]?\]?)(?=[\s]*[\|\}])/gi, '');
txt.value=txt.value.replace(/(?:\|\s?(newspaper|work|publisher)\s?\=\s?\[?\[?(John Fairfax (and Sons Ltd\.?|Holdings)|Fairfax(?: Media( Limited)| Digital| newspapers))\]?\]?)(?=[\s]*[\|\}])/gi, '');
txt.value=txt.value.replace(/(?:\|\s?publisher\s?\=\s?(\[\[|)(Associated Newspapers|Condé Nast Publications|Fairfax Media|Gannett Company|(Guardian|Telegraph) Media Group|Guardian News and Media|Imdb Inc\.?|IPC Media|MTV Networks|(The |)New York Times Company|News (?:Corporation|International)|Prometheus Global Media|Tribune Company|Trinity Mirror|MTVTimes NetworksNewspapers (?:Limited|Ltd.?)|Nielsen (?: Media Research|Business Media(, Inc\.?|))|Rovi Corporation|Time (?:Warner ?|)Inc\.?)(\]\]|))(?=[\s]*[\|\}])/gi, '');
// removing redundancies
txt.value=txt.value.replace(/\|\s?___location\s?\=\s?(?:London|UK)\s?(\|[^}]*|)\|\s?___location\s?\=\s?(?:London|UK)/g, '|___location=UK $1');