Fix Project Syndicate (no article)

This commit is contained in:
magnolia1234 2024-02-27 21:01:10 +01:00
parent b17d4a3efc
commit 6a8dca2ea3
4 changed files with 17 additions and 3 deletions

View file

@ -5,6 +5,7 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal
Post-release
Remove BusinessTimes.com.sg (fix obsolete)
Fix Haaretz Group (Outbrain bot)
Fix Project Syndicate (no article)
Maintenance updated sites (removed)
* v3.5.7.0 (2024-02-25)

View file

@ -4737,7 +4737,20 @@ else if (matchDomain('polityka.pl')) {
else if (matchDomain('project-syndicate.org')) {
let url = window.location.href;
getArchive(url, 'div.paywall--base', '', 'div[data-page-area="article-body"]');
let paywall_sel = 'div.paywall--base';
let paywall = document.querySelector(paywall_sel);
if (paywall) {
let article_sel = 'div[data-page-area="article-body"]';
let article = document.querySelector(article_sel);
if (article)
getArchive(url, paywall_sel, '', article_sel);
else {
removeDOMElement(paywall);
let split_top = document.querySelector('div.split-top');
if (split_top)
split_top.after(archiveLink(url));
}
}
}
else if (matchDomain('puck.news')) {

View file

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.5.7.2"
"version": "3.5.7.3"
}

View file

@ -841,5 +841,5 @@
"*://archive.vn/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.5.7.2"
"version": "3.5.7.3"
}