From bde827ec73e77353e69e1f9515661d57763373de Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Thu, 3 Aug 2023 12:24:17 +0200 Subject: [PATCH] Fix EUobserver (css) --- changelog.txt | 1 + contentScript.js | 6 ++++++ custom/manifest.json | 2 +- manifest.json | 2 +- sites.js | 3 +-- sites_updated.json | 37 ++++--------------------------------- 6 files changed, 14 insertions(+), 37 deletions(-) diff --git a/changelog.txt b/changelog.txt index c86d46a..84c1e93 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal Post-release Add Crikey.com.au +Fix EUobserver (css) Fix Grupo Vocento (limit amp-redirect) Fix The Economic Times (update mobile redirect) Update custom sites (add_ext_link: Google webcache) diff --git a/contentScript.js b/contentScript.js index e06d819..c5cb5ca 100644 --- a/contentScript.js +++ b/contentScript.js @@ -3555,6 +3555,12 @@ else if (matchDomain('espn.com')) { } } +else if (matchDomain('euobserver.com')) { + let div_hidden = document.querySelector('div.membership-upsell.show'); + if (div_hidden) + div_hidden.classList.remove('show'); +} + else if (matchDomain('euromoney.com')) { let url = window.location.href; let paywall = document.querySelector('div.paywall'); diff --git a/custom/manifest.json b/custom/manifest.json index 3a5bfb8..e65b470 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.2.7.3" + "version": "3.2.7.4" } diff --git a/manifest.json b/manifest.json index 84b7c2a..a1e4725 100644 --- a/manifest.json +++ b/manifest.json @@ -772,5 +772,5 @@ "*://*.wyleex.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.2.7.3" + "version": "3.2.7.4" } diff --git a/sites.js b/sites.js index c2b4aa9..8f1ff77 100644 --- a/sites.js +++ b/sites.js @@ -562,8 +562,7 @@ var defaultSites = { }, "EUobserver": { domain: "euobserver.com", - allow_cookies: 1, - useragent: "googlebot" + allow_cookies: 1 }, "Eureka Report": { domain: "eurekareport.com.au", diff --git a/sites_updated.json b/sites_updated.json index b060eb2..e3564cd 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -45,12 +45,6 @@ "ld_json": "div.subscribe-page|div.storycontent", "upd_version": "3.2.6.0" }, - "Correio da Manhã": { - "domain": "cmjornal.pt", - "allow_cookies": 1, - "amp_unhide": 1, - "upd_version": "3.2.4.2" - }, "Crain Communications": { "domain": "###_usa_craincomm", "group": [ @@ -78,11 +72,11 @@ "excluded_domains": ["bizjournals.com"], "upd_version": "3.2.6.6" }, - "Grupo Abril": { - "domain": "abril.com.br", + "EUobserver": { + "domain": "euobserver.com", "allow_cookies": 1, - "block_js_inline": "\\.abril\\.com\\.br\\/.+\\/(\\w+\\-+){3,}", - "upd_version": "3.2.4.3" + "cs_code": "[{\"cond\":\"div.membership-upsell.show\", \"rm_class\":\"show\"}]", + "upd_version": "3.2.7.4" }, "Haaretz English": { "domain": "haaretz.com", @@ -108,21 +102,6 @@ "ld_json": "div.offerlist-wrapper|div.article-body|1", "upd_version": "3.2.6.0" }, - "Record.pt": { - "domain": "record.pt", - "allow_cookies": 1, - "block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js", - "amp_unhide": 1, - "upd_version": "3.2.4.2" - }, - "Sábado (not video)": { - "domain": "sabado.pt", - "allow_cookies": 1, - "block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js", - "amp_redirect": ".bloco_bloqueio", - "amp_unhide": 1, - "new_site": 1 - }, "Schwarzwälder Bote": { "domain": "schwarzwaelder-bote.de", "allow_cookies": 1, @@ -145,14 +124,6 @@ "cs_code": "[{\"cond\":\"div.mod-paywall\", \"rm_elem\":1}]", "new_site": 1 }, - "Stuttgarter Zeitung": { - "domain": "stuttgarter-zeitung.de", - "allow_cookies": 1, - "block_regex": "\\.piano\\.io", - "useragent": "googlebot", - "cs_code": "[{\"cond\":\"div.mod-paywall\", \"rm_elem\":1}]", - "new_site": 1 - }, "Telegraaf": { "domain": "telegraaf.nl", "allow_cookies": 1,