User:Tony1/monobook.js/script.js

function edit_summary{ // Add a tag to the summary box var txt=document.editform.wpSummary; var summary = "removed redundant and low-value links"; if (txt.value.indexOf(summary) == -1) { if (txt.value.match(/[^\*\/\s][^\/\s]?\s*$/)) { txt.value += " | "; }		txt.value += summary; }  document.editform.wpDiff.click; }

function EverydayTerms{ var txt=document.editform.wpTextbox1;

// US States piped txt.value=txt.value.replace(/\[\[(Los Angeles, California)\]\]/gi, 'Los Angeles');

txt.value=txt.value.replace(/\[\[([^\]]{1,20})\,\s(AL|AK|AZ|AR|CA|CO|CT|DE|FL|GA|HI|ID|IL|IN|IA|KS|KY|LA|ME|MD|MA|MI|MN|MS|MO|MT|NE|NV|NH|NJ|NM|NY|NC|ND|OH|OK|OR|PA|RI|SC|SD|TN|TX|UT|VT|VA|WA|WV|WI|WY|Alabama|Alaska|Arizona|Arkansas|California|Colorado|Connecticut|Delaware|Florida|Georgia|Hawaii|Idaho|Illinois|Indiana|Iowa|Kansas|Kentucky|Louisiana|Maine|Maryland|Massachusetts|Michigan|Minnesota|Mississippi|Missouri|Montana|Nebraska|Nevada|New Hampshire|New Jersey|New Mexico|New York|North Carolina|North Dakota|Ohio|Oklahoma|Oregon|Pennsylvania|Rhode Island|South Carolina|South Dakota|Tennessee|Texas|Utah|Vermont|Virginia|Washington|West Virginia|Wisconsin|Wyoming)\|([^\]]{1,20})\]\]\,?\s\[\[(Alabama|Alaska|Arizona|Arkansas|California|Colorado|Connecticut|Delaware|Florida|Georgia|Hawaii|Idaho|Illinois|Indiana|Iowa|Kansas|Kentucky|Louisiana|Maine|Maryland|Massachusetts|Michigan|Minnesota|Mississippi|Missouri|Montana|Nebraska|Nevada|New Hampshire|New Jersey|New Mexico|New York|North Carolina|North Dakota|Ohio|Oklahoma|Oregon|Pennsylvania|Rhode Island|South Carolina|South Dakota|Tennessee|Texas|Utah|Vermont|Virginia|Washington|West Virginia|Wisconsin|Wyoming)\]\]/gi, '$1, $2');

// Country and language; city txt.value=txt.value.replace(/\[\[(African?|Alaskan?|American?|Antarctican?|Arctic\sOcean|Arab|Arabic|Argentina|Argentinian||Asian?|Atlantic\sOcean|Australian?|Austrian?|Beijing|Belgian|Belgium|Berlin|Bra[sz]il|Bra[sz]ilian|British|British\sIsles|Californian?|Canada|Canadian|Central\sAmerican?|Chicago|China|Chinese|Detroit|Dutch|Korean?|Paris|People's\sRepublic\sof\sChina|Philippines|Czech\sRepublic|Czech|Danish|Denmark|England|English|Europe|European|France|French|Finland|Finnish|Florida|Germany?|Great\sBritain|Greece|Greek|Hawaii|Hawaiian|Hungary|Hungarian|Hong\sKong|Indian?|Indian\sOcean|Ireland|Irish|Italy|Italian|Japan|Japanese|Jewish|London|Los\sAngeles|Melbourne|Mexican|Mexico|Mexico\sCity|Middle\sEast|Miami|Middle\sEastern|Moscow|the\sNetherlands|Netherlands|New\sDelhi|New\sYork|New\sYork\sCity|New\sZealand|New\sZealander|North\sAmerican?|Norway|Norwegian|Pacific|Pacific\sOcean|Poland|Polish|Portugal|Portuguese|Queensland|Rome|Russian?|San\sFrancisco|San\sFrancisco\,?\sCalifornia|Scandinavian?|Scotland|Scottish|Shanghai|South\sAfrican?|Arctic\sOcean|South\sAmerican?|South\sKorean?|Spain|Spanish|Sweden|Swedish|Switzerland|Swiss|Sydney|Texan|Texas|Tokyo|United\sKingdom|U\.K\.|UK|United\sStates|United\sStates\sof\sAmerica|US|U\.S\.|USA|U\.S\.A\.|Washington\,?\sD\.C\.|Wales|Welsh|Western\sAustralian?|West\sGermany?)\]\]/gi, '$1');

txt.value=txt.value.replace(/\[\[(?:African?|Alaskan?|American?|Antarctican?|Arctic\sOcean|Arab|Arabic|Argentina|Argentinian||Asian?|Atlantic\sOcean|Australian?|Austrian?|Beijing|Belgian|Belgium|Berlin|Bra[sz]il|Bra[sz]ilian|British|British\sIsles|Californian?|Canada|Canadian|Central\sAmerican?|Chicago|China|Chinese|Detroit|Dutch|Korean?|Paris|People's\sRepublic\sof\sChina|Philippines|Czech\sRepublic|Czech|Danish|Denmark|England|English|Europe|European|France|French|Finland|Finnish|Florida|Germany?|Great\sBritain|Greece|Greek|Hawaii|Hawaiian|Hungary|Hungarian|Hong\sKong|Indian?|Indian\sOcean|Ireland|Irish|Italy|Italian|Japan|Japanese|Jewish|London|Los\sAngeles|Melbourne|Mexican|Mexico|Mexico\sCity|Middle\sEast|Miami|Middle\sEastern|Moscow|the\sNetherlands|Netherlands|New\sDelhi|New\sYork|New\sYork\sCity|New\sZealand|New\sZealander|North\sAmerican?|Norway|Norwegian|Pacific|Pacific\sOcean|Poland|Polish|Portugal|Portuguese|Queensland|Rome|Russian?|San\sFrancisco|San\sFrancisco\,?\sCalifornia|Scandinavian?|Scotland|Scottish|Shanghai|South\sAfrican?|Arctic\sOcean|South\sAmerican?|South\sKorean?|Spain|Spanish|Sweden|Swedish|Switzerland|Swiss|Sydney|Texan|Texas|Tokyo|United\sKingdom|U\.K\.|UK|United\sStates|United\sStates\sof\sAmerica|US|U\.S\.|USA|U\.S\.A\.|Wales|Welsh|Western\sAustralian?|West\sGermany?)\|(African?|Alaskan?|American?|Antarctican?|Arctic\sOcean|Arab|Arabic|Argentina|Argentinian||Asian?|Atlantic\sOcean|Australian?|Austrian?|Beijing|Belgian|Belgium|Berlin|Bra[sz]il|Bra[sz]ilian|British|British\sIsles|Californian?|Canada|Canadian|Central\sAmerican?|Chicago|China|Chinese|Detroit|Dutch|Korean?|Paris|People's\sRepublic\sof\sChina|Philippines|Czech\sRepublic|Czech|Danish|Denmark|England|English|Europe|European|France|French|Finland|Finnish|Florida|Germany?|Great\sBritain|Greece|Greek|Hawaii|Hawaiian|Hungary|Hungarian|Hong\sKong|Indian?|Indian\sOcean|Ireland|Irish|Italy|Italian|Japan|Japanese|Jewish|London|Los\sAngeles|Melbourne|Mexican|Mexico|Mexico\sCity|Middle\sEast|Miami|Middle\sEastern|Moscow|the\sNetherlands|Netherlands|New\sDelhi|New\sYork|New\sYork\sCity|New\sZealand|New\sZealander|North\sAmerican?|Norway|Norwegian|Pacific|Pacific\sOcean|Poland|Polish|Portugal|Portuguese|Queensland|Rome|Russian?|San\sFrancisco|San\sFrancisco\,?\sCalifornia|Scandinavian?|Scotland|Scottish|Shanghai|South\sAfrican?|Arctic\sOcean|South\sAmerican?|South\sKorean?|Spain|Spanish|Sweden|Swedish|Switzerland|Swiss|Sydney|Texan|Texas|Tokyo|United\sKingdom|U\.K\.|UK|United\sStates|United\sStates\sof\sAmerica|US|U\.S\.|USA|U\.S\.A\.|Washington\,?\sD\.C\.|Wales|Welsh|Western\sAustralian?|West\sGermany?)\]\]/gi, '$1');

txt.value=txt.value.replace(/\[\[(?:African?|Alaskan?|American?|Antarctican?|Arctic\sOcean|Arab|Arabic|Argentina|Argentinian||Asian?|Atlantic\sOcean|Australian?|Austrian?|Beijing|Belgian|Belgium|Berlin|Bra[sz]il|Bra[sz]ilian|British|British\sIsles|Californian?|Canada|Canadian|Central\sAmerican?|Chicago|China|Chinese|Detroit|Dutch|Korean?|Paris|People's\sRepublic\sof\sChina|Philippines|Czech\sRepublic|Czech|Danish|Denmark|England|English|Europe|European|France|French|Finland|Finnish|Florida|Germany?|Great\sBritain|Greece|Greek|Hawaii|Hawaiian|Hungary|Hungarian|Hong\sKong|Indian?|Indian\sOcean|Ireland|Irish|Italy|Italian|Japan|Japanese|Jewish|London|Los\sAngeles|Melbourne|Mexican|Mexico|Mexico\sCity|Middle\sEast|Miami|Middle\sEastern|Moscow|the\sNetherlands|Netherlands|New\sDelhi|New\sYork|New\sYork\sCity|New\sZealand|New\sZealander|North\sAmerican?|Norway|Norwegian|Pacific|Pacific\sOcean|Poland|Polish|Portugal|Portuguese|Queensland|Rome|Russian?|San\sFrancisco|San\sFrancisco\,?\sCalifornia|Scandinavian?|Scotland|Scottish|Shanghai|South\sAfrican?|Arctic\sOcean|South\sAmerican?|South\sKorean?|Spain|Spanish|Sweden|Swedish|Switzerland|Swiss|Sydney|Texan|Texas|Tokyo|United\sKingdom|U\.K\.|UK|United\sStates|United\sStates\sof\sAmerica|US|U\.S\.|USA|U\.S\.A\.|Wales|Welsh|Western\sAustralian?|West\sGermany?)\s\(?(?:language|people)\)?\|(African?|Alaskan?|American?|Antarctican?|Arctic\sOcean|Arab|Arabic|Argentina|Argentinian||Asian?|Atlantic\sOcean|Australian?|Austrian?|Beijing|Belgian|Belgium|Berlin|Bra[sz]il|Bra[sz]ilian|British|British\sIsles|Californian?|Canada|Canadian|Central\sAmerican?|Chicago|China|Chinese|Detroit|Dutch|Korean?|Paris|People's\sRepublic\sof\sChina|Philippines|Czech\sRepublic|Czech|Danish|Denmark|England|English|Europe|European|France|French|Finland|Finnish|Florida|Germany?|Great\sBritain|Greece|Greek|Hawaii|Hawaiian|Hungary|Hungarian|Hong\sKong|Indian?|Indian\sOcean|Ireland|Irish|Italy|Italian|Japan|Japanese|Jewish|London|Los\sAngeles|Melbourne|Mexican|Mexico|Mexico\sCity|Middle\sEast|Miami|Middle\sEastern|Moscow|the\sNetherlands|Netherlands|New\sDelhi|New\sYork|New\sYork\sCity|New\sZealand|New\sZealander|North\sAmerican?|Norway|Norwegian|Pacific|Pacific\sOcean|Poland|Polish|Portugal|Portuguese|Queensland|Rome|Russian?|San\sFrancisco|San\sFrancisco\,?\sCalifornia|Scandinavian?|Scotland|Scottish|Shanghai|South\sAfrican?|Arctic\sOcean|South\sAmerican?|South\sKorean?|Spain|Spanish|Sweden|Swedish|Switzerland|Swiss|Sydney|Texan|Texas|Tokyo|United\sKingdom|U\.K\.|UK|United\sStates|United\sStates\sof\sAmerica|US|U\.S\.|USA|U\.S\.A\.|Washington\,?\sD\.C\.|Wales|Welsh|Western\sAustralian?|West\sGermany?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(?:Los\sAngeles\,\sCalifornia|Los\sAngeles)\|([^\]]{1,30})\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[Netherlands\|(Dutch)\]\]/gi, '$1');

// proper nouns txt.value=txt.value.replace(/\[\[Christmas\|([^\]]{1,30})\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(Christmas|Christmas day)\]\]/gi, '$1');

txt.value=txt.value.replace(/\[\[(ABC|BBC|BBC News|BBC One|BBC Two|BBC Radio One|BBC Radio Two|BBC Radio Three|BBC Radio Four|Business\s?Week|CNN|Fox News|Fox News Channel|Guardian Unlimited|iTunes|ITMS|The Los Angeles Times|Los Angeles Times|L.?A.?\sTimes|MSN|MTV|The New York Times|New York Times|Newsweek|Rolling Stone|Times Online|You\s?Tube)\]\]/g, '$1'); txt.value=txt.value.replace(/\[\[Time\s\(magazine\)\|(Time|Time Magazine)\]\]/g, '$1'); txt.value=txt.value.replace(/\[\[Billboard\s\(magazine\)\|(Billboard|Billboard Magazine)\]\]/g, '$1'); txt.value=txt.value.replace(/\[\[(Time|Time Magazine|Billboard|Billboard Magazine)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(Google|Yahoo!?|MSN)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[Allmusic\|(AMG|All\s?Music\s?Guide)\]\]/g, '$1'); txt.value=txt.value.replace(/\[\[(AMG|All\s?Music\s?Guide|Allmusic)\]\]/gi, '$1');

// professions general txt.value=txt.value.replace(/\[\[(activist|art|artist|athlete|athletics|attorneys?|authors?|basketball|businessm[ae]n|cinema|clergy|clergym[ae]n|comedians?|composers?|conducting|conductors?|criminals?|critics?|dance[rs]?|dancing|dentists?|designers?|dj|dis[ck] jockey|doctor|drummer|entrepreneur|essayists?|football|footballers?|football\splayers?|groups?|guest star|gymnast|gymnastics|hackers?|journalis[mt]s?|judges?|laws?|lawyers?|librarians?|models?|music|music producer|multi-instrumentalists?|musicians?|novels?|novell?ists?|piano|pianists?|photographers?|playwrights?|police|politics|politicians?|porn stars?|president|priest|prime minister|professor|radio|radio stations?|record company|record producer|screen.?writers?|solicitors?|singer.songwriters?|songs?|songwriter|songwriting|synthesi[sz]ers?|televisions?|television personality|television presenters?|television producers?|TV personality|TV presenters?|TV producers?|theaters?|theatres?|trumpets?|trumpeters?|writers?)\]\]/gi, '$1');

// everyday nouns txt.value=txt.value.replace(/\[\[(advertising|air|air.force|alcohol|animal|army|assault|chairman|charity|colou?r|crime|dentist|doctor|drug|economy|fire|gas|gasoline|Internet|land|metal|mineral|money|navy|oil|paper|petrol|plant|plastic|sea|time|water)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[economics\|(economics?|economists?|economical)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(economics?|economists?|economical)\]\]/gi, '$1');

txt.value=txt.value.replace(/\[\[(non-?profit\sorgani[sz]ations?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[charitable\sorgani[sz]ation\|(charitable\sorgani[sz]ations?|charity|charities)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(charitable\sorgani[sz]ations?|charity|charities)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[non-governmental\sorgani[sz]ation\|(non-?governmental\sorgani[sz]ations?|NGOs?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(non-?governmental\sorgani[sz]ations?|NGOs?)\]\]/gi, '$1');

// geo-politics txt.value=txt.value.replace(/\[\[United States dollars?\|([^\]]{1,30})\]\]/gi, 'US$'); txt.value=txt.value.replace(/\[\[(US dollar|United States dollar|U\.S\.\sdollar|USD|US\$|\$)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[United Nations\|(UN|U\.N\.|UNO|U\.N\.O\.)\]\]/g, '$1'); txt.value=txt.value.replace(/\[\[(United Nations|UN|U\.N\.|UNO|U\.N\.O\.)\]\]/g, '$1'); txt.value=txt.value.replace(/\[\[(?:World War I|World War II)\|(World War One|World War Two|First World War|Second World War|WWI|WWII|The Great War)\]\]/g, '$1'); txt.value=txt.value.replace(/\[\[(World War I|World War II|World War One|World War Two|First World War|Second World War|WWI|WWII)\]\]/g, '$1');

txt.value=txt.value.replace(/\[\[Olympic Games\|([^\]]{1,20})\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(olympics|olympic games|summer olympics|summer olympic games|winter olympics|winter olympic games)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[European\sUnion\|(EU|E\.U\.)\]\]/g, '$1'); txt.value=txt.value.replace(/\[\[(European\sUnion|EU|E\.U\.)\]\]/g, '$1'); txt.value=txt.value.replace(/\[\[(President of the United States|United States President|U\.?S\.?\sPresident|President of the United States of America|United States President|POTUS)\]\]/gi, '$1'); // geo-politics piped txt.value=txt.value.replace(/\[\[United States dollar\|([^\]]{1,20})\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[President of the United States\|([^\]]{1,30})\]\]/gi, '$1');

//sociology, race & education txt.value=txt.value.replace(/\[\[(African.American)\]\]/g, '$1'); txt.value=txt.value.replace(/\[\[(celebrity|billionaire|class|poor|poverty|rich|millionaire|socialite)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(middle|social|upper|working)(.class)\]\]/gi, '$1$2'); txt.value=txt.value.replace(/\[\[(?:social class)\|(middle|social|upper|working)(.class|)\]\]/gi, '$1$2'); txt.value=txt.value.replace(/\[\[((high|primary|secondary)\sschool|certificate|under.?graduate|B.?A.?|B.?Sc.?|Ph.?D.?|Bachelor of Arts|Bachelor of Sciences?|Doctor of Philosophy|diplomas?|doctorates?|university|post.?graduate|honorary degree|Oxford University|Cambridge University)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(?:(university|master\'?s|graduate|bachelor\'?s|post.?graduate|postgrad)\sdegree)\|degree\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(?:Bachelor of Arts|Bachelor of Sciences?| Bachelor's degree|Doctor of Philosophy|Master's degree|Master of Arts|Master of Sciences?)\|([^\]]{1,30})\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(?:honoris causa)\|(honorary( degree)?)\]\]/gi, '$1');

txt.value=txt.value.replace(/\[\[(University of (Oxford|Cambridge)|Oxford University|Cambridge University)\]\]/g, '$1'); txt.value=txt.value.replace(/\[\[(?:University of (Oxford|Cambridge))\|(Oxford|Oxford University|Cambridge|Cambridge University)\]\]/g, '$1'); txt.value=txt.value.replace(/\[\[(Harvard|Yale)\]\]/g, '$1'); txt.value=txt.value.replace(/\[\[(?:Harvard|Harvard University|Yale|Yale University)\|((Harvard |Yale)|University of (Harvard |Yale))\]\]/g, '$1');

// lifestyle & religion txt.value=txt.value.replace(/\[\[(alcoholism|gays?|homosexual|multicultural|multi-cultural|religion|religious|vegetarians?|vegetarianism)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[vegetarianism\|(vegetarians?)\]\]/gi, '$1');

txt.value=txt.value.replace(/\[\[christianity\|(christians?|christianity|christian\sethic|christian\sfaith)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(christianity|christians?|christian\sethic|christian\sfaith)\]\]/gi, '$1');

txt.value=txt.value.replace(/\[\[(?:roman\scatholic|roman\scatholic\schurch|roman catholicism|catholic)\|(roman\scatholic|roman\scatholic\schurch|catholicism)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(roman\scatholics?|roman\scatholic\schurch|catholicism|catholic church|catholic)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(?:jews|judaism)\|(jews?|jewish|judaism)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(jews?|jewish|judaism)\]\]/gi, '$1');

txt.value=txt.value.replace(/\[\[marriage\|([^\]]{1,15})\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(marriage|marry|marries|married|married\scouples?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[divorce\|(divorce[des])\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(divorce|divorces|divorced)\]\]/gi, '$1');

// common illnesses and causes of death txt.value=txt.value.replace(/\[\[traffic\scollision\|(automobile\saccident|car\saccident|car\scrash|road\straffic\saccident|traffic\saccident)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(traffic\scollision|automobile\saccident|car\saccident|car\scrash|road\straffic\saccident|traffic\saccident)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(bleeding|brain damage|cancer|clinical\sdepression|coma|depression|fractures?|gunshot wounds?|murder|cardiac arrest|heart attack|shock|stroke|suicide)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(?:clinical\sdepression|depression\s\(mood\))\|(depression|depressed)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(clinical\sdepression|depression\s\(mood\)|depression|depressed)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[myocardial infarction\|(heart attack|cardiac arrest)\]\]/gi, '$1');

//music & media txt.value=txt.value.replace(/\[\[pornographic actor\|(porn actors?|porn actress|porn actresses|porn stars?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[play \(theatre\)\|(plays?|theatrical|thesbian)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[actor\|(actors?|actress|actresses|stage actors?|thesbian)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(actors?|actress|actresses|thesbians?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[model\s\(person\)\|(model|modell?ing)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[dis[ck]\sjockey\|([^\]]{1,15})\]\]/gi, '$1');

txt.value=txt.value.replace(/\[\[(animation|animated|chat|chat.show|comedy|drama|episode|pen name|game show|game.show|live.action|play|plot|prime.?time|science.fiction|sci-fi|soap|soap opera|sit.?com|situation comedy|stage|stage name|talk.show|variety show)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(documentarians?|document[aeo]ry|document[aeo]ries|documentary (film)|documentary films?|documentary movie|documentary series|documentary television films?|documentary television series|documentary television show|documentary tv series|document[aeo]?ry|film documentaries|film documentary|making-of documentary|online documentary|political documentaries|political documentary|video documentary)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(?:documentary film|documentary \(film\)|documentary)\|([^\]]{1,30})\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(television series|tv series|television films?|tv films?|television show|tv show|television\sprogram|tv program)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(drama series|drama films?|tv drama|television drama)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(?:drama|dramatic programming)\|(drama series|drama films?|tv drama|television drama)\]\]/gi, '$1');

// rem piped music & media txt.value=txt.value.replace(/\[\[animat(ion|ed)\|([^\]]{1,20})\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(?:documentary|documentary film)\|([^\]]{1,30})\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[situation comedy\|([^\]]{1,20})\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(?:television\sprogram|tv program)\|([^\]]{1,30})\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(?:talk show|talk-show)\|([^\]]{1,30})\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(television series|television film?|television show?|tv series|television\sprogram|tv program|television\ssitcom|tv sitcom)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(?:television series|television film?|television show?|tv series|television\sprogram|tv program|television\ssitcom|tv sitcom)\|([^\]]{1,30})\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(?:reality\stelevision|reality\sshow|reality\stv)\|([^\]]{1,30})\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(?:rock\smusic|rock\s\(music\))\|([^\]]{1,30})\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[pop\smusic\|([^\]]{1,30})\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(?:singing|singer)\|([^\]]{1,30})\]\]/gi, '$1');

txt.value=txt.value.replace(/\[\[(computers?|personal\scomputers?|PCs?|laptops?|laptop\scomputers?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(cassettes?|DVD|LP|VHS|video|music videos?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[compact\sdis[ck]\|(CDs?|C\.D\.s?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(compact\sdis[ck]s?|CDs?|C\.D\.s?|Compact Disc single|C\. D\. single|CD single)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(albums?|album track|albums? \(music\)|record albums?)\|([^\]]{1,30})\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(album track|albums?|debut album|double albums?|music albums?|opening track|record albums?|self.titled debut album|sophomore album)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(music\sstudio|recording studio)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(?:music\sstudio|recording studio)\|([^\]]{1,30})\]\]/gi, '$1');

txt.value=txt.value.replace(/\[\[poetry\|(poems?|poets?|poetic)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(poetry|poems?|poets?|poetic)\]\]/gi, '$1');

txt.value=txt.value.replace(/\[\[(singing|singers?|vocals?|vocalists?|Pop\ssingers?|Female\svocals|Songstress|Clean\svocals|Singer\s\(music\)|Pop\ssingers)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(?:singer|lead\svocalist)\|(lead\svocals|lead\ssinger)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(lead\svocalist|lead\svocals|lead\ssinger|front man|frontman)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(?:backing\svocals|backing\svocalists?)\|(backing\svocals|backing\ssinger|vocals)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(backing\svocalists?|backing\svocals|backing\ssinger)\]\]/gi, '$1');

txt.value=txt.value.replace(/\[\[(rock\smusic|rock|rock\smusician|rock\sgroup|rock\sstandard|rawk|rock\ssong|rock\santhem||rockmusic)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(pop\smusic|pop|pop\smusicians?|pop\sgroups?|pop\ssongs?|pop\smusic|pop\s\(music\)|popmusic|pop\ssensibility|pop\smusic\s\(genre\)|new\spop)\]\]/gi, '$1');

txt.value=txt.value.replace(/\[\[musical\sensemble\|([^\]]{1,30})\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(musical\sensemble|group|band|rock\sbands?|Instrumental\sensemble|Rock\sgroups?|list\sof\smusical\sensembles|musical\sgroup|music\sband|music\sgroup|musical\sband|bar\sband|group\s\(music\)|musical\sensembles?|music\sensemble|band\s\(music\)|pop\sband)\]\]/gi, '$1');

txt.value=txt.value.replace(/\[\[guitar\|(guitarist?|guitars?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(guitars?|guitarists?|guitar music|blues guitar|lead\sguitars?|rhythm\sguitars?|rock guitar)\]\]/gi, '$1');

txt.value=txt.value.replace(/\[\[lead\sguitar\|(guitarists?|guitars?|lead\sguitarist?|lead\sguitars?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[rhythm\sguitar\|(guitarists?|guitars?| rhythm\sguitarist?| rhythm\sguitars?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[bass\sguitar\|([^\]]{1,30})\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(bass|bassist|bass guitarists?|electric\sbass|metal\sbass|bass\s\(guitar\)|electric\sbass\sguitar|Alternate\sbass|bass\sguitars?|electric\sbass\sguitar|fretless\sbass\sguitar|base\sguitar|bass\sguitar\s\(instrument\))\]\]/gi, '$1');

txt.value=txt.value.replace(/\[\[keyboard\sinstrument\|(keyboards?|keyboardists?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(keyboard\sinstruments?|keyboards?|keyboardists?)\]\]/gi, '$1');

txt.value=txt.value.replace(/\[\[drum kit\|(drums?|drumkits?|drumming|drummers?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(drum kit|drums?|drumkits?|drumming|drummers?)\]\]/gi, '$1');

txt.value=txt.value.replace(/\[\[percussion\sinstrument\|(percussions?|percussionists?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(percussion\sinstrument|percussions?|percussionists?)\]\]/gi, '$1');

txt.value=txt.value.replace(/\[\[wind\sinstrument\|(wind\sinstruments?|wind)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(wind\sinstruments?|wind)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[woodwind\sinstrument\|(woodwind\sinstruments?|woodwind)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(woodwind\sinstruments?|woodwind)\]\]/gi, '$1');

txt.value=txt.value.replace(/\[\[violin\|(violinist?|violins?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(violins?|violinists?|violin music)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[cello\|(celloist?|cellos?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(cellos?|cellists?|cello music)\]\]/gi, '$1');

txt.value=txt.value.replace(/\[\[fashion\sdesign\|(fashion\sdesigner|designers?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(fashion\sdesign|fashion\sdesigners?|designers?)\]\]/gi, '$1');

txt.value=txt.value.replace(/\[\[film\|(films?|filming|movies?|big\sscreen|motion pictures?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(film|films?|filming|movies?|big\sscreen|motion pictures?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[film\sdirector\|(film\sdirector|director)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(film\sdirector|film\sdirector|director)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[film\sproducer\|(film\sproducer|producer)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(film\sproducer|film\sproducer|producer)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[television\sproducer\|(television\sproducer|producer)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(television\sproducer|television\sproducer|producer)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[music\sarranger\|(music\sarranger|arranger)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(music\sarranger|music\sarranger|arranger)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[record\sproducer\|(record\sproducer|produce[drs]?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(record\sproducer|record\sproducer|producer)\]\]/gi, '$1');

// literary txt.value=txt.value.replace(/\[\[(essay|essayist|short story|non.fiction|humou?rist|novella|fiction|screenplay|novels?|historical novels?|novelist|short story|comedy|comics?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[essay\|(essays?|essayists?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[comedy\|(comedy|comedies|comics?|comedians?|comediennes?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(?:novel|novella)\|(novels?|novellas?|novell?ists?)\]\]/gi, '$1');

// sport txt.value=txt.value.replace(/\[\[tennis\|(tennis|tennis\scourts?|tennis players?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(tennis|tennis\scourts?|tennis players?|grass courts?|clay courts?|hard courts?|grand\sslam)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[The Championships, Wimbledon\|(Wimbledon|Wimbledon championships?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(The Championships, Wimbledon|Wimbledon|Wimbledon championships?)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[US Open\s\(tennis\)\|(U\.?S\.?\sOpen)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[Grand Slam\s\(tennis\)\|(Grand Slam)\]\]/gi, '$1'); txt.value=txt.value.replace(/\[\[(U\.?S\.?\sOpen|French Open|Australian Open)\]\]/gi, '$1');

edit_summary; }

$(function { if(document.forms.editform) {  mw.util.addPortletLink('p-tb', 'javascript:EverydayTerms', 'Delink everyday terms', 't-dmy', 'Regexp common terms', , );  } });