Add StuDocu (no downloads)

This commit is contained in:
magnolia1234 2022-07-19 21:26:00 +02:00
parent 39cfab40da
commit d84e21dd73
6 changed files with 28 additions and 4 deletions

View file

@ -147,7 +147,8 @@ Grouped in options:\
[Philosophy Now](https://philosophynow.org) -
[Quora](https://www.quora.com) -
[SlideShare](https://www.slideshare.net) -
[Statista](https://www.statista.com)
[Statista](https://www.statista.com) -
[StuDocu](https://www.studocu.com)
##### Magazines/Blogs
[Medium](https://www.medium.com)*\

View file

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Add StuDocu (no downloads)
Remove The Ken (fix not working)
Fix Scientific American (magazine)

View file

@ -3573,6 +3573,23 @@ else if (matchDomain('stratfor.com')) {
}
}
else if (matchDomain('studocu.com')) {
window.setTimeout(function () {
let paywall = document.querySelector('div._de9e5fdb76af');
if (paywall) {
let banners = document.querySelectorAll('div._d18a99c0d544, div#premium-page-header');
removeDOMElement(paywall, ...banners);
let blurred_pages = document.querySelectorAll('div.page-content[style*="filter: blur"]');
for (let blurred_page of blurred_pages) {
let page = document.createElement('span');
page.setAttribute('class', 'page-content');
page.appendChild(blurred_page.firstChild);
blurred_page.parentNode.replaceChild(page, blurred_page);
}
}
}, 1000);
}
else if (matchDomain('techinasia.com')) {
let paywall = document.querySelector('.paywall-content');
if (paywall && dompurify_loaded) {

4
lib/purify.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -533,6 +533,7 @@
"*://*.stcatharinesstandard.ca/*",
"*://*.stocknews.com/*",
"*://*.stratfor.com/*",
"*://*.studocu.com/*",
"*://*.sudinfo.be/*",
"*://*.sudouest.fr/*",
"*://*.sun-sentinel.com/*",
@ -693,5 +694,5 @@
"*://*.wsj.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.7.6.1"
"version": "2.7.6.2"
}

View file

@ -1573,6 +1573,10 @@ var defaultSites = {
allow_cookies: 1,
useragent: "bingbot"
},
"StuDocu (no downloads)": {
domain: "studocu.com",
allow_cookies: 1
},
"Tampa Bay Times": {
domain: "tampabay.com",
allow_cookies: 1,