Add Study.com (only lessons; no videos)

This commit is contained in:
magnolia1234 2024-01-28 10:55:09 +01:00
parent aae747dbbf
commit d17fcdb3c9
9 changed files with 54 additions and 9 deletions

View file

@ -179,7 +179,8 @@ Grouped in options:\
[Quora](https://www.quora.com) -
[SlideShare](https://www.slideshare.net) -
[Statista](https://www.statista.com) -
[StuDocu](https://www.studocu.com)
[StuDocu](https://www.studocu.com) -
[Study.com (only lessons; no videos)](https://study.com)
###### Sports
[ESPN USA](https://www.espn.com) -

View file

@ -40,6 +40,7 @@ var restrictions = {
'quora.com': /^((?!quora\.com\/search\?q=).)*$/,
'seekingalpha.com': /\/seekingalpha\.com($|\/($|(amp\/)?(article|news)\/|samw\/))/,
'statista.com': /^((?!\.statista\.com\/study\/).)*$/,
'study.com': /\/study\.com\/.+\/lesson\//,
'tagesspiegel.de': /^((?!\/(background|checkpoint)\.tagesspiegel\.de\/).)*$/,
'techinasia.com': /\.techinasia\.com\/.+/,
'thetimes.co.uk': /^((?!epaper\.thetimes\.co\.uk).)*$/,
@ -1504,7 +1505,7 @@ ext_api.runtime.onMessage.addListener(function (message, sender) {
let custom_domain = message.data.domain;
let group = message.data.group;
if (group) {
let nofix_groups = ['###_ch_tamedia', '###_fi_alma_talent', '###_it_citynews', '###_nl_vmnmedia', '###_substack_custom', '###_uk_delinian'];
let nofix_groups = ['###_fi_alma_talent', '###_it_citynews', '###_nl_vmnmedia', '###_substack_custom', '###_uk_delinian'];
if (!custom_flex_domains.includes(custom_domain)) {
if (!nofix_groups.includes(group)) {
if (custom_flex[group])

View file

@ -5,6 +5,7 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal
Post-release
Add El Nuevo Herald (McClatchy Group)
Add Newsweek.pl (fetch from archive.is)
Add Study.com (only lessons; no videos)
Remove Abendblatt.de (Funke; fix obsolete)
Fix Groupe Capitales Medias (identify sites)
Fix Grupo Abril (js)
@ -26,7 +27,7 @@ Fix Hearst magazines (js)
Fix Independent.co.uk (premium images)
Fix The (New Orleans) Advocate (gambit)
Fix Times Higher Education (books)
Fix Zeit.de (bug; update rules)
Fix Zeit.de (bug)
Maintenance check update signed (self-hosted)
* v3.5.1.0 (2024-01-14)

View file

@ -1393,6 +1393,8 @@ else if (matchDomain(de_lv_domains)) {
else if (matchDomain(de_funke_medien_domains)) {
sessionStorage.setItem('deobfuscate', 'true');
let ads = document.querySelectorAll('div.ad');
hideDOMElement(...ads);
}
else if (matchDomain(de_madsack_domains) || document.querySelector('head > link[href*=".rndtech.de/"]')) {
@ -3323,7 +3325,7 @@ else if (matchDomain('globo.com')) {
} else if (window.location.pathname.includes('/amp/'))
ampToHtml();
if (!window.location.pathname.includes('/amp/')) {
let ads = document.querySelectorAll('div[id^="ad-container"], div.content-ads, div[class^="block__advertising"], div#pub-in-text-wrapper');
let ads = document.querySelectorAll('div[id^="ad-container"], div.content-ads, div[class^="block__advertising"], div#pub-in-text-wrapper, div[id^="taboola-"]');
hideDOMElement(...ads);
}
}
@ -4728,6 +4730,17 @@ else if (matchDomain('studocu.com')) {
}, 1000);
}
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');
let banners = document.querySelectorAll('div.article-cutoff-div');
removeDOMElement(...banners);
}
else if (matchDomain('swarajyamag.com')) {
let paywall = document.querySelector('div#story-notification');
if (paywall) {
@ -5919,8 +5932,10 @@ function replaceDomElementExtSrc(url, url_src, html, proxy, base64, selector, te
if (url.startsWith('https://archive.')) {
let arch_dom = (selector_archive !== selector) ? (article_new.querySelector(selector_archive) || document.querySelector(selector_archive)) : article_new;
if (arch_dom) {
arch_dom.firstChild.before(archiveLink_renew(window.location.href));
arch_dom.firstChild.before(archiveLink(window.location.href, 'BPC > Try when layout issues (no need to report issue for external site):\r\n'));
if (arch_dom.firstChild)
arch_dom = arch_dom.firstChild;
arch_dom.before(archiveLink_renew(window.location.href));
arch_dom.before(archiveLink(window.location.href, 'BPC > Try when layout issues (no need to report issue for external site):\r\n'));
}
let targets = article_new.querySelectorAll('a[target="_blank"][href^="' + window.location.origin + '"]');
for (let elem of targets)

View file

@ -73,7 +73,7 @@ window.setTimeout(function () {
else if (document.querySelector('head > link[href*="/assets.static-chmedia.ch/"]'))
group = 'nzz.ch';
else if (document.querySelector('head > link[href*=".tamedia.ch/"]'))
group = '###_ch_tamedia';// no fix
group = '###_ch_tamedia';// custom
} else if (hostname.match(/\.(es|cat)$/) || matchDomain(['diariocordoba.com', 'elperiodicodearagon.com', 'elperiodicoextremadura.com', 'elperiodicomediterraneo.com', 'emporda.info'])) {
if (document.querySelector('head > link[href*="/estaticos-cdn."]'))
group = '###_es_epiberica';

View file

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.5.2.5"
"version": "3.5.2.6"
}

View file

@ -556,6 +556,11 @@
"Physicsworld.com": {
"domain": "physicsworld.com"
},
"Piratewires.com (refresh)": {
"allow_cookies": 1,
"cs_code": "[{\"cond\":\"div[class*='article_articleRestricted_']\", \"rm_attrib\":\"class\"}, {\"cond\":\"div[class^='fixedOverlay']\", \"rm_elem\":1}]",
"domain": "piratewires.com"
},
"Portfolio.hu": {
"add_ext_link": "section.paywall|article",
"add_ext_link_type": "archive.is",
@ -690,6 +695,12 @@
"block_regex": "\\.tinypass\\.com",
"domain": "supchina.com"
},
"Tamedia.ch (refresh)": {
"add_ext_link": "div#piano-premium|p[class^='ArticleParagraph_root_']",
"add_ext_link_type": "google_search_tool",
"allow_cookies": 1,
"domain": "###_ch_tamedia"
},
"Taxscan.in": {
"allow_cookies": 1,
"domain": "taxscan.in",
@ -758,6 +769,12 @@
"cs_code": "[{\"cond\":\"div.access-message\", \"rm_elem\":1, \"elems\":[{\"cond\":\"div.hide.paywall-content\", \"rm_attrib\":\"class\"}]}]",
"domain": "thefederal.com"
},
"Theloadstar.com": {
"allow_cookies": 1,
"cs_code": "[{\"cond\":\"div.post-info\", \"elems\":[{\"cond\":\"article>p\", \"rm_elem\":1}]}]",
"domain": "theloadstar.com",
"ld_json_url": "div#register_wrapper,div[id$=\"_req_container\"]|article|1|1"
},
"Themonthly.com.au": {
"domain": "themonthly.com.au"
},
@ -766,6 +783,11 @@
"block_regex": "\\.tinypass\\.com",
"domain": "thenational.scot"
},
"Thenationalpulse.com": {
"allow_cookies": 1,
"block_regex": "\\/thenationalpulse\\.com\\/wp-content\\/.+\\/assets\\/js\\/national-pulse\\.js",
"domain": "thenationalpulse.com"
},
"Thestage.co.uk": {
"add_ext_link": "div#ao-MeteringDNAllow|div[class*='-Teaser']",
"add_ext_link_type": "archive.is",

View file

@ -643,6 +643,7 @@
"*://*.stocknews.com/*",
"*://*.stratfor.com/*",
"*://*.studocu.com/*",
"*://*.study.com/*",
"*://*.stuttgarter-nachrichten.de/*",
"*://*.stuttgarter-zeitung.de/*",
"*://*.stylist.co.uk/*",
@ -840,5 +841,5 @@
"*://archive.vn/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.5.2.5"
"version": "3.5.2.6"
}

View file

@ -2160,6 +2160,10 @@ var defaultSites = {
domain: "studocu.com",
allow_cookies: 1
},
"Study.com (only lessons; no videos)": {
domain: "study.com",
allow_cookies: 1
},
"Stylist.co.uk": {
domain: "stylist.co.uk",
allow_cookies: 1,