mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:17:46 +01:00
Add StuDocu (no downloads)
This commit is contained in:
parent
39cfab40da
commit
d84e21dd73
6 changed files with 28 additions and 4 deletions
|
@ -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)*\
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
4
lib/purify.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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"
|
||||
}
|
||||
|
|
4
sites.js
4
sites.js
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue