mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:27:48 +01:00
Fix Project Syndicate (no article)
This commit is contained in:
parent
b17d4a3efc
commit
6a8dca2ea3
4 changed files with 17 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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')) {
|
||||
|
|
|
@ -51,5 +51,5 @@
|
|||
"webRequestBlocking",
|
||||
"*://*/*"
|
||||
],
|
||||
"version": "3.5.7.2"
|
||||
"version": "3.5.7.3"
|
||||
}
|
||||
|
|
|
@ -841,5 +841,5 @@
|
|||
"*://archive.vn/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "3.5.7.2"
|
||||
"version": "3.5.7.3"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue