From c5184ebf0ee030336f060c39155831ab55132834 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Thu, 29 Jun 2023 15:58:05 +0200 Subject: [PATCH] Remove Time Magazine (no paywall) --- README.md | 3 +-- changelog.txt | 1 + contentScript.js | 8 -------- manifest.json | 1 - sites.js | 5 ----- 5 files changed, 2 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 199fb25e..4cc6c6c1 100644 --- a/README.md +++ b/README.md @@ -82,8 +82,7 @@ _* free articles only._ [Newsweek](https://www.newsweek.com) - [Reuters](https://www.reuters.com) - [The New York Times](https://www.nytimes.com) - -[The Washington Post](https://www.washingtonpost.com) - -[Time Magazine](https://time.com) +[The Washington Post](https://www.washingtonpost.com) ##### Business [Adweek](https://www.adweek.com) - diff --git a/changelog.txt b/changelog.txt index f5cf9b0e..d2a17750 100644 --- a/changelog.txt +++ b/changelog.txt @@ -7,6 +7,7 @@ Add Groupe ESH Medias (ch) Add Zeit.de (link to archive.is) Remove LePoint.fr (fix obsolete) Remove Stratfor (fix obsolete) +Remove Time Magazine (no paywall) Fix Beobachter.ch & Handelszeitung.ch Fix Foreign Policy (Insider) Fix Telegraaf.nl (images) diff --git a/contentScript.js b/contentScript.js index 911e4457..2c8c3f49 100644 --- a/contentScript.js +++ b/contentScript.js @@ -4728,14 +4728,6 @@ else if (matchDomain('thewrap.com')) { paywall.classList.remove('wrappro-paywall'); } -else if (matchDomain('time.com')) { - let body = document.querySelector('body'); - if (body && !matchDomain('api.time.com')) - body.setAttribute('style', 'position:relative !important;'); - let ads = document.querySelectorAll('div[id*="inline-ad-"]'); - removeDOMElement(...ads); -} - else if (matchDomain('timeshighereducation.com')) { let paywall_cta = document.querySelector('div.paywall-cta'); if (paywall_cta) { diff --git a/manifest.json b/manifest.json index 935f7ba8..1bd73b50 100644 --- a/manifest.json +++ b/manifest.json @@ -652,7 +652,6 @@ "*://*.thewrap.com/*", "*://*.thueringer-allgemeine.de/*", "*://*.tijd.be/*", - "*://*.time.com/*", "*://*.timeshighereducation.com/*", "*://*.timesofindia.com/*", "*://*.timesofindia.indiatimes.com/*", diff --git a/sites.js b/sites.js index d33c261a..63d19b68 100644 --- a/sites.js +++ b/sites.js @@ -2235,11 +2235,6 @@ var defaultSites = { allow_cookies: 1, block_regex: /\.wallkit\.net\/js\// }, - "Time Magazine": { - domain: "time.com", - allow_cookies: 1, - block_regex: /(\/time\.com\/dist\/meter-wall-client-js\..+\.js|\.zephr\.com\/zephr-browser\/|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/ - }, "Times Higher Education": { domain: "timeshighereducation.com", allow_cookies: 1,