Add Slader

This commit is contained in:
magnolia1234 2020-06-26 18:54:43 +02:00
parent 97a15735e2
commit 1a8d5f6aef
4 changed files with 14 additions and 0 deletions

View file

@ -69,6 +69,7 @@ Install add-on by downloading xpi-file.
[Philosophy Now](https://philosophynow.org) -
[Quora](https://www.quora.com) -
[Scribd](http://www.scribd.com) -
[Slader](https://www.slader.com) -
[Statista](https://www.statista.com)
##### Blogs
[Medium](https://www.medium.com) (all sites) -

View file

@ -58,6 +58,7 @@ var allow_cookies = [
'quora.com',
'scribd.com',
'seekingalpha.com',
'slader.com',
'switzersuperreport.com.au',
'techinasia.com',
'the-american-interest.com',

View file

@ -717,6 +717,17 @@ else if (matchDomain('inkl.com')) {
}
}
else if (matchDomain('slader.com')) {
window.setTimeout(function () {
let paywall = document.querySelector('.Paywall');
let paywall_footer = document.querySelector('.Paywall__footer-counter');
removeDOMElement(paywall, paywall_footer);
let blur = document.querySelector('section.Paywall__blur');
if (blur)
blur.classList.remove('Paywall__blur');
}, 500); // Delay (in milliseconds)
}
// General Functions
function removeDOMElement(...elements) {
for (let element of elements) {

View file

@ -123,6 +123,7 @@ var defaultSites =
"Scientific American (free articles only)": "scientificamerican.com",
"Scribd (documents only)": "scribd.com",
"Seeking Alpha": "seekingalpha.com",
"Slader": "slader.com",
"SOFREP": "sofrep.com",
"Statista": "statista.com",
"SunSentinel": "sun-sentinel.com",