From 57a425a41dd7e4c7e752d947528f9d15d015d730 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Fri, 4 Dec 2020 16:16:57 +0100 Subject: [PATCH] Fix-update Harper's Magazine --- background.js | 2 +- changelog.txt | 1 + contentScript.js | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/background.js b/background.js index c493271..3810d97 100755 --- a/background.js +++ b/background.js @@ -4,7 +4,7 @@ var ext_api = (typeof browser === 'object') ? browser : chrome; var ext_name = ext_api.runtime.getManifest().name; -const cs_limit_except = ['la-croix.com', 'lescienze.it']; +const cs_limit_except = ['harpers.org', 'la-croix.com', 'lescienze.it']; var currentTabUrl = ''; var csDone = false; diff --git a/changelog.txt b/changelog.txt index 712283d..17d579d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -7,6 +7,7 @@ Add Esprit (France) Add The Spectator USA Remove Aftonbladet.se (obsolete) Fix-update El Mercurio & La Segunda (mobile) +Fix-update Harper's Magazine Fix-update Mexico News Daily Fix-update Telegraph.co.uk (amp pages) Fix-update The New Yorker (embed) diff --git a/contentScript.js b/contentScript.js index 09d4215..4bc0c44 100755 --- a/contentScript.js +++ b/contentScript.js @@ -1124,6 +1124,9 @@ else if (matchDomain("theatlantic.com")) { else if (matchDomain("harpers.org")) { let overlay = document.querySelector('div[id^="pum-"]'); removeDOMElement(overlay); + let entry_content = document.querySelectorAll('.entry-content'); + for (let elem of entry_content) + elem.setAttribute('style', 'display: block !important'); } else if (matchDomain("irishtimes.com")) {