Fix LeMonde.fr

merge-requests/20/merge
magnolia1234 2 months ago
parent 3f6d087fd6
commit 82693ce822

@ -5,6 +5,7 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal
Post-release Post-release
Add Ringier Axel Springer Polska Add Ringier Axel Springer Polska
Remove Hbvl.be (fix obsolete) Remove Hbvl.be (fix obsolete)
Fix LeMonde.fr (bug; update rules)
Update custom sites (search) Update custom sites (search)
* v3.6.1.0 (2024-03-24) * 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')) { else if (matchDomain('lemonde.fr')) {
let url = window.location.href; let paywall_sel = 'section.paywall';
let paywall = document.querySelector('section.paywall'); let paywall = document.querySelector(paywall_sel);
if (paywall) { if (paywall) {
removeDOMElement(paywall); let article_sel = 'article';
getArchive(url, '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'); let hide = document.querySelector('section.article__wrapper--premium');
if (hide) if (hide)
removeClassesByPrefix(hide, 'article__content--restricted'); removeClassesByPrefix(hide, 'article__content--restricted');
@ -5518,7 +5528,7 @@ else if (matchDomain('theglobeandmail.com')) {
else if (matchDomain(['thehindu.com', 'thehindubusinessline.com'])) { else if (matchDomain(['thehindu.com', 'thehindubusinessline.com'])) {
if (!window.location.pathname.endsWith('/amp/')) { if (!window.location.pathname.endsWith('/amp/')) {
let counter = document.querySelector('#test'); 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); hideDOMElement(counter, ...ads);
} else { } else {
let ads = document.querySelectorAll('amp-ad, amp-embed, [class^="height"], [class^="advt"], [id^="piano"]'); let ads = document.querySelectorAll('amp-ad, amp-embed, [class^="height"], [class^="advt"], [id^="piano"]');

@ -51,5 +51,5 @@
"webRequestBlocking", "webRequestBlocking",
"*://*/*" "*://*/*"
], ],
"version": "3.6.1.2" "version": "3.6.1.3"
} }

@ -866,5 +866,5 @@
"*://archive.vn/*", "*://archive.vn/*",
"*://webcache.googleusercontent.com/*" "*://webcache.googleusercontent.com/*"
], ],
"version": "3.6.1.2" "version": "3.6.1.3"
} }

@ -65,13 +65,12 @@
"nofix": 1, "nofix": 1,
"upd_version": "3.6.0.8" "upd_version": "3.6.0.8"
}, },
"Le Monde": { "Le Monde (link to archive.is)": {
"domain": "lemonde.fr", "domain": "lemonde.fr",
"allow_cookies": 1, "allow_cookies": 1,
"add_ext_link": "section.paywall|article", "add_ext_link": "section.paywall|article",
"add_ext_link_type": "archive.is", "add_ext_link_type": "archive.is",
"ld_archive_is": "section.paywall|article", "upd_version": "3.6.1.3"
"upd_version": "3.6.0.8"
}, },
"LeMoniteur.fr": { "LeMoniteur.fr": {
"domain": "lemoniteur.fr", "domain": "lemoniteur.fr",

Loading…
Cancel
Save