From 5bb0036a3d5b7272cd13a6bf4b2a4369ec6fb1fb Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Thu, 20 Jan 2022 18:55:47 +0100 Subject: [PATCH] Add Outside --- README.md | 1 + changelog.txt | 1 + contentScript.js | 8 ++++---- manifest.json | 3 ++- sites.js | 5 +++++ 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 835ed0f6..bbde21d7 100644 --- a/README.md +++ b/README.md @@ -152,6 +152,7 @@ Grouped in options:\ [First Things](https://www.firstthings.com) - [Medium](https://www.medium.com/topics) (for custom domains enable custom sites) - [National Review](https://www.nationalreview.com) - +[Outside](https://www.outsideonline.com) - [Rolling Stone](https://www.rollingstone.com) - [Slate](https://slate.com) - [SofRep](https://sofrep.com) - diff --git a/changelog.txt b/changelog.txt index eac755e3..75ecc73b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Add Huffingtonpost.it +Add Outside Fix Asia Times Fix Challenges.fr Fix Clarin diff --git a/contentScript.js b/contentScript.js index fd5df2c6..d29320c5 100644 --- a/contentScript.js +++ b/contentScript.js @@ -3198,12 +3198,12 @@ else if (matchDomain('usatoday.com')) { } } -else if (matchDomain('velonews.com')) { +else if (matchDomain(['velonews.com', 'outsideonline.com'])) { let paywall = document.querySelector('div.o-membership-overlay'); if (paywall) { - let is_gated = document.querySelector('.is-gated'); - if (is_gated) - is_gated.classList.remove('is-gated'); + let is_gated = document.querySelectorAll('[class*="is-gated"]'); + for (let elem of is_gated) + removeClassesByPrefix(elem, 'is-gated'); removeDOMElement(paywall); } } diff --git a/manifest.json b/manifest.json index f480e9d8..f147626f 100644 --- a/manifest.json +++ b/manifest.json @@ -407,6 +407,7 @@ "*://*.orlandosentinel.com/*", "*://*.ostsee-zeitung.de/*", "*://*.otz.de/*", + "*://*.outsideonline.com/*", "*://*.paloaltoonline.com/*", "*://*.paris-normandie.fr/*", "*://*.parismatch.com/*", @@ -602,5 +603,5 @@ "*://*.wsj.net/*", "*://*.zephr.com/*" ], - "version": "2.5.2.4" + "version": "2.5.2.5" } diff --git a/sites.js b/sites.js index 5594ab0d..40f27e5f 100644 --- a/sites.js +++ b/sites.js @@ -1180,6 +1180,11 @@ var defaultSites = { allow_cookies: 1, block_regex: /(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-((sticky-)?ad|subscriptions)-.+\.js)/ }, + "Outside": { + domain: "outsideonline.com", + allow_cookies: 1, + block_regex: /\.outsideonline\.com\/.+\/scripts\/contentGate.+\.js/ + }, "Palo Alto Online": { domain: "paloaltoonline.com" },