Fix LesEchos.fr (json)

merge-requests/13/head
magnolia1234 1 year ago
parent cc0d636cfb
commit a9a60a738f

@ -70,22 +70,14 @@ Use adblocker with custom (content)filter: https://gitlab.com/magnolia1234/bypas
_* free articles only._ _* free articles only._
##### World news ##### International news
[Foreign Affairs](https://www.foreignaffairs.com) - [Foreign Affairs](https://www.foreignaffairs.com) -
[Foreign Policy](https://www.foreignpolicy.com) - [Foreign Policy](https://www.foreignpolicy.com) -
[Harper's Magazine](https://harpers.org) -
[Inkl](https://www.inkl.com) - [Inkl](https://www.inkl.com) -
[Newsweek](https://www.newsweek.com) - [Newsweek](https://www.newsweek.com) -
[Reuters](https://www.reuters.com) - [Reuters](https://www.reuters.com) -
[Stratfor](https://stratfor.com) - [Stratfor](https://stratfor.com) -
[The American Interest](https://www.the-american-interest.com) -
[The Atlantic](https://www.theatlantic.com) -
[The Christian Science Monitor](https://www.csmonitor.com) -
[The Nation](https://www.thenation.com) -
[The New Republic](https://newrepublic.com) -
[The New York Review of Books](https://www.nybooks.com) -
[The New York Times](https://www.nytimes.com) - [The New York Times](https://www.nytimes.com) -
[The Spectator World](https://spectatorworld.com) -
[The Washington Post](https://www.washingtonpost.com) - [The Washington Post](https://www.washingtonpost.com) -
[Time Magazine](https://time.com) [Time Magazine](https://time.com)
@ -112,7 +104,8 @@ _* free articles only._
[The Business Journals](https://www.bizjournals.com)* - [The Business Journals](https://www.bizjournals.com)* -
[The Business of Fashion](https://www.businessoffashion.com) - [The Business of Fashion](https://www.businessoffashion.com) -
[The Wall Street Journal](https://www.wsj.com) - [The Wall Street Journal](https://www.wsj.com) -
[Vogue Business](https://www.voguebusiness.com) [Vogue Business](https://www.voguebusiness.com) -
[ZeroHedge](https://www.zerohedge.com)
Grouped in options:\ Grouped in options:\
*California Business Journals* sites like\ *California Business Journals* sites like\
@ -169,6 +162,12 @@ Grouped in options:\
[Statista](https://www.statista.com) - [Statista](https://www.statista.com) -
[StuDocu](https://www.studocu.com) [StuDocu](https://www.studocu.com)
###### Sports
[ESPN USA](https://www.espn.com) -
[RugbyPass](https://www.rugbypass.com) -
[Sports Illustrated](https://www.si.com) -
[The Athletic](https://theathletic.com)
##### Magazines/Blogs ##### Magazines/Blogs
[Medium](https://www.medium.com)\ [Medium](https://www.medium.com)\
Grouped in options:\ Grouped in options:\
@ -182,26 +181,29 @@ Grouped in options:\
[Atavist Magazine](https://magazine.atavist.com) - [Atavist Magazine](https://magazine.atavist.com) -
[Axios](https://www.axios.com) - [Axios](https://www.axios.com) -
[Commentary Magazine](https://www.commentary.org) - [Commentary Magazine](https://www.commentary.org) -
[ESPN USA](https://www.espn.com) -
[Field & Stream](https://www.fieldandstream.com) - [Field & Stream](https://www.fieldandstream.com) -
[First Things](https://www.firstthings.com) - [First Things](https://www.firstthings.com) -
[Harper's Magazine](https://harpers.org) -
[National Review](https://www.nationalreview.com) - [National Review](https://www.nationalreview.com) -
[Outdoor Life](https://www.outdoorlife.com) - [Outdoor Life](https://www.outdoorlife.com) -
[Project Syndicate (link to archive.is)](https://www.project-syndicate.org) - [Project Syndicate (link to archive.is)](https://www.project-syndicate.org) -
[Puck.news](https://puck.news) - [Puck.news](https://puck.news) -
[RugbyPass](https://www.rugbypass.com) -
[Slate](https://slate.com) - [Slate](https://slate.com) -
[SofRep](https://sofrep.com) - [SofRep](https://sofrep.com) -
[Sports Illustrated](https://www.si.com) - [The American Interest](https://www.the-american-interest.com) -
[The Art Newspaper](https://www.theartnewspaper.com) - [The Art Newspaper](https://www.theartnewspaper.com) -
[The Athletic](https://theathletic.com) - [The Atlantic](https://www.theatlantic.com) -
[The Christian Science Monitor](https://www.csmonitor.com) -
[The Intercept](https://theintercept.com) - [The Intercept](https://theintercept.com) -
[The Daily Beast](https://www.thedailybeast.com) - [The Daily Beast](https://www.thedailybeast.com) -
[The Daily Wire](https://www.dailywire.com) - [The Daily Wire](https://www.dailywire.com) -
[The Nation](https://www.thenation.com) -
[The New Atlantis](https://www.thenewatlantis.com) - [The New Atlantis](https://www.thenewatlantis.com) -
[The New Republic](https://newrepublic.com) -
[The New York Review of Books](https://www.nybooks.com) -
[The Point Magazine](https://thepointmag.com) - [The Point Magazine](https://thepointmag.com) -
[The Wrap](https://www.thewrap.com) - [The Spectator World](https://spectatorworld.com) -
[ZeroHedge](https://www.zerohedge.com) [The Wrap](https://www.thewrap.com)
Grouped in options:\ Grouped in options:\
*Condé Nast magazines* sites like\ *Condé Nast magazines* sites like\

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox Changelog Bypass Paywalls Clean - Firefox
Post-release Post-release
Fix LesEchos.fr (json)
* v3.0.4.0 (2023-02-05) * v3.0.4.0 (2023-02-05)
Add Inside Higher Ed Add Inside Higher Ed

@ -1633,8 +1633,8 @@ else if (matchDomain('lesechos.fr')) {
let state; let state;
let split1 = html.split('window.__CONFIG__=')[1]; let split1 = html.split('window.__CONFIG__=')[1];
let split2 = split1.split('</script>')[0].trim(); let split2 = split1.split('</script>')[0].trim();
if (split2.includes('; window.__DATA__=')) { if (split2.includes('window.__DATA__=')) {
state = split2.split('; window.__DATA__=')[1].split('; window.__')[0].trim(); state = split2.split('window.__DATA__=')[1].split('};')[0] + '}';
} else } else
state = split2.substr(0, split2.length - 1); state = split2.substr(0, split2.length - 1);
try { try {
@ -1666,7 +1666,7 @@ else if (matchDomain('lesechos.fr')) {
let styleElem = document.head.appendChild(document.createElement('style')); let styleElem = document.head.appendChild(document.createElement('style'));
styleElem.innerHTML = ".post-paywall::after {height: auto !important;}"; styleElem.innerHTML = ".post-paywall::after {height: auto !important;}";
} catch (err) { } catch (err) {
refreshCurrentTab(); console.log(err);
} }
} }
}, 500); }, 500);
@ -4320,6 +4320,8 @@ else if (matchDomain('time.com')) {
let body = document.querySelector('body'); let body = document.querySelector('body');
if (body && !matchDomain('api.time.com')) if (body && !matchDomain('api.time.com'))
body.setAttribute('style', 'position:relative !important;'); body.setAttribute('style', 'position:relative !important;');
let ads = document.querySelectorAll('div[id*="inline-ad-"]');
removeDOMElement(...ads);
} }
else if (matchDomain('timeshighereducation.com')) { else if (matchDomain('timeshighereducation.com')) {
@ -4607,6 +4609,8 @@ else if ((domain = matchDomain(usa_mcc_domains)) ||
if (premium_link.href.includes('www.')) if (premium_link.href.includes('www.'))
premium_link.href = premium_link.href.replace('www.', 'amp.'); premium_link.href = premium_link.href.replace('www.', 'amp.');
} }
let ads = document.querySelectorAll('div[id^="zone-el-"]');
removeDOMElement(...ads);
} }
else if (matchDomain(usa_mng_domains) || (window.location.href.match(/\.com\/(\d){4}\/(\d){2}\/(\d){2}\/.+\/amp\//) && document.querySelector('amp-img#paywall[src*=".com/wp-content/plugins/dfm-amp-mods/"]'))) { else if (matchDomain(usa_mng_domains) || (window.location.href.match(/\.com\/(\d){4}\/(\d){2}\/(\d){2}\/.+\/amp\//) && document.querySelector('amp-img#paywall[src*=".com/wp-content/plugins/dfm-amp-mods/"]'))) {

@ -351,8 +351,7 @@
"domain": "spokesman.com" "domain": "spokesman.com"
}, },
"Sportsbusinessjournal.com": { "Sportsbusinessjournal.com": {
"domain": "sportsbusinessjournal.com", "domain": "sportsbusinessjournal.com"
"random_ip": "all"
}, },
"Stateaffairs.com": { "Stateaffairs.com": {
"allow_cookies": 1, "allow_cookies": 1,
@ -430,11 +429,6 @@
"block_regex": "\\.toolkits\\.com\\/app\\/js\\/api\\.min\\.js", "block_regex": "\\.toolkits\\.com\\/app\\/js\\/api\\.min\\.js",
"domain": "toolkits.com" "domain": "toolkits.com"
}, },
"Vigilantcitizen.com": {
"allow_cookies": 1,
"domain": "vigilantcitizen.com",
"random_ip": "all"
},
"Washingtontimes.com": { "Washingtontimes.com": {
"allow_cookies": 1, "allow_cookies": 1,
"block_regex": "\\.tinypass\\.com", "block_regex": "\\.tinypass\\.com",

@ -730,5 +730,5 @@
"*://*.wallkit.net/*", "*://*.wallkit.net/*",
"*://webcache.googleusercontent.com/*" "*://webcache.googleusercontent.com/*"
], ],
"version": "3.0.4.0" "version": "3.0.4.1"
} }

@ -2088,7 +2088,7 @@ var defaultSites = {
"Time Magazine": { "Time Magazine": {
domain: "time.com", domain: "time.com",
allow_cookies: 1, allow_cookies: 1,
block_regex: /(\/time\.com\/dist\/meter-wall-client-js\..+\.js|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/ block_regex: /(\/time\.com\/dist\/meter-wall-client-js\..+\.js|\.zephr\.com\/zephr-browser\/|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/
}, },
"Times Higher Education": { "Times Higher Education": {
domain: "timeshighereducation.com", domain: "timeshighereducation.com",

@ -81,6 +81,7 @@
}, },
"The Atlantic": { "The Atlantic": {
"domain": "theatlantic.com", "domain": "theatlantic.com",
"block_regex": "cdn\\.theatlantic\\.com\\/_next\\/static\\/chunks\\/[5-7].+\\.js" "block_regex": "cdn\\.theatlantic\\.com\\/_next\\/static\\/chunks\\/[5-7].+\\.js",
"remove_cookies_select_drop": ["articleViews"]
} }
} }

Loading…
Cancel
Save