mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-09 23:31:56 +01:00
Fix LeMonde.fr
This commit is contained in:
parent
3f6d087fd6
commit
82693ce822
5 changed files with 20 additions and 10 deletions
|
@ -5,6 +5,7 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal
|
|||
Post-release
|
||||
Add Ringier Axel Springer Polska
|
||||
Remove Hbvl.be (fix obsolete)
|
||||
Fix LeMonde.fr (bug; update rules)
|
||||
Update custom sites (search)
|
||||
|
||||
* v3.6.1.0 (2024-03-24)
|
||||
|
|
|
@ -2045,11 +2045,21 @@ else if (matchDomain(['lejdd.fr', 'parismatch.com', 'public.fr'])) {
|
|||
}
|
||||
|
||||
else if (matchDomain('lemonde.fr')) {
|
||||
let url = window.location.href;
|
||||
let paywall = document.querySelector('section.paywall');
|
||||
let paywall_sel = 'section.paywall';
|
||||
let paywall = document.querySelector(paywall_sel);
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
getArchive(url, 'article');
|
||||
let article_sel = 'article';
|
||||
let figure = document.querySelector('figure.article__media');
|
||||
if (figure) {
|
||||
func_post = function () {
|
||||
let figure_new = document.querySelector('article > figure');
|
||||
let article = document.querySelector(article_sel);
|
||||
if (!figure_new && article)
|
||||
article.firstChild.before(figure);
|
||||
}
|
||||
}
|
||||
let url = window.location.href;
|
||||
getArchive(url, paywall_sel, '', article_sel);
|
||||
let hide = document.querySelector('section.article__wrapper--premium');
|
||||
if (hide)
|
||||
removeClassesByPrefix(hide, 'article__content--restricted');
|
||||
|
@ -5518,7 +5528,7 @@ else if (matchDomain('theglobeandmail.com')) {
|
|||
else if (matchDomain(['thehindu.com', 'thehindubusinessline.com'])) {
|
||||
if (!window.location.pathname.endsWith('/amp/')) {
|
||||
let counter = document.querySelector('#test');
|
||||
let ads = document.querySelectorAll('div.article-ad, div.dfp-ad, div#paywallbox');
|
||||
let ads = document.querySelectorAll('div.article-ad, div.dfp-ad, div#paywallbox, div[id^="piano-art-"]');
|
||||
hideDOMElement(counter, ...ads);
|
||||
} else {
|
||||
let ads = document.querySelectorAll('amp-ad, amp-embed, [class^="height"], [class^="advt"], [id^="piano"]');
|
||||
|
|
|
@ -51,5 +51,5 @@
|
|||
"webRequestBlocking",
|
||||
"*://*/*"
|
||||
],
|
||||
"version": "3.6.1.2"
|
||||
"version": "3.6.1.3"
|
||||
}
|
||||
|
|
|
@ -866,5 +866,5 @@
|
|||
"*://archive.vn/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "3.6.1.2"
|
||||
"version": "3.6.1.3"
|
||||
}
|
||||
|
|
|
@ -65,13 +65,12 @@
|
|||
"nofix": 1,
|
||||
"upd_version": "3.6.0.8"
|
||||
},
|
||||
"Le Monde": {
|
||||
"Le Monde (link to archive.is)": {
|
||||
"domain": "lemonde.fr",
|
||||
"allow_cookies": 1,
|
||||
"add_ext_link": "section.paywall|article",
|
||||
"add_ext_link_type": "archive.is",
|
||||
"ld_archive_is": "section.paywall|article",
|
||||
"upd_version": "3.6.0.8"
|
||||
"upd_version": "3.6.1.3"
|
||||
},
|
||||
"LeMoniteur.fr": {
|
||||
"domain": "lemoniteur.fr",
|
||||
|
|
Loading…
Reference in a new issue