From cbbedafa7cd7aeb63e05ace958c1fd1562b5734e Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Fri, 5 May 2023 07:26:10 +0200 Subject: [PATCH] Fix Sportico (amp) --- changelog.txt | 1 + contentScript.js | 5 +++++ custom/manifest.json | 2 +- manifest.json | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index 52c9b1b3..96485aed 100644 --- a/changelog.txt +++ b/changelog.txt @@ -8,6 +8,7 @@ Add Arizent sites (opt-in to custom sites) Remove Puck.news (fix obsolete) Fix Adweek (premium) Fix Modern Healthcare (sponsored) +Fix Sportico (amp) * v3.1.6.0 (2023-04-30) Remove Zeit.de (fix obsolete) diff --git a/contentScript.js b/contentScript.js index 981d86c7..d40cbcaf 100644 --- a/contentScript.js +++ b/contentScript.js @@ -4069,6 +4069,11 @@ else if (matchDomain('spglobal.com')) { html_noscroll.removeAttribute('class'); } +else if (matchDomain('sportico.com')) { + if (window.location.pathname.endsWith('/amp/')) + amp_unhide_subscr_section('amp-ad, amp-embed', false); +} + else if (matchDomain('staradvertiser.com')) { if (window.location.pathname.endsWith('/amp/')) { amp_unhide_subscr_section(); diff --git a/custom/manifest.json b/custom/manifest.json index d9019812..07bc040a 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.1.6.4" + "version": "3.1.6.5" } diff --git a/manifest.json b/manifest.json index e176cd9e..ae8a6d53 100644 --- a/manifest.json +++ b/manifest.json @@ -755,5 +755,5 @@ "*://html.onlineviewer.net/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.1.6.4" + "version": "3.1.6.5" }