From 87ffacb5c6d2eef0a9e83ee4eda23050a90f2691 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sun, 5 Dec 2021 18:37:11 +0100 Subject: [PATCH] Fix Boston Globe --- changelog.txt | 3 ++- contentScript.js | 11 ----------- sites.js | 2 +- sites_updated.json | 5 +++++ 4 files changed, 8 insertions(+), 13 deletions(-) diff --git a/changelog.txt b/changelog.txt index f0ec9e8c..bad88c9c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,10 +4,11 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Add Artnet Add Internazionale.it -Fix The Business of Fashion +Fix Boston Globe Fix El Mundo & Groupe EBRA (amp-iframe) Fix Gannett Group (permissions for listed sites) Fix Live Law (permission) +Fix The Business of Fashion Fix The New Yorker (amp) Fix TheTimes.co.uk (only link to archive.today) Remove Saechsische Zeitung (obsolete) diff --git a/contentScript.js b/contentScript.js index 124cc14a..0b1ce010 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1706,17 +1706,6 @@ else if (matchDomain('bloombergquint.com')) { } else if (matchDomain('bostonglobe.com')) { - let paywall = document.querySelector('div.meter-paywall, div.incognito-paywall'); - let fade = document.querySelector('div.fade'); - if (paywall || fade) { - removeDOMElement(paywall); - let body_hidden = document.querySelector('body[style]'); - if (body_hidden) - body_hidden.removeAttribute('style'); - let continue_button = document.querySelector('button.continue_button'); - if (continue_button) - continue_button.click(); - } let ads = document.querySelectorAll('div.arc_ad'); for (let ad of ads) ad.style = 'display:none'; diff --git a/sites.js b/sites.js index 9a1ca622..f26e8d48 100644 --- a/sites.js +++ b/sites.js @@ -1347,7 +1347,7 @@ var defaultSites = { "The Boston Globe": { domain: "bostonglobe.com", allow_cookies: 1, - block_regex: /\.blueconic\.net\// + block_regex: /(\.blueconic\.net\/|meter\.bostonglobe\.com\/js\/)/ }, "The Business Journals": { domain: "bizjournals.com", diff --git a/sites_updated.json b/sites_updated.json index 0f0820eb..9f6472fd 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -27,6 +27,11 @@ "allow_cookies": 1, "block_regex": "\\.internazionale\\.it\\/assets\\/js\\/main\\.\\d{2,}\\.js" }, + "The Boston Globe": { + "domain": "bostonglobe.com", + "allow_cookies": 1, + "block_regex": "(\\.blueconic\\.net\\/|meter\\.bostonglobe\\.com\\/js\\/)" + }, "The Business of Fashion": { "domain": "businessoffashion.com", "allow_cookies": 1,