From 8b50aad251b6720730f17d233ed6ccf6175f90df Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Tue, 21 Dec 2021 17:54:33 +0100 Subject: [PATCH] Fix The Diplomat (cookies) --- README.md | 2 +- changelog.txt | 1 + sites.js | 4 +++- sites_updated.json | 5 +++++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 028363a..67e911a 100644 --- a/README.md +++ b/README.md @@ -596,7 +596,7 @@ Grouped in options:\ [South China Morning Post](https://www.scmp.com) - [Southern Weekly](https://www.infzm.com) - [Tech in Asia](https://www.techinasia.com) - -[The Diplomat](https://www.thediplomat.com) - +[The Diplomat](https://thediplomat.com) - [The Japan Times](https://www.japantimes.co.jp) #### India diff --git a/changelog.txt b/changelog.txt index 4935c7d..eec7f41 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Fix The Diplomat (cookies) Fix Times of India (amp) Update custom sites (random ip) diff --git a/sites.js b/sites.js index 5a2c4ef..666ce02 100644 --- a/sites.js +++ b/sites.js @@ -1423,7 +1423,9 @@ var defaultSites = { block_regex: /(\.blueconic\.net\/|js\.matheranalytics\.com\/|cdn\.ampproject\.org\/v\d\/amp-((sticky-)?ad|subscriptions)-.+\.js)/ }, "The Diplomat": { - domain: "thediplomat.com" + domain: "thediplomat.com", + block_regex: /\/thediplomat\.com\/.+\/js\/angular-cookies\.min\.js/, + remove_cookies_select_drop: ["dpl-pw"] }, "The Economic Times (ET Prime)": { domain: "###_economictimes", diff --git a/sites_updated.json b/sites_updated.json index ba39813..5bdeac8 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -25,6 +25,11 @@ "domain": "expressnews.com", "block_regex": "(\\.blueconic\\.net\\/|cdn\\.ampproject\\.org\\/v\\d\/amp-(access|(sticky-)?ad)-.+\\.js)" }, + "The Diplomat": { + "domain": "thediplomat.com", + "block_regex": "\\/thediplomat\\.com\\/.+\\/js\\/angular-cookies\\.min\\.js", + "remove_cookies_select_drop": ["dpl-pw"] + }, "The Indian Express": { "domain": "indianexpress.com", "allow_cookies": 1,