Add LeParisien.fr

Also in Chrome extension.
This commit is contained in:
magnolia1234 2019-12-10 20:08:01 +01:00 committed by GitHub
parent 4b2d784b03
commit a27b1e60a9
5 changed files with 20 additions and 2 deletions

View file

@ -39,6 +39,7 @@
[Investors Chronicle](https://www.investorschronicle.co.uk)\
[La Repubblica](https://www.repubblica.it)\
[Le Monde](https://www.lemonde.fr)\
[Le Parisien](http://www.leparisien.fr)\
[Le Temps](https://www.letemps.ch)\
[London Review of Books](https://lrb.co.uk)\
[Los Angeles Times](https://www.latimes.com)\

View file

@ -36,6 +36,7 @@ var defaultSites = {
'Investors Chronicle': 'investorschronicle.co.uk',
'La Repubblica': 'repubblica.it',
'Le Monde': 'lemonde.fr',
'Le Parisien': 'leparisien.fr',
'Le Temps': 'letemps.ch',
'London Review of Books': 'lrb.co.uk',
'Los Angeles Times': 'latimes.com',

View file

@ -6,6 +6,7 @@ var localstorage_hold = arr_localstorage_hold.some(function(url) {
if (!localstorage_hold){
window.localStorage.clear();
}
if (window.location.href.indexOf("bizjournals.com") !== -1) {
const hiddenStory = document.getElementsByClassName(
"js-pre-chunks__story-body"
@ -196,6 +197,18 @@ if (window.location.href.indexOf("the-tls.co.uk") !== -1) {
removeDOMElement(paywall);
}
if (window.location.href.indexOf("leparisien.fr") !== -1) {
window.removeEventListener('scroll', this.scrollListener);
const paywall = document.querySelector('.relative.piano-paywall.below_nav.sticky');
removeDOMElement(paywall);
setTimeout(function () {
var content = document.getElementsByClassName('content');
for (var i = 0; i < content.length; i++) {
content[i].removeAttribute("style");
}
}, 300); // Delay (in milliseconds)
}
function removeDOMElement(...elements) {
for (let element of elements) {
if (element) element.remove();

View file

@ -22,7 +22,8 @@
"*://*.volkskrant.nl/*",
"*://*.washingtonpost.com/*",
"*://*.economist.com/*",
"*://*.the-tls.co.uk/*"
"*://*.the-tls.co.uk/*",
"*://*.leparisien.fr/*"
],
"js": ["contentScript.js"]
}
@ -154,7 +155,8 @@
"*://*.harpers.org/*",
"*://*.nknews.org/*",
"*://*.inquirer.com/*",
"*://*.indiatimes.com/*"
"*://*.indiatimes.com/*",
"*://*.leparisien.fr/*"
],
"version": "1.6.2"
}

View file

@ -34,6 +34,7 @@ var defaultSites = {
'Investors Chronicle': 'investorschronicle.co.uk',
'La Repubblica': 'repubblica.it',
'Le Monde': 'lemonde.fr',
'Le Parisien': 'leparisien.fr',
'Le Temps': 'letemps.ch',
'London Review of Books': 'lrb.co.uk',
'Los Angeles Times': 'latimes.com',