diff --git a/README.md b/README.md index 8917550..0391fc0 100755 --- a/README.md +++ b/README.md @@ -191,6 +191,7 @@ Grouped in options:\ [The Athletic](https://theathletic.com) - [The Intercept](https://theintercept.com) - [The Daily Beast](https://www.thedailybeast.com) - +[The Daily Wire](https://www.dailywire.com) - [The New Atlantis](https://www.thenewatlantis.com) - [The Point Magazine](https://thepointmag.com) - [The Wrap](https://www.thewrap.com) diff --git a/changelog.txt b/changelog.txt index fb21411..41a1e7a 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Chrome Post-release Add De Tijd & L'Echo Add group Mediahuis Noord (opt-in to custom sites for unlisted) +Add The Daily Wire Fix DealStreetAsia (free articles only) Fix Knack.be & LeVif.be diff --git a/contentScript.js b/contentScript.js index dc7ed42..318fa29 100755 --- a/contentScript.js +++ b/contentScript.js @@ -21,6 +21,7 @@ var it_repubblica_domains = ['gelocal.it', 'ilsecoloxix.it', 'italian.tech', 'la var it_quotidiano_domains = ['ilgiorno.it', 'ilrestodelcarlino.it', 'iltelegrafolivorno.it', 'lanazione.it', 'quotidiano.net']; var medium_custom_domains = ['betterprogramming.pub', 'towardsdatascience.com']; var nl_mediahuis_region_domains = ['gooieneemlander.nl', 'haarlemsdagblad.nl', 'ijmuidercourant.nl', 'leidschdagblad.nl', 'noordhollandsdagblad.nl']; +var nl_pg_domains = ['demorgen.be', 'humo.be', 'parool.nl', 'trouw.nl', 'volkskrant.nl']; var no_nhst_media_domains = ['intrafish.com', 'rechargenews.com', 'tradewindsnews.com', 'upstreamonline.com']; var pe_grupo_elcomercio_domains = ['diariocorreo.pe', 'elcomercio.pe', 'gestion.pe']; var timesofindia_domains = ['timesofindia.com', 'timesofindia.indiatimes.com']; @@ -35,7 +36,7 @@ var usa_outside_mag_domains = ["backpacker.com", "betamtb.com", "betternutrition var usa_tribune_domains = ['baltimoresun.com', 'chicagotribune.com', 'courant.com', 'dailypress.com', 'mcall.com', 'nydailynews.com', 'orlandosentinel.com', 'pilotonline.com', 'sun-sentinel.com']; // clean local storage of sites (with an exemption for hold-list) -var arr_localstorage_hold = ['abc.es', 'allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'barrons.com', 'businessoffashion.com', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'corriere.it', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'ilfoglio.it', 'inc42.com', 'kurier.at', 'lanouvellerepublique.fr', 'lesechos.fr', 'mid-day.com', 'muensterschezeitung.de', 'nytimes.com', 'nzherald.co.nz', 'scmp.com', 'seekingalpha.com', 'telegraph.co.uk', 'thehindu.com', 'thetimes.co.uk', 'westfalen-blatt.de', 'wn.de', 'wsj.com'].concat(de_funke_media_domains, es_epiberica_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_quotidiano_domains, no_nhst_media_domains, usa_hearst_comm_domains); +var arr_localstorage_hold = ['abc.es', 'allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'barrons.com', 'businessoffashion.com', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'corriere.it', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'ilfoglio.it', 'inc42.com', 'kurier.at', 'lanouvellerepublique.fr', 'lesechos.fr', 'mid-day.com', 'muensterschezeitung.de', 'nytimes.com', 'nzherald.co.nz', 'scmp.com', 'seekingalpha.com', 'telegraph.co.uk', 'thehindu.com', 'thetimes.co.uk', 'westfalen-blatt.de', 'wn.de', 'wsj.com'].concat(de_funke_media_domains, es_epiberica_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_quotidiano_domains, nl_pg_domains, no_nhst_media_domains, usa_hearst_comm_domains); if (!matchDomain(arr_localstorage_hold)) { window.localStorage.clear(); } @@ -1887,6 +1888,12 @@ else if (matchDomain(nl_mediahuis_region_domains)) { }, 500); } +else if (matchDomain(nl_pg_domains)) { + let banners = document.querySelectorAll('div[data-temptation-position^="PAGE_"], div[class^="ad--"]'); + let paywall = document.querySelectorAll('[data-temptation-position^="ARTICLE_"]'); + removeDOMElement(...banners, ...paywall); +} + else if (matchDomain('nrc.nl')) { window.setTimeout(function () { let nrc_overlay = document.querySelectorAll('[id$="modal__overlay"]'); @@ -1901,12 +1908,6 @@ else if (matchDomain('nrc.nl')) { }, 100); } -else if (matchDomain(["parool.nl", "trouw.nl", "volkskrant.nl", "humo.be", "demorgen.be"])) { - let banners = document.querySelectorAll('div[data-temptation-position^="PAGE_"], div[class^="ad--"]'); - let paywall = document.querySelectorAll('[data-temptation-position^="ARTICLE_"]'); - removeDOMElement(...banners, ...paywall); -} - else if (matchDomain('telegraaf.nl')) { if (window.location.href.startsWith('https://www.telegraaf.nl/error?ref=/')) { window.setTimeout(function () { @@ -2538,6 +2539,12 @@ else if (matchDomain('csmonitor.com')) { removeDOMElement(paywall); } +else if (matchDomain('dailywire.com')) { + let paywall = document.querySelector('#post-body-text > div > div[class]'); + if (paywall) + paywall.removeAttribute('class'); +} + else if (matchDomain('dallasnews.com')) { if (window.location.search.startsWith('?outputType=amp')) { amp_unhide_subscr_section('amp-ad, amp-embed'); diff --git a/custom/manifest.json b/custom/manifest.json index c40ca36..e6f6057 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -42,5 +42,5 @@ "webRequestBlocking", "" ], - "version": "2.6.7.2" + "version": "2.6.7.3" } diff --git a/manifest.json b/manifest.json index 1e002fc..2a1375f 100755 --- a/manifest.json +++ b/manifest.json @@ -144,6 +144,7 @@ "*://*.dailyliberal.com.au/*", "*://*.dailypress.com/*", "*://*.dailytelegraph.com.au/*", + "*://*.dailywire.com/*", "*://*.dallasnews.com/*", "*://*.darkreading.com/*", "*://*.dealstreetasia.com/*", @@ -659,5 +660,5 @@ "*://*.wsj.net/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.6.7.2" + "version": "2.6.7.3" } diff --git a/sites.js b/sites.js index b8d0495..3487ddd 100755 --- a/sites.js +++ b/sites.js @@ -1596,6 +1596,10 @@ var defaultSites = { domain: "thedailybeast.com", block_regex: /\.tinypass\.com\// }, + "The Daily Wire": { + domain: "dailywire.com", + allow_cookies: 1 + }, "The Dallas Morning News": { domain: "dallasnews.com", allow_cookies: 1, diff --git a/sites_updated.json b/sites_updated.json index 436f484..4dbaf52 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -94,6 +94,16 @@ "domain": "rockandice.com", "group_rule": "###_gr_usa_outside_mag_domains" }, + "The Daily Wire": { + "domain": "dailywire.com", + "allow_cookies": 1, + "cs_code": [{ + "cond": "#post-body-text > div > div[class]", + "rm_attrib": "class" + } + ], + "new_site": 1 + }, "###_gr_usa_outside_mag_domains": { "group_rule_domains": ["betternutrition.com", "gymclimber.com", "pelotonmagazine.com", "podiumrunner.com", "rockandice.com"], "allow_cookies": 1,