From 3db6d921c76592371832dde8b0fb052a3db38e25 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Fri, 29 Mar 2024 12:05:20 +0100 Subject: [PATCH] Add American Purpose --- README.md | 1 + changelog.txt | 1 + contentScript_once.js | 2 +- custom/manifest.json | 2 +- manifest.json | 3 ++- sites.js | 5 +++++ sites_updated.json | 6 ++++++ 7 files changed, 17 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 69e59cd..fe9e2c0 100644 --- a/README.md +++ b/README.md @@ -193,6 +193,7 @@ Grouped in options:\ [Towards Data Science](https://towardsdatascience.com) [America's Test Kitchen](https://www.americastestkitchen.com) - +[American Purpose](https://www.americanpurpose.com) - [Apollo Magazine](https://www.apollo-magazine.com) - [Artforum](https://www.artforum.com) - [Artnet](https://www.artnet.com) - diff --git a/changelog.txt b/changelog.txt index fd43ce1..02073b4 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases Post-release +Add American Purpose Add Ringier Axel Springer Polska Remove Hbvl.be (fix obsolete) Fix LeMonde.fr (bug; update rules) diff --git a/contentScript_once.js b/contentScript_once.js index 832c323..cb9ce02 100644 --- a/contentScript_once.js +++ b/contentScript_once.js @@ -37,7 +37,7 @@ window.setTimeout(function () { group = 'medium.com'; else if (document.querySelector('head > meta[property="og:image"][content*="beehiiv"]')) group = '###_beehiiv';// no fix - else if (document.querySelector('head > meta[name="generator"][content^="Ghost"]')) + else if (document.querySelector('head > meta[name="generator"][content^="Ghost"]') && !document.querySelector('script[src^="https://steadyhq.com/"]')) group = '###_ghost';// no fix else if (document.querySelector('head > link[href*="/leaky-paywall"], script[src*="/leaky-paywall"], div[id^="issuem-leaky-paywall-"]')) group = '###_wp_leaky_paywall'; diff --git a/custom/manifest.json b/custom/manifest.json index a2197c4..e9d273a 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.6.1.4" + "version": "3.6.1.5" } diff --git a/manifest.json b/manifest.json index f66d0e3..7d191fc 100644 --- a/manifest.json +++ b/manifest.json @@ -73,6 +73,7 @@ "*://*.ambito.com/*", "*://*.americanaffairsjournal.org/*", "*://*.americanbanker.com/*", + "*://*.americanpurpose.com/*", "*://*.americastestkitchen.com/*", "*://*.apollo-magazine.com/*", "*://*.ara.cat/*", @@ -866,5 +867,5 @@ "*://archive.vn/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.6.1.4" + "version": "3.6.1.5" } diff --git a/sites.js b/sites.js index a4c68e6..20747f8 100644 --- a/sites.js +++ b/sites.js @@ -86,6 +86,11 @@ var defaultSites = { allow_cookies: 1, block_regex: /\.tinypass\.com\// }, + "American Purpose": { + domain: "americanpurpose.com", + allow_cookies: 1, + block_regex: /\/steadyhq\.com\// + }, "Apollo Magazine": { domain: "apollo-magazine.com" }, diff --git a/sites_updated.json b/sites_updated.json index cd36072..f660c67 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -1,4 +1,10 @@ { + "American Purpose": { + "domain": "americanpurpose.com", + "allow_cookies": 1, + "block_regex": "\\/steadyhq\\.com", + "upd_version": "3.6.1.5" + }, "Autosport (free articles only)": { "domain": "autosport.com", "allow_cookies": 1,