User:Ji11720/common.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// Instructions available at [[User:Headbomb/unreliable]]
// Feel free to request tweaks or additional sources to be covered on the talk page

// Adapted from https://en.wikipedia.org/w/index.php?title=Wikipedia:User_scripts/Requests&diff=939432100&oldid=939403363 by [[User:SD0001]]
// Updated from https://en.wikipedia.org/w/index.php?title=User:Jorm/unreliable.js&oldid=940556311 by [[User:Jorm]]
// Updated from https://en.wikipedia.org/w/index.php?title=User:SD0001/unreliabe.js&oldid=941114456 by [[User:SD0001]]
// Updated from https://en.wikipedia.org/w/index.php?title=User:SD0001/unreliable.js&action=edit by [[User:SD0001]]
// Updated from https://en.wikipedia.org/w/index.php?title=User:Creffett/unreliable.js&oldid=957395306 by [[User:Creffett]]

// Unreliable websites based on [[WP:RSPSOURCES]] and [[WP:NPPSG]] (mostly)
// Unreliable publishers/journals based on [[WP:CITEWATCH]] (mostly)

// \/ regex in links doesn't work as it should, use (%2F|\/) instead
$( function() {

	var rules = [
		{
			comment: 'Blacklisted source',
			regex: /\b(?:test\.blacklist\.org|beforeitsnews\.com|breitbart\.com|city-data\.com|dan-news\.info|examiner\.com|famousbirthdays\.com|globalresearch\.ca|banned\.video|infowars\.com|infowars\.net|infowars\.tv|lenta\.ru|liveleak\.com|lulu\.com|mylife\.com|naturalnews\.com|newstarget\.com|news-front\.info|newswar\.com|newswars\.com|reunion\.com|rusdialog\.ru|southfront\.org|thepointsguy\.com|topwar\.ru|ukraina\.ru|veteransnewsnow\.com|veteranstoday\.com|zoominfo\.com|verywellfamily\.com|verywellhealth\.com|verywellmind\.com|opindia\.com|swarajyamag\.com|bestgore\.com)/i,
			css:  { "background-color": "#dddddd", "text-decoration":"underline", "text-decoration-style": "wavy", "text-decoration-color": "#cc0000"}
		},

		{
			comment: 'Deprecated source',
			regex: /\b(?:test\.deprecated\.org|112\.international|112\.ua|112ua\.tv|almanach\.be|almanachdegotha\.org|angelfire\.com\/realm\/gotha|chivalricorders\.org|cracroftspeerage\.co\.uk|englishmonarchs\.co\.uk|jacobite\.ca|campaignlifecoalition\.com|crunchbase\.com|dailycaller\.com|dailymail\.co\.uk|dailymail\.com|hispantv\.com|hispantv\.ir|jihadwatch\.org|last\.fm|lifesitenews\.com|mintpressnews\.com|nationalenquirer\.com|newsoftheworld\.co\.uk|nndb\.com|oann\.com|occupydemocrats\.com|rateyourmusic\.com|rt\.com|takimag\.com|telesurenglish\.net|telesurtv\.net|theepochtimes\.com|thegatewaypundit\.com|thegrayzone\.com|thesun\.co\.uk|vdare\.com|wnd\.com|worldnetdaily\.com|royalark\.net|thepeerage\.com|worldstatesmen\.org|4dw.net(%2F|\/)royalark|newsbreak\.com|voltairenet\.org|sputniknews\.com|sptnkne\.ws|newsmax\.com|newsmaxtv\.com|globaltimes\.cn|huanqiu\.com|frontpagemag\.com|dailystar\.co\.uk|cgtn\.com|baike\.baidu\.com|zerohedge\.com)/i,
			css: { "background-color": "#ffbbbb", "text-decoration":"underline", "text-decoration-style": "wavy"},
		},
	
		{
			comment: 'Misleading journal metric',
			regex: /\b(?:test\.misleading\.org|aeglobalindex\.com|aqcj\.org|arabimpactfactor\.com|citefactor\.org|cosmosimpactfactor\.com|dids\.info|diif\.org|doi-ds\.org|drji\.org|esjindex\.org|generalimpactfactor\.com|globalimpactfactor\.com|gscif\.org|i2or\.com|iarcif\.org|ifsij\.com|iijif\.com|impact-factor\.ru|impactfactorjournals\.com|impactfactorservice\.com|indexcopernicus\.com|infobaseindex\.com|inno-space\.net|internationaljournalimpactfactor\.com|isindexing\.com|isithomsonreuters\.org|israjif\.org|jifactor\.com|jifactor\.org|jourinfo\.com|journal-index\.org|journal-metrics\.com|journalimpactfactor\.co\.in|journalimpactfactor\.co\.in|journalimpactfactor\.in|journalsconsortium\.org|journalsmetrics\.com|jprsimpactfactor\.com|oaji\.net|opqc\.org|prernasociety\.org|pubicon\.org|rjifactor\.com|rootindexing\.com|scienceimpactfactor\.com|scijournal\.org|scijournal\.org|sifactor\.org|sindexs\.org|sjournals\.net|sparcindexing\.org|timpactfactor\.com|uifactor\.org|worldbizins\.org|sjifactor\.com)/i,
			css: { "background-color": "#ffbbbb", "text-decoration":"underline", "text-decoration-style": "wavy"},
		},

		{
			comment: 'Generally unreliable source',	
			regex: /\b(?:test\.generallyunreliable\.org|alternet\.org|amazon\.(com\.br|ca|com\.mx|com|cn|in|co\.jp|sg|com\.tr|ae|fr|de|it|nl|es|co\.uk|com\.au)|americanthinker\.com|amgreatness\.com|amren\.com|ancestry\.com|angelfire\.com|angelfire\.lycos\.com|answers\.com|askubuntu\.com|avn\.org\.au|baidu\.com|bigleaguepolitics\.com|bild\.de|bipartisanreport\.com|bircham\.edu|blazetv\.com|blogger\.com|blogspot\.com|bloodandhonourcentral\.co\.uk|bloodandhonourworldwide\.co\.uk|celebritynetworth\.com|centerforfoodsafety\.org|cesnur\.org|childrenshealthdefense\.org|cmsri\.org|cnsnews\.com|coindesk\.com|collective-evolution\.com|conservativereview\.com|conservativetribune\.com|coresci\.org|cracked\.com|dailykos\.com|dailymotion\.com|dailywire\.com|davidwolfe\.com|deanradin\.com|deanradin\.org|delphiclassics\.com|discogs\.com|dnadecipher\.com|drtenpenny\.com|electronicintifada\.net|ewg\.org|explorejournal\.com|express\.co\.uk|facebook\.com|familysearch\.org|fandom\.com|fb\.com|findagrave\.com|findmypast\.co\.uk|flickr\.com|foodandwaterwatch\.org|foodbabe\.com|force9\.co\.uk|fwwatch\.org|gawker\.com|geni\.com|geocities\.com|glennbeck\.com|goodreads\.com|greenmedinfo\.com|gsjournal\.net|guacamoley\.com|healthnutnews\.com|heatst\.com|i-sis\.org|ibtimes\.co\.uk|ibtimes\.com|imdb\.com|indiahealthguru\.com|indymedia\.org|instagram\.com|jcer\.com|lawofficer\.com|lenr-canr\.org|liberty\.edu|lifezette\.com|linkedin\.com|livejournal\.com|marquiswhoswho\.com|mathoverflow\.net|mediabiasfactcheck\.com|medicalveritas\.com|medium\.com|mercola\.com|metro\.news|modernalternativehealth\.com|modernalternativemama\.com|momsacrossamerica\.com|mruniversity\.com|naturalnews\.com|neuroquantology\.com|newenergytimes\.com|newspunch\.com|nvic\.org|onlinegatha\.com|organicconsumers\.org|palmerreport\.com|pan-international\.org|patheos\.com|patribotics\.com|pesticideinfo\.org|peteevans\.com|pinterest\.com|pjmedia\.com|prageru\.com|prespacetime\.com|presstv\.com|prisonplanet\.com|projectveritas\.com|quadrant\.org\.au|quillette\.com|quora\.com|realfarmacy\.com|rebelnews\.com|reddit\.com|redstate\.com|rootsweb\.com|scigod\.com|scribd\.com|sixthtone\.com|skwawkbox\.org|souq\.com|stackexchange\.com|stackoverflow\.com|stormfront\.org|telekinesisworld\.com|theblaze\.com|thecanary\.co|thefederalist\.com|thegwpf\.org|thenewamerican\.com|theonion\.com|thepaper\.cn|thepoliticalcesspool\.org|thepostmillennial\.com|thetruthaboutguns\.com|tldp\.com|townsendletter\.com|tumblr\.com|tunefind\.com|tvtropes\.org|twitch\.tv|twitchy\.com|twitter\.com|urbandictionary\.com|venezuelanalysis\.com|vgchartz\.com|vimeo\.com|vixra\.org|rxiv\.org|wddty\.com|weebly\.com|westernjournal\.com|whosampled\.com|wikia\.com|wikia\.org|wikileaks\.org|wonkette\.com|wordpress\.com|worldometer\.info|worldometers\.info|worldtruth\.tv|youtube\.com|ebay\.com|physicsessays\.org|superuser\.com|serverfault\.com|boredpanda\.com|listverse\.com|mobilereference\.com|odmp\.org|carfolio\.com|kenrockwell\.com|liliputing\.com|omniglot\.com|phoronix\.com|proprivacy\.com|tuttoandroid\.net|vpnpro\.com|highstakesdb\.com|rocketrobinsoccerintoronto\.com|encycolorpedia\.com|defence-blog\.com|forces-war-records\.co\.uk|defseca\.com|weaponsandwarfare\.com|military-today\.com|leafly\.com|europeanheraldry\.org|historyofroyalwomen\.org|jadovno\.com|wordspy\.com|blu-ray\.com|comicbookmovie\.com|filmaffinity\.com|filmreference\.com|\.tv\.com|history\.com|victimsofcommunism\.org|adfontesmedia\.com|aeronet\.cz|africanprintinfashion\.com|ahaonline\.cz|albumoftheyear\.org|aleteia\.org|allsides\.com|alternativevision\.co\.uk|animals24-7\.org|anphoblacht\.com|answeringmuslims\.com|arcadeheroes\.com|askmen\.com|austinemedia\.com|bdmilitary\.com|blesk\.cz|bradysnario\.com|buzznigeria\.com|capitalresearch\.org|catholicism\.org|celebitchy\.com|cesnur\.net|chabad\.org|chiomajesus\.org|chivalricorders\.com|churchmilitant\.com|cinemacats\.com|conservativehome\.com|consortiumnews\.com|countere\.com|dailyo\.in|dailysport\.co\.uk|danielpipes\.org|daxtonsfriends\.com|dnd\.com\.pk|dogbitelaw\.com|dogsbite\.org|douban\.com|earnthenecklace\.com|epistlenews\.co\.uk|evolvepolitics\.com|faluninfo\.net|famousbirthsdeaths\.com|fatalpitbullattacks\.com|findmypast\.com|freebeacon\.com|gamefaqs\.gamespot\.com|gazetabankowa\.pl|genius\.com|glitchwave\.com|globalmbwatch\.com|gmusicplus\.com|gospelmusicnaija\.com|greekcitytimes\.com|gript\.ie|guide2womenleaders\.com|haribhakt\.com|hellomagazine\.com|hindi2news\.com|hotairengines\.org|hrvc\.net|ifcj\.org|independentaustralia\.net|informationng\.com|inquisitr\.com|insistposthindi\.in|intoleranceagainstchristians\.eu|isfdb\.org|ishkur\.com|islamicstudies\.org|islamqa\.info|israelunwired\.com|jacobitemag\.com|jammersreviews\.com|jewishvirtuallibrary\.org|knowyourmeme\.com|lesbianandgaynews\.com|lifehacker\.com|lindaikejisblog\.com|livehistoryindia\.com|looktothestars\.org|loudestgist\.com|madainproject\.com|mailonsunday\.co\.uk|marriedceleb\.com|masala\.com|meaww\.com|meforum\.org|metal-experience\.com|metalheadzone\.com|metro\.co\.uk|mises\.org|monergism\.com|moneyinc\.com|mrc\.org|muflihun\.com|naszdziennik\.pl|nationalpitbullvictimawareness\.org|ncc\.org\.au\/newsweekly|nczas\.com|nickiswift\.com|ntd\.com|ntdtv\.com|nypost\.com|onobello\.com|order-order\.com|ordoiuris\.pl|ourcampaigns\.com|pagesix\.com|panampost\.com|panarmenian\.net|parlamentnilisty\.cz|peoples\.ru|peopo\.org|peta\.org|police1\.com|politicalislam\.com|popsugar\.com|postcard\.news|radiomaryja\.pl|rollingout\.com|siberiantimes\.com|sina\.com|somalidispatch\.com|sonemic\.com|songmeaningsandfacts\.com|soundcloud\.com|stalkerzone\.org|stargist\.com|stars\.ng|stefczyk\.info|super\.cz|supercars\.net|superyachttimes\.com|techno\.org\/electronic-music-guide|the-sun\.com|thehustlersdigest\.com|thelogicalindian\.com|thevpme\.com|torontoguardian\.com|trekbbs\.com|treknation\.com|trektoday\.com|tv-trwam\.pl|tvp\.pl|tygodnikpodlaski\.pl|wGospodarce\.pl|wNas\.pl|wSumie\.pl|watchmojo\.com|wegotthiscovered\.com|wenweipo\.com|wrldrels\.org|wsieciprawdy\.pl|wsws\.org|youthkiawaaz\.com|youthvillageng\.com|thenationalpulse\.com|catholic-hierarchy\.org|thereligionofpeace\.com|askapatient\.co|arxiv.org(%2F|\/)archive(%2F|\/)physics\.gen-ph|californiaglobe\.com|thrashocore\.com|myspace\.com|whatculture\.com|weather2travel\.com|wegotthiscovered\.com|tvtome\.com|rawstory\.com|starsunfolded\.com|spirit-of-metal\.com|sourcewatch\.org|republicworld\.com|prnewswire\.com|ourcampaigns\.com|eyeblast\.tv|metal-archives\.com|allgov\.com|sensacionalista\.com\.br|nordpresse\.be|njuz\.net|kyoko-np\.net|journaldemourreal\.com|walkingeaglenews\.com|dailybonnet\.com|burrardstreetjournal\.com|worldnewsdailyreport\.com|thebeaverton\.com|truenorthtimes\.ca|iuniverse\.com|h2g2\.com|fantasticfiction\.co\.uk|wisegeek\.com|groups\.google\.com|mankindquarterly\.org|acpeds\.org|currantdaily\.com|fool\.com|thestreet\.com|seekingalpha\.com|articlesnatch.com|private-eye\.co\.uk|framleyexaminer\.com|thepoke\.co\.uk|newsbiscuit\.com|thedailymash\.co\.uk|dailysquib\.co\.uk|theoxymoron\.co\.uk|thelemonpress\.co\.uk|newsthump\.com|southendnewsnetwork\.net|rochdaleherald\.co\.uk|landoverbaptist\.org|islamicanews\.com|bbspot\.com|borowitzreport\.com|scrappleface\.com|thedailywtf\.com|adequacy\.org|christwire\.org|thedailyer\.com|weeklyworldnews\.com|satirewire\.com|freewoodpost\.net|duffelblog\.com|nationalreport\.net|reductress\.com|clickhole\.com|thehardtimes\.net|huzlers\.com|babylonbee\.com|elchiguirebipolar\.net|sis-group\.org\.uk|dr-rath-foundation\.org|candida-international\.org|ulsterinstitute\.org|infogalactic\.com|conservapedia\.com)/i,
			css:  { "background-color": "#ffdddd" },
		},
		
		{ 
			comment: 'Generally unreliable source',
			regex: /\b10\.(?:0004|4006|14704|5048|46469|1016(%2F|\/)j\.explore)\b/,
			css:  { "background-color": "#ffdddd" },
		},

		{
			comment: 'Wikimedia-related website',
			filter: mw.config.get('wgNamespaceNumber') === 0 || mw.config.get('wgNamespaceNumber') === 118,
			regex: /\b(?:test\.wiki\.org|wikidata\.org|wikinews\.org|wikipedia\.org|wiktionary\.org)/i,
			css: { "background-color": "#ffdddd" },
		},

		// Predatory. See [[Special:AbuseFilter/891]], [[WP:CITEWATCH/SETUP]], [[User:JzG/Predatory]] and https://beallslist.net/
		{
			comment: 'Predatory journal or publisher',
			regex: /\b(?:test\.predatory\.org|\.iiis\.org|\.ssjournals\.com|academicjournals\.com|academicjournals\.net|academicjournals\.org|academicpub\.org|academicresearchjournals\.org|acjol\.org|advancedscience\.org|aessweb\.com|aiac\.org\.au|aicit\.org|aijcrnet\.com|aijssnet\.com|alliedacademies\.org|allresearchjournal\.com|arcjournals\.org|ashdin\.com|aspbs\.com|auctoresonline\.org|avensonline\.org|bibliomed\.org|biocoreopen\.org|bioflux\.com\.ro|bioinfopublication\.org|biomedres\.info|biopublisher\.ca|bonfring\.org|bowenpublishing\.com|ccsenet\.org|cennser\.org|chitkara\.edu\.in|cibtech\.org|cirworld\.com|clinmedjournals\.org|cluteinstitute-onlinejournals\.com|cluteinstitute\.com|clutejournals\.com|cluteonline\.com|conferenceseries\.com|cosmology\.com|cosmosscholars\.com|cpinet\.info|cscanada\.net|currentpediatrics\.com|davidpublisher\.org|destechpub\.com|eajournals\.org|econjournals\.com|ecronicon\.com|ejpmr\.com|electrochemsci\.org|esciencecentral\.org|etpub\.com|eujournal\.org|eurojournals\.com|europeanjournalofsocialsciences\.com|euser\.org|florajournal\.com|geneticsmr\.org|globaljournals\.org|globalresearchonline\.net|globalstf\.org|grdspublishing\.org|growingscience\.com|hanspub\.org|hoajonline\.com|hrmars\.com|iacsit\.org|iaeme\.com|iamure\.com|iaset\.us|idosi\.org|igi-global\.com|iises\.net|iiste\.org|ijarbs\.com|ijastnet\.com|ijbhtnet\.com|ijbssnet\.com|ijcit\.com|ijcrt\.org|ijddr\.in|ijedr\.org|ijellh\.com|ijera\.com|ijerst\.com|ijert\.org|ijfcc\.org|ijhssnet\.com|ijiras\.com|ijirset\.com|ijiset\.com|ijllnet\.com|ijltet\.org|ijmhr\.org|ijmlc\.org|ijmrbs\.org|ijohmn\.com|ijpab\.com|ijpbs\.net|ijrdet\.com|ijream\.org|ijrrjournal\.com|ijsat\.com|ijset\.in|ijset\.net|ijsre\.com|ijsret\.com|ijsrp\.org|ijsrpub\.com|ijsta\.com|ijstr\.org|ijtrd\.com|imedpub\.com|infinitypress\.info|informaticsjournals\.com|innovativejournal\.in|innspub\.net|intechopen\.com|intechweb\.org|interesjournals\.org|internationaljournalssrg\.org|irjponline\.com|ispacs\.com|ispub\.com|issr-journals\.org|jalsnet\.com|jaypeebrothers\.com|jaypeejournals\.com|jbepnet\.com|jespnet\.com|jioh\.org|jmest\.org|jocpr\.com|journalcra\.com|journalijar\.com|journalissues.\org|journalofcosmology\.com|jpmedpub\.com|julypress\.com|juniperpublishers\.com|kowsarpub\.com|kspjournals\.org|longdom\.org|m-hikari\.com|macrothink\.org|maxwellsci\.com|mecs-press\.org|medcraveonline\.com|medicinearticle\.com|medwelljournals\.com|medwinpublishers\.com|newworldpub\.com|oapub\.org|oapublishinglondon\.com|oatext\.com|omicsgroup\.org|omicsonline\.com|omicsonline\.org|oprscience\.org|ospcindia\.org|pelagiaresearchlibrary\.com|pharmainfo\.in|pharmascope\.org|phytojournal\.com|rajpub\.com|recentscientific\.com|redelve\.com|researchleap\.com|researchpub\.org|ripublication\.com|rjlbpcs\.com|sapub\.org|scholarpublishing\.org|scholarsresearchlibrary\.com|scholink\.org|scialert\.net|scidoc\.org|sciedu\.ca|sciencedomain\.org|sciencedomains\.org|sciencejournal\.in|sciencepg\.com|sciencepub\.net|sciencepubco\.com|sciencepublication\.org|sciencepublishinggroup\.com|scientiaricerca\.com|scientificjournals\.org|sciepub\.com|scihub\.org|scipg\.net|scipress\.com|scirp\.org|scitcentral\.com|scitechnol\.com|scopemed\.com|scopemed\.org|seipub\.org|sersc\.org|smjournals\.com|sphinxsai\.com|stmjournals\.com|stmjournals\.in|the-criterion\.com|thesai\.org|thescipub\.com|tropicalplantresearch\.com|universitypublications\.net|updatepublishing\.com|valleyinternational\.net|warse\.org|waset\.org|witpress\.com|worldsciencepublisher\.org|worldwidejournals\.com|wscholars\.com|wseas\.org|wudpeckerresearchjournals\.org|xandhpublishing\.com|xiahepublishing\.com|zantworldpress\.com|zenithresearch.org\.in|iracst\.org|jocmr\.com|jicep\.com|rrjournals\.com|ommegaonline\.org|ijesd\.org|theartsjournal\.org|jscimedcentral\.com|iioab\.com|iioab\.webs\.com|bepls\.com|ijfas\.com|irphouse\.com|onlineresearchjournals\.com|iomcworld\.org|jnasci\.org|edtechpress\.co\.uk|cambridgescholars\.com|jnsbm\.org|sid\.ir|ijprbs\.com|iarme\.com|internationaljournalcorner\.com|theijhss\.com|globeedugroup\.com|\ijbts-journal\.com|jieas\.com|irjaes\.com|ijeir\.com|ijbmer\.com|jneurology\.com|pediatricsresearchjournal\.com|cancertreatmentjournal\.com|mentalhealthjournal\.org|medwellonline\.net|aensiweb\.com|globalscientificjournal\.com|tojet\.net|ijip\.in|ijcmas\.com|excellentpublishers\.com|elixirpublishers\.com|pharmacologyonline\.silae\.it|thepharmajournal\.com|bilpublishing\.com|ijste\.org|ijesr\.org|pressacademia\.org|rsisinternational\.org|researchpublish\.org|researchpublish\.com|ijser\.org|oiirj\.org|materialsciencejournal\.org|jallr\.org|jamdsr\.com|gjar\.org|iarjset\.com|iasir\.net|ijrap\.net|ijritcc\.org|ijteee\.org|ijscl\.net|ijss-sn\.com|jasstudies\.com|irct\.org|ijcrt\.org|indianscholar\.co\.in|irjps\.in|abacademies\.org)/i,
			css: { "background-color": "#ffbbbb", "text-decoration":"underline", "text-decoration-style": "wavy"},
		},
		
		{ 
			comment: 'Predatory journal or publisher',
			regex: /\b10\.(?:0001|11648|1166|1234|12677|12692|12720|12988|13005|13172|13188|14257|14299|14303|14419|14445|1453|14569|14662|15406|15415|15373|15680|15761|17265|18005|18052|18311|18775|19030|19044|19070|19080|1999|20319|20431|20472|20849|20902|20964|21102|21767|22158|23937|29322|2495|30845|35841|36648|3844|3923|3968|4018|4156|4172|4236|4303|5005|5267|5296|5376|5430|5455|5539|5567|5580|5772|5812|5815|5829|5897|5899|5923|5963|6007|6479|7243|7439|7537|7575|7718|7763|9734|22192|18535|15379|35248|24297|7176|17577|37532|24113|14218|14738|3153|9790|15550|35940|33564|24327|22271(%2F|\/)phyto|22214|37591|18632|22271|25141|22376|26452|47128|18488|16965|24105|12983|26417|3889|21474|36106|5176|18782|18843|17776|25081|12691|46827|15436|37624|29245|18203|20546|17261|17148|7897|17354|9761|31142|32370)\b/,
			css: { "background-color": "#ffbbbb", "text-decoration":"underline", "text-decoration-style": "wavy"},
		},

		// Sources that traditionally fail [[WP:MEDRS]], but which could be used for other more routine claims
		{
			comment: 'Borderline source, which often (but not always) fails higher sourcing requirements. For Copernicus journals, those from the EGU are fine.',
			regex: /\b(?:test\.medrs\.org|benthamopen\.com|f1000\.com|frontiersin\.org|mdpi\.com|businessperspectives\.org|copernicus\.org)/i,
			css: { "background-color": "#fffdd0" }
		},
		{
			comment: 'Borderline source, which often (but not always) fails higher sourcing requirements. For Bentham journals, only those published by Bentham Open are of concern. For Copernicus journals, those from the EGU are fine.',
			regex: /\b10\.(?:0002|2174|3389|3390|3410|4089|4175|7490|12688|12703|20944|32545|35995|1007(%2F|\/)s12129|4103|6219|9754|5194)\b/,
			css:  { "background-color": "#fffdd0" }
		},

		// May or may not contain preprints, predatory, or self-published materials
		{
			comment: 'Preprint or general repository which may or may not contain unpublished/predatory materials',
			regex: /\b(?:test\.warn\.org|aasopenresearch\.org|academia\.edu|africarxiv\.org|agrirxiv\.org|amrcopenresearch\.org|arabixiv\.org|arxiv\.org|authorea\.com|beilstein-archives\.org|biohackrxiv\.org|biorxiv\.org|chemrxiv\.org|chinaxiv\.org|citeseerx\.ist\.psu\.edu|cogprints\.org|cureus\.com|docs\.google|e-century\.org|eartharxiv\.org|ecoevorxiv\.org|ecsarxiv\.org|edarxiv\.org|engrxiv\.org|eprint\.iacr\.org|eprints\.rclis\.org|essoar\.org|f1000research\.com|figshare\.com|frenxiv\.org|gatesopenresearch\.org|hal-hprints\.archives-ouvertes\.fr|hal\.archives-ouvertes\.fr|hrbopenresearch\.org|indiarxiv\.in|lawarxiv\.info|lissarchive\.org|mediarxiv\.com|medrxiv\.org|mindrxiv\.org|osf\.io(%2F|\/)preprints|paleorxiv\.org|peerj\.com(%2F|\/)preprints|philsci-archive\.pitt\.edu|precedings\.nature\.com|preprints\.arphahub\.com|preprints\.jmir\.org|preprints\.apsanet\.org|preprints\.org|preprints\.ru|preprints\.scielo\.org|psyarxiv\.com|pulsus\.com|qeios\.com|repec\.org|researchgate\.net|researchsquare\.com|scholar\.google|semanticscholar\.org|sportrxiv\.org|ssrn\.com|techrxiv\.org|thelancet\.com(%2F|\/)preprints|wellcomeopenresearch\.org|zenodo\.org|peercommunityin\.org|arxiv-vanity\.com|docsdrive\.com|googlepages\.com)/i,
			css: { "background-color": "#fffdd0" },
		},
		{
			comment: 'Preprint or general repository which may or may not contain unpublished/predatory materials',
			regex: /\b10\.(?:0003|1101(%2F|\/)\d+|2139|7287|4066|5281|5604|6084|7759|13140|19144|20935|21282|31219|31220|31221|31222|31223|31224|31225|31226|31227|31228|31229|31230|31231|31232|31233|31234|31235|31236|31237|32388|24072)\b/i,
			css: { "background-color": "#fffdd0" },
		}, 

		// Varies with the contributor or topic
		{
			comment: 'Reliability depends on contributor or topic',
			regex: /\b(?:test\.contributors\.org|aa\.com\.tr|forbes\.com|foxnews\.com|huffpost\.com|infotextmanuscripts\.org|jezebel\.com|about\.com|dotdash\.com|lifewire\.com|verywell\.com|sites\.google\.com|cuancha\.cn|hkv\.hr|gamespot\.com|filmmusicreporter\.com|mashable\.com|theneedledrop\.com|newsweek\.com|mirror\.co\.uk)/i,
			css:  { "background-color": "#fffdd0" },
		},
		{
			comment: 'Reliability depends on contributor or topic',
			regex: /\b10\.(?:0003|1016(%2F|\/)j\.chaos\.|1016(%2F|\/)S0960-0779)\b/i,
			css: { "background-color": "#fffdd0" },
		}, 
	];
	
	// Dynamically load a user's custom rules from User:USERNAME/unreliable-rules.js
	mw.loader.getScript('/w/index.php?title=User:' + encodeURIComponent(mw.config.get('wgUserName')) + 
	    '/unreliable-rules.js&action=raw&ctype=text/javascript')
	.fail( function(e) {
		// Something's gone very wrong
        mw.log.error("Error retrieving your unreliable-rules.js");
        // More detailed error in the console if someone feels nice enough to file a bug report
        console.log("Error getting local unreliable-rules.js: " + e.message);
	})
    .done( function () {
        // Script succeeded. You can use X now.
		if (Array.isArray(window.unreliableCustomRules)) {
			unreliableCustomRules.forEach(function(customRule) {
				if (!(customRule.regex instanceof RegExp) || (typeof customRule.css !== 'object')) {
					return mw.log.warn("Error parsing custom unreliable links rule: ", rule);
				}
				rules.push(customRule);
			});
		}
    })
    .always( function () {
        highlight();
    });
    
    var highlight = function() {
		// Check each external link on the page against each regex
	    $('.mw-parser-output a.external').each(function(_, link) {
	    	$.each(rules, function(_, rule) {
		    	if (typeof rule.filter !== 'undefined' && !rule.filter) {
		    		return true;
		    	}
		    	if (rule.regex.test(link.href)) {
		    		$(link).css(rule.css);
		    		$(link).attr('title', rule.comment || '');
		    		return false;
			    }
		    });
	    });

	    // Check list items against each regex to catch further reading/bibliography items without links 
	    $('.mw-parser-output ul li, .mw-parser-output ol:not(.references) li, .reference-text:not(:has(a))')
	    .each(function(_, li) {
    		$.each(rules, function(_, rule) {
    			if (typeof rule.filter !== 'undefined' && !rule.filter) {
    				return true;
    			}
    			if (rule.regex.test(li.textContent)) {
    				$(li).css(rule.css);
    				$(li).attr('title', rule.comment || '');
    				return false;
    			}
    		});
    	});
    };

});
importScript('User:Anomie/hide-images.js');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Uziel302/typo.js&action=raw&ctype=text/javascript');