From 4fd2afa39cd49f2a8710e8a3c079622c39ef9952 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sun, 8 Aug 2021 20:38:57 +0200 Subject: [PATCH] Add Study.com (no videos) --- README.md | 3 ++- background.js | 1 + changelog.txt | 1 + contentScript.js | 9 +++++++++ manifest.json | 1 + sites.js | 1 + 6 files changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index feed9c2..859d360 100755 --- a/README.md +++ b/README.md @@ -151,7 +151,8 @@ NHST Media Group sites like (opt-in to custom sites) [Quora](https://www.quora.com) - [Scribd](https://www.scribd.com) - [Slader](https://www.slader.com) - -[Statista](https://www.statista.com) +[Statista](https://www.statista.com) - +[Study.com (no videos)](https://study.com) ##### Magazines/Blogs [Apollo Magazine](https://www.apollo-magazine.com) - diff --git a/background.js b/background.js index 67b6971..9c24f04 100755 --- a/background.js +++ b/background.js @@ -143,6 +143,7 @@ var allow_cookies_default = [ 'startribune.com', 'stocknews.com', 'stratfor.com', + 'study.com', 'sudouest.fr', 'sueddeutsche.de', 'svz.de', diff --git a/changelog.txt b/changelog.txt index c7338df..a993c99 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Chrome Post-release Add Inc42 (India) +Add Study.com (no videos) Add The Business of Fashion Fix Bloomberg (quotes/blurred images) Fix San Diego Union-Tribune diff --git a/contentScript.js b/contentScript.js index 49f1141..0f8f733 100755 --- a/contentScript.js +++ b/contentScript.js @@ -2432,6 +2432,15 @@ else if (matchDomain('stratfor.com')) { hidden_image.setAttribute('src', hidden_image.getAttribute('data-src')); } +else if (matchDomain('study.com')) { + let faded_content = document.querySelector('div.faded-content'); + if (faded_content) + faded_content.removeAttribute('class'); + let div_hidden = document.querySelector('div.hidden[ng-non-bindable]'); + if (div_hidden) + div_hidden.removeAttribute('class'); +} + else if (matchDomain('techinasia.com')) { let paywall = document.querySelector('.paywall-content'); if (paywall) { diff --git a/manifest.json b/manifest.json index 554af72..d0431c4 100755 --- a/manifest.json +++ b/manifest.json @@ -408,6 +408,7 @@ "*://*.stcatharinesstandard.ca/*", "*://*.stocknews.com/*", "*://*.stratfor.com/*", + "*://*.study.com/*", "*://*.sudinfo.be/*", "*://*.sudouest.fr/*", "*://*.sueddeutsche.de/*", diff --git a/sites.js b/sites.js index 9fe8663..7c1f964 100755 --- a/sites.js +++ b/sites.js @@ -230,6 +230,7 @@ var defaultSites = "Statista": "statista.com", "Stock News": "stocknews.com", "Stratfor": "stratfor.com", + "Study.com (no videos)": "study.com", "Sud Ouest": "sudouest.fr", "Süddeutsche Zeitung": "sueddeutsche.de", "Tech in Asia": "techinasia.com",