Add Times Higher Education

This commit is contained in:
magnolia1234 2020-09-25 14:59:06 +02:00
parent aa0f6e41c0
commit 4104cd3f65
6 changed files with 21 additions and 4 deletions

View file

@ -61,9 +61,10 @@ So don't update to Firefox 79 or use F-droid's [Fennec-release](https://f-droid.
[MIT Technology Review](https://www.technologyreview.com) -
[National Geographic USA](https://www.nationalgeographic.com) -
[Nautilus](https://nautil.us) -
[Scientific American](https://www.scientificamerican.com)* -
[Times Higher Education](https://www.timeshighereducation.com) -
[Towards Data Science](https://www.towardsdatascience.com) -
[Wired](https://www.wired.com) -
[Scientific American](https://www.scientificamerican.com)*
[Wired](https://www.wired.com)
#### Encyclopedia/Book library/Knowledge base
[BBC History Extra](https://www.historyextra.com) -

View file

@ -72,6 +72,7 @@ var allow_cookies = [
'the-american-interest.com',
'thehindu.com',
'themarker.com',
'timeshighereducation.com',
'trouw.nl',
'variety.com',
'volkskrant.nl',

View file

@ -1107,6 +1107,19 @@ else if (matchDomain("nationalreview.com")) {
});
}
else if (matchDomain("timeshighereducation.com")) {
let paywall_cta = document.querySelector('div.paywall-cta');
if (paywall_cta) {
paywall_cta.removeAttribute('style');
let hidden_divs = document.querySelectorAll('div[style="display: none;"]');
for (let hidden_div of hidden_divs)
hidden_div.removeAttribute('style');
let paywall_fade = document.querySelector('div.paywall-fade');
if (paywall_fade)
paywall_fade.classList.remove('paywall-fade');
}
}
// General Functions
function removeDOMElement(...elements) {
for (let element of elements) {

View file

@ -250,6 +250,7 @@
"*://*.thestar.com/*",
"*://*.thetimes.co.uk/*",
"*://*.tijd.be/*",
"*://*.timeshighereducation.com/*",
"*://*.towardsdatascience.com/*",
"*://*.townsvillebulletin.com.au/*",
"*://*.trouw.nl/*",
@ -310,5 +311,5 @@
"webRequest",
"webRequestBlocking"
],
"version": "1.8.7.2"
"version": "1.8.7.3"
}

View file

@ -40,5 +40,5 @@
"webRequest",
"webRequestBlocking"
],
"version": "1.8.7.2"
"version": "1.8.7.3"
}

View file

@ -186,6 +186,7 @@ var defaultSites =
"The Toronto Star": "thestar.com",
"The Wall Street Journal (not Chinese)": "wsj.com",
"The Washington Post": "washingtonpost.com",
"Times Higher Education": "timeshighereducation.com",
"Towards Data Science": "towardsdatascience.com",
"Trouw": "trouw.nl",
"Valeurs Actuelles": "valeursactuelles.com",