diff --git a/changelog.txt b/changelog.txt index aa9ea87d..cb2889e2 100644 --- a/changelog.txt +++ b/changelog.txt @@ -6,6 +6,7 @@ Add Capital Gazette (local USA) Add Groupe Nice-Matin (France) Add Il Foglio (Italy) Fix group Tribune Publishing Company (js) +Fix The New Statesman (Evolok) Update popup (permission to clear cookies) * v2.4.9.0 (2021-12-26) diff --git a/contentScript.js b/contentScript.js index 7a0a23c1..b88f2af4 100644 --- a/contentScript.js +++ b/contentScript.js @@ -2591,11 +2591,6 @@ else if (matchDomain('newleftreview.org')) { }, 500); // Delay (in milliseconds) } -else if (matchDomain('newstatesman.com')) { - let tns_modal_wrapper = document.querySelector('.tns-modal-wrapper'); - removeDOMElement(tns_modal_wrapper); -} - else if (matchDomain('newrepublic.com')) { let pw_popups = document.querySelector('div#pwPopups'); let ads = document.querySelectorAll('.ad-unit, .ad-container'); diff --git a/sites.js b/sites.js index 1e1fddf6..d7a459e7 100644 --- a/sites.js +++ b/sites.js @@ -1533,7 +1533,8 @@ var defaultSites = { }, "The New Statesman": { domain: "newstatesman.com", - remove_cookies_select_hold: ["STYXKEY_nsversion"] + allow_cookies: 1, + block_regex: /\.newstatesman\.com\/.+\/nsmg-evolok-paywall\/.+\.js/ }, "The New York Review of Books": { domain: "nybooks.com", diff --git a/sites_updated.json b/sites_updated.json index 4193a0ef..d4a6b550 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -43,6 +43,11 @@ "block_regex": "\\/thediplomat\\.com\\/.+\\/js\\/angular-cookies\\.min\\.js", "remove_cookies_select_drop": ["dpl-pw"] }, + "The New Statesman": { + "domain": "newstatesman.com", + "allow_cookies": 1, + "block_regex": "\\.newstatesman\\.com\\/.+\\/nsmg-evolok-paywall\\/.+\\.js" + }, "Tribune Publishing Company": { "domain": "###_usa_tribune", "group": [