Add Chemical & Engineering News

master
magnolia1234 2020-01-25 18:19:36 +01:00 committed by GitHub
parent ca80797f8d
commit 4179a795e3
3 changed files with 9 additions and 1 deletions

View File

@ -73,6 +73,7 @@ Visit the [Firefox repository](https://github.com/magnolia1234/bypass-paywalls-f
##### Sports
[The Athletic](https://theathletic.com)
##### Tech/Science
[Chemical & Engineering News](https://cen.acs.org) -
[Dark Reading](https://darkreading.com) -
[MIT Technology Review](https://www.technologyreview.com) -
[Towards Data Science](https://www.towardsdatascience.com) -

View File

@ -12,7 +12,6 @@ if (location.hostname.endsWith('rep.repubblica.it')) {
if (location.href.includes('/pwa/')) {
location.href = location.href.replace('/pwa/', '/ws/detail/');
}
if (location.href.includes('/ws/detail/')) {
const paywall = document.querySelector('.paywall[subscriptions-section="content"]');
if (paywall) {
@ -390,6 +389,13 @@ if (window.location.href.indexOf("folha.uol.com.br") !== -1) {
removeDOMElement(signup);
}
if (window.location.href.indexOf("cen.acs.org") !== -1) {
document.addEventListener('DOMContentLoaded', () => {
const meteredBar = document.querySelector('.meteredBar');
removeDOMElement(meteredBar);
});
}
// General Functions
function removeDOMElement(...elements) {
for (let element of elements) {

View File

@ -8,6 +8,7 @@
"Business Insider": "businessinsider.com",
"Caixin Global": "caixinglobal.com",
"Challenges": "challenges.fr",
"Chemical & Engineering News": "cen.acs.org",
"Chicago Tribune": "chicagotribune.com",
"Corriere Della Sera": "corriere.it",
"Dagens Nyheter (free articles only)": "dn.se",