From 2e2c85e90c298ce1b17503bb7be461f175535a81 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Thu, 7 Oct 2021 19:56:23 +0200 Subject: [PATCH] Fix Chronicle of Higher Education --- changelog.txt | 1 + contentScript.js | 8 ++++++++ manifest.json | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index 74992278..b798ec74 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Fix Chronicle of Higher Education Fix El Pais (amp/videos) Fix Times Higher Education Fix WSJ (Chinese) diff --git a/contentScript.js b/contentScript.js index a381058f..e525cab4 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1803,6 +1803,14 @@ else if (matchDomain('cen.acs.org')) { }); } +else if (matchDomain('chronicle.com')) { + let preview = document.querySelector('div[data-content-summary]'); + removeDOMElement(preview); + let article_hidden = document.querySelector('div[data-content-body]'); + if (article_hidden) + article_hidden.removeAttribute('data-content-body'); +} + else if (matchDomain('csmonitor.com')) { let paywall = document.querySelector('div.paywall'); removeDOMElement(paywall); diff --git a/manifest.json b/manifest.json index 706c53cd..2e722a98 100644 --- a/manifest.json +++ b/manifest.json @@ -561,5 +561,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.3.8.2" + "version": "2.3.8.3" } \ No newline at end of file