Merge branch 'master' into master

This commit is contained in:
ghost 2019-09-29 19:02:45 -07:00 committed by GitHub
commit 84b38167de
4 changed files with 9 additions and 0 deletions

View File

@ -34,6 +34,7 @@
[Eindhovens Dagblad](https://ed.nl)\
[Encyclopedia Britannica](https://britannica.com)\
[Examiner](https://examiner.com.au)\
[First Things](https://www.firstthings.com)\
[Financial News](https://fnlondon.com)\
[Financial Times](https://www.ft.com)\
[Foreign Policy](https://www.foreignpolicy.com)\

View File

@ -22,6 +22,7 @@ var defaultSites = {
'Eindhovens Dagblad': 'ed.nl',
'Encyclopedia Britannica': 'britannica.com',
'Examiner': 'examiner.com.au',
'First Things': 'firstthings.com',
'Financial News': 'fnlondon.com',
'Financial Times': 'ft.com',
'Foreign Policy': 'foreignpolicy.com',
@ -160,6 +161,7 @@ const remove_cookies = [
'demorgen.be',
'sloanreview.mit.edu',
'zeit.de',
'firstthings.com'
]
// Override User-Agent with Googlebot

View File

@ -111,6 +111,11 @@ if (window.location.href.indexOf("parool.nl") !== -1 ||
const hidden_section = document.querySelector('div[data-temptation-position="ARTICLE_INLINE"]');
removeDOMElement(paywall, hidden_section);
});
if (window.location.href.indexOf("firstthings.com") !== -1) {
const paywall = document.getElementsByClassName('paywall')[0];
if(paywall) removeDOMElement(paywall);
}
function removeDOMElement(...elements) {

View File

@ -19,6 +19,7 @@ var defaultSites = {
'Encyclopedia Britannica': 'britannica.com',
'Eindhovens Dagblad': 'ed.nl',
'Examiner': 'examiner.com.au',
'First Things': 'firstthings.com',
'Financial News': 'fnlondon.com',
'Financial Times': 'ft.com',
'Foreign Policy': 'foreignpolicy.com',