From cd9ba2d1787e63f24d61c231ed2c32d3d19bc771 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Thu, 10 Feb 2022 18:17:15 +0100 Subject: [PATCH] =?UTF-8?q?Add=20Cond=C3=A9=20Nast=20magazines=20&=20Vogue?= =?UTF-8?q?=20Business?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 15 ++++++++++----- changelog.txt | 1 + contentScript.js | 19 ++++++++++--------- custom/manifest.json | 2 +- custom/sites_custom.json | 5 ----- manifest.json | 6 +++++- sites.js | 30 ++++++++++++------------------ sites_updated.json | 23 +++++++++++++++++++++++ 8 files changed, 62 insertions(+), 39 deletions(-) diff --git a/README.md b/README.md index d045989..37051f3 100755 --- a/README.md +++ b/README.md @@ -91,7 +91,6 @@ _* free articles only._ [The New Republic](https://newrepublic.com) - [The New York Review of Books](https://www.nybooks.com) - [The New York Times](https://www.nytimes.com) - -[The New Yorker](https://www.newyorker.com) - [The Spectator World](https://spectatorworld.com) - [The Washington Post](https://www.washingtonpost.com) - [Time Magazine](https://time.com) - @@ -119,7 +118,8 @@ _* free articles only._ [Stock News](https://stocknews.com) - [The Business Journals](https://www.bizjournals.com) - [The Business of Fashion](https://www.businessoffashion.com) - -[The Wall Street Journal](https://www.wsj.com) +[The Wall Street Journal](https://www.wsj.com) - +[Vogue Business](https://www.voguebusiness.com) Grouped in options:\ *Crain Communications* sites like\ @@ -151,8 +151,7 @@ Grouped in options:\ [Scientific American](https://www.scientificamerican.com)* - [Times Higher Education](https://www.timeshighereducation.com) - [Towards Data Science](https://www.towardsdatascience.com) - -[VentureBeat](https://venturebeat.com) - -[Wired](https://www.wired.com) +[VentureBeat](https://venturebeat.com) ##### Encyclopedia/Book library/Knowledge base [BBC History Extra](https://www.historyextra.com) - @@ -186,10 +185,16 @@ Grouped in options:\ [The New Atlantis](https://www.thenewatlantis.com) - [The Point Magazine](https://thepointmag.com) - [The Wrap](https://www.thewrap.com) - -[Vanity Fair](https://www.vanityfair.com) - [Variety](https://variety.com) Grouped in options:\ +*Condé Nast magazines* sites like:\ +[Bon Appétit](https://www.bonappetit.com) - +[GC](https://www.gq.com) - +[The New Yorker](https://www.newyorker.com) - +[Vanity Fair](https://www.vanityfair.com) - +[Vogue USA](https://www.vogue.com) - +[Wired](https://www.wired.com)\ *Outside magazines* sites like:\ [Backpacker](https://www.backpacker.com) - [Beta](https://www.betamtb.com) - diff --git a/changelog.txt b/changelog.txt index 10c206e..3a72ac6 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Chrome Post-release +Add Condé Nast magazines & Vogue Business Add Groupe Sud Ouest (France) Fix Australian Community Media (images) Fix Lequipe.fr & LesEchos.fr (refresh) diff --git a/contentScript.js b/contentScript.js index b3bc217..6647bd3 100755 --- a/contentScript.js +++ b/contentScript.js @@ -22,6 +22,7 @@ var nl_mediahuis_region_domains = ['gooieneemlander.nl', 'haarlemsdagblad.nl', ' var no_nhst_media_domains = ['intrafish.com', 'rechargenews.com', 'tradewindsnews.com', 'upstreamonline.com']; var timesofindia_domains = ['timesofindia.com', 'timesofindia.indiatimes.com']; var usa_adv_local_domains = ['al.com', 'cleveland.com', 'lehighvalleylive.com', 'masslive.com', 'mlive.com', 'nj.com', 'oregonlive.com', 'pennlive.com', 'silive.com', 'syracuse.com']; +var usa_conde_nast_domains = ['bonappetit.com', 'gq.com' , 'newyorker.com', 'vanityfair.com', 'vogue.com', 'wired.com']; var usa_craincomm_domains = ['adage.com', 'autonews.com', 'chicagobusiness.com', 'crainscleveland.com', 'crainsdetroit.com', 'crainsnewyork.com', 'modernhealthcare.com']; var usa_hearst_comm_domains = ['expressnews.com', 'houstonchronicle.com', 'sfchronicle.com']; var usa_lee_ent_domains = ['buffalonews.com', 'richmond.com', 'tucson.com', 'tulsaworld.com']; @@ -2688,15 +2689,6 @@ else if (matchDomain('newsday.com')) { } } -else if (matchDomain(['newyorker.com', 'vanityfair.com', 'wired.com'])) { - if (window.location.pathname.endsWith('/amp')) { - amp_unhide_subscr_section('amp-ad, amp-embed, .ad'); - } else { - let paywall_bar = document.querySelector('.paywall-bar'); - removeDOMElement(paywall_bar); - } -} - else if (matchDomain(['nola.com', 'theadvocate.com'])) { if (window.location.pathname.endsWith('.amp.html')) { let body_hidden = document.querySelector('.site-container'); @@ -3194,6 +3186,15 @@ else if (matchDomain(no_nhst_media_domains)) { } } +else if (matchDomain(usa_conde_nast_domains)) { + if (window.location.pathname.endsWith('/amp')) { + amp_unhide_subscr_section('amp-ad, amp-embed, .ad'); + } else { + let paywall_bar = document.querySelector('.paywall-bar'); + removeDOMElement(paywall_bar); + } +} + else if (matchDomain(usa_craincomm_domains)) { let body_hidden = document.querySelector('body[class]'); if (body_hidden) diff --git a/custom/manifest.json b/custom/manifest.json index 228d2c1..2ca24ff 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -39,5 +39,5 @@ "webRequestBlocking", "" ], - "version": "2.5.5.3" + "version": "2.5.5.4" } diff --git a/custom/sites_custom.json b/custom/sites_custom.json index ab34c02..b92b9cf 100644 --- a/custom/sites_custom.json +++ b/custom/sites_custom.json @@ -212,11 +212,6 @@ "block_regex": "\\.tinypass\\.com\\/", "domain": "toledoblade.com" }, - "Voguebusiness.com": { - "allow_cookies": 1, - "domain": "voguebusiness.com", - "useragent": "googlebot" - }, "Wz.de": { "allow_cookies": 1, "domain": "wz.de", diff --git a/manifest.json b/manifest.json index be4731c..6a90658 100755 --- a/manifest.json +++ b/manifest.json @@ -83,6 +83,7 @@ "*://*.bloombergquint.com/*", "*://*.bnd.com/*", "*://*.bndestem.nl/*", + "*://*.bonappetit.com/*", "*://*.bordermail.com.au/*", "*://*.bostonglobe.com/*", "*://*.braunschweiger-zeitung.de/*", @@ -209,6 +210,7 @@ "*://*.globo.com/*", "*://*.goldcoastbulletin.com.au/*", "*://*.gooieneemlander.nl/*", + "*://*.gq.com/*", "*://*.griffithreview.com/*", "*://*.groene.nl/*", "*://*.grubstreet.com/*", @@ -542,6 +544,8 @@ "*://*.velonews.com/*", "*://*.venturebeat.com/*", "*://*.vn.nl/*", + "*://*.vogue.com/*", + "*://*.voguebusiness.com/*", "*://*.volkskrant.nl/*", "*://*.vosgesmatin.fr/*", "*://*.vulture.com/*", @@ -602,5 +606,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.5.5.3" + "version": "2.5.5.4" } diff --git a/sites.js b/sites.js index 0b687cb..8576457 100755 --- a/sites.js +++ b/sites.js @@ -236,6 +236,13 @@ var defaultSites = { "CommonWealth Magazine Taiwan (free articles only)": { domain: "cw.com.tw" }, + "Condé Nast magazines": { + domain: "###_usa_conde_nast", + group: ["bonappetit.com", "gq.com", "newyorker.com", "vanityfair.com", "vogue.com", "wired.com"], + remove_cookies_select_drop: ["pay_ent_smp"], + block_regex: "(journey\\.{domain}\\/build-.+\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-(ad|subscriptions)-.+\\.js)", + useragent: "googlebot" + }, "Correio da Manhã": { domain: "cmjornal.pt", allow_cookies: 1, @@ -1576,10 +1583,6 @@ var defaultSites = { allow_cookies: 1, block_regex: /(meter-svc\.nytimes\.com\/meter\.js|mwcm\.nyt\.com\/.+\.js)/ }, - "The New Yorker": { - domain: "newyorker.com", - group_rule: "###_gr_usa_conde_nast_domains" - }, "The Philadelphia Inquirer": { domain: "inquirer.com", allow_cookies: 1, @@ -1729,10 +1732,6 @@ var defaultSites = { allow_cookies: 1, block_regex: /\.qiota\.com\// }, - "Vanity Fair": { - domain: "vanityfair.com", - group_rule: "###_gr_usa_conde_nast_domains" - }, "Variety": { domain: "variety.com", allow_cookies: 1, @@ -1743,6 +1742,11 @@ var defaultSites = { allow_cookies: 1, block_regex: /\.wallkit\.net\/js\// }, + "Vogue Business": { + allow_cookies: 1, + domain: "voguebusiness.com", + useragent: "googlebot" + }, "Volkskrant": { domain: "volkskrant.nl", group_rule: "###_gr_nl_pg_domains" @@ -1767,10 +1771,6 @@ var defaultSites = { block_regex: /cdn\.ampproject\.org\/v\d\/amp-(ad|subscriptions)-.+\.js/, useragent: "googlebot" }, - "Wired": { - domain: "wired.com", - group_rule: "###_gr_usa_conde_nast_domains" - }, "World Politics Review": { domain: "worldpoliticsreview.com", allow_cookies: 1, @@ -1796,12 +1796,6 @@ var defaultSites = { remove_cookies_select_drop: ["TID_ID"], block_regex: "\\.{domain}\\/temptation\\/resolve" }, - "###_gr_usa_conde_nast_domains": { - group_rule_domains: ["newyorker.com", "vanityfair.com", "wired.com"], - remove_cookies_select_drop: ["pay_ent_smp"], - block_regex: "(journey\\.{domain}\\/build-.+\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-(ad|subscriptions)-.+\\.js)", - useragent: "googlebot" - }, "###_gr_usa_genomeweb_domains": { group_rule_domains: ["genomeweb.com", "360dx.com", "precisiononcologynews.com"], allow_cookies: 1, diff --git a/sites_updated.json b/sites_updated.json index a41e888..720a42a 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -21,6 +21,18 @@ "allow_cookies": 1, "block_regex": "cdn-au\\.piano\\.io\\/api\\/tinypass.+\\.js" }, + "Bon Appétit": { + "domain": "bonappetit.com", + "remove_cookies_select_drop": ["pay_ent_smp"], + "block_regex": "(journey\\.bonappetit\\.com\\/build-.+\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-(ad|subscriptions)-.+\\.js)", + "useragent": "googlebot" + }, + "GQ": { + "domain": "gq.com", + "remove_cookies_select_drop": ["pay_ent_smp"], + "block_regex": "(journey\\.gq\\.com\\/build-.+\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-(ad|subscriptions)-.+\\.js)", + "useragent": "googlebot" + }, "La Tercera": { "domain": "latercera.com", "allow_cookies": 1, @@ -66,5 +78,16 @@ "domain": "washingtonpost.com", "allow_cookies": 1, "block_regex": "\\.washingtonpost\\.com\\/tetro\\/evaluate" + }, + "Vogue USA": { + "domain": "vogue.com", + "remove_cookies_select_drop": ["pay_ent_smp"], + "block_regex": "(journey\\.vogue\\.com\\/build-.+\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-(ad|subscriptions)-.+\\.js)", + "useragent": "googlebot" + }, + "Voguebusiness.com": { + "allow_cookies": 1, + "domain": "voguebusiness.com", + "useragent": "googlebot" } }