From a2251ff5e52802782a20e0abcfd427d5650e754e Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sun, 26 Jun 2022 10:48:33 +0200 Subject: [PATCH] Add Initium Media --- README.md | 1 + changelog.txt | 1 + contentScript.js | 5 +++++ manifest.json | 3 ++- sites.js | 5 +++++ sites_updated.json | 5 +++++ 6 files changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cd1b38b..63f2db6 100644 --- a/README.md +++ b/README.md @@ -696,6 +696,7 @@ Grouped in options:\ [Asia Times](https://asiatimes.com) - [CommonWealth Magazine Taiwan](https://www.cw.com.tw)* - [Harvard Business Review China](https://www.hbrchina.org) - +[Initium Media](https://theinitium.com) - [Mainichi Shimbun](https://mainichi.jp) - [Nikkei Asian Review](https://asia.nikkei.com) - [South China Morning Post](https://www.scmp.com) - diff --git a/changelog.txt b/changelog.txt index 67b2f03..aa7fd8e 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Add Artforum +Add Initium Media Add L'Avenir (Belgium) Fix Business Standard Fix El Mercurio diff --git a/contentScript.js b/contentScript.js index 856c13b..fc00e00 100644 --- a/contentScript.js +++ b/contentScript.js @@ -3661,6 +3661,11 @@ else if (matchDomain(['thehindu.com', 'thehindubusinessline.com'])) { document.dispatchEvent(new CustomEvent('bpc_event', {})); } +else if (matchDomain('theinitium.com')) { + let paywall = document.querySelector('section.c-wall'); + removeDOMElement(paywall); +} + else if (matchDomain('thelawyersdaily.ca')) { let modal = document.querySelectorAll('#NewsletterModal, .modal-backdrop'); removeDOMElement(...modal); diff --git a/manifest.json b/manifest.json index 8eed7b4..a1b1156 100644 --- a/manifest.json +++ b/manifest.json @@ -559,6 +559,7 @@ "*://*.theglobeandmail.com/*", "*://*.thehindu.com/*", "*://*.thehindubusinessline.com/*", + "*://*.theinitium.com/*", "*://*.theintercept.com/*", "*://*.thelawyersdaily.ca/*", "*://*.themarker.com/*", @@ -686,5 +687,5 @@ "*://*.wsj.net/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.7.2.5" + "version": "2.7.2.6" } diff --git a/sites.js b/sites.js index fba6344..2d30429 100644 --- a/sites.js +++ b/sites.js @@ -826,6 +826,11 @@ var defaultSites = { allow_cookies: 1, block_regex: /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/ }, + "Initium Media": { + domain: "theinitium.com", + allow_cookies: 1, + useragent: "googlebot" + }, "Inkl": { domain: "inkl.com" }, diff --git a/sites_updated.json b/sites_updated.json index 621951e..e88a115 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -2,6 +2,11 @@ "Artforum": { "domain": "artforum.com" }, + "Initium Media": { + "domain": "theinitium.com", + "allow_cookies": 1, + "useragent": "googlebot" + }, "L'Avenir": { "domain": "lavenir.net", "allow_cookies": 1,