From 52cb539c249bb4e41810d090f3bab0b89e666d66 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Mon, 3 May 2021 22:13:22 +0200 Subject: [PATCH] Add The Economic Times (text/India) --- README.md | 1 + background.js | 2 ++ changelog.txt | 1 + contentScript.js | 11 +++++++++++ manifest.json | 3 ++- sites.js | 1 + 6 files changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5ab2e01..cc16d14 100644 --- a/README.md +++ b/README.md @@ -523,6 +523,7 @@ Grupo Vocento (ABC) regional sites like [Bloomberg Quint](https://www.bloombergquint.com)* - [Business Standard](https://www.business-standard.com) - [LiveMint](https://www.livemint.com) - +[The Economic Times (ET Prime)](https://economictimes.indiatimes.com) - [The Hindu](https://www.thehindu.com) - [The Hindu BusinessLine](https://www.thehindubusinessline.com) diff --git a/background.js b/background.js index c69fa49..a929301 100644 --- a/background.js +++ b/background.js @@ -54,6 +54,7 @@ var allow_cookies_default = [ 'di.se', 'dn.se', 'dvhn.nl', + 'economictimes.indiatimes.com', 'editorialedomani.it', 'elconfidencial.com', 'elespanol.com', @@ -219,6 +220,7 @@ var use_google_bot_default = [ 'nouvelobs.com', 'nzz.ch', 'piqd.de', + 'economictimes.indiatimes.com', 'quora.com', 'republic.ru', 'rhein-zeitung.de', diff --git a/changelog.txt b/changelog.txt index 36734d7..88a51d0 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Add The Economic Times (text/India) * v2.1.9.0 (2021-05-02) Add GenomeWeb, 360Dx & Precision Oncology News diff --git a/contentScript.js b/contentScript.js index b572c8b..b6c5204 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1702,6 +1702,17 @@ else if (matchDomain('discovermagazine.com')) { }, 1000); // Delay (in milliseconds) } +else if (matchDomain('economictimes.indiatimes.com')) { + let paywall = document.querySelector('section.prime_paywall'); + if (paywall) { + removeDOMElement(paywall); + let content = document.querySelector('div.content1, div.artText'); + let full_text = document.querySelector('div.paywall.p1'); + if (content && full_text) + content.innerText = full_text.innerText; + } +} + else if (matchDomain('economist.com')) { document.addEventListener('DOMContentLoaded', () => { let subscribe = document.querySelector('.subscription-proposition'); diff --git a/manifest.json b/manifest.json index 925a179..001efc1 100644 --- a/manifest.json +++ b/manifest.json @@ -129,6 +129,7 @@ "*://*.dn.se/*", "*://*.dna.fr/*", "*://*.dvhn.nl/*", + "*://*.economictimes.indiatimes.com/*", "*://*.economist.com/*", "*://*.ed.nl/*", "*://*.editorialedomani.it/*", @@ -508,5 +509,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.1.9.0" + "version": "2.1.9.1" } \ No newline at end of file diff --git a/sites.js b/sites.js index 8da5bb8..7d6dc2c 100644 --- a/sites.js +++ b/sites.js @@ -245,6 +245,7 @@ var defaultSites = "The Dallas Morning News": "dallasnews.com", "The Denver Post": "denverpost.com", "The Diplomat": "thediplomat.com", + "The Economic Times (ET Prime)": "economictimes.indiatimes.com", "The Economist": "economist.com", "The Globe and Mail": "theglobeandmail.com", "The Hill Times": "hilltimes.com",