Add LeParisien.fr

Also in Chrome extension.
merge-requests/1/head
magnolia1234 5 years ago committed by GitHub
parent 4b2d784b03
commit a27b1e60a9

@ -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)\

@ -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',

@ -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();

@ -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"
}

@ -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',

Loading…
Cancel
Save