mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:07:47 +01:00
Fix GEDI.it (only Googlebot)
This commit is contained in:
parent
306d804102
commit
1ad2117a79
4 changed files with 8 additions and 33 deletions
|
@ -91,7 +91,7 @@ _* free articles only._
|
|||
[Entrepreneur](https://www.entrepreneur.com) -
|
||||
[Forbes](https://www.forbes.com) -
|
||||
[Fortune](https://fortune.com) -
|
||||
[Harvard Business Review](https://www.hbr.org) -
|
||||
[Harvard Business Review](https://www.hbr.org)* -
|
||||
[Inc.com](https://www.inc.com) -
|
||||
[Law.com](https://www.law.com)* -
|
||||
[Law360](https://www.law360.com)* -
|
||||
|
|
|
@ -7,6 +7,7 @@ Remove Alma Talent sites (hold Iltalehti.fi)
|
|||
Remove NTNews.com.au (fix obsolete)
|
||||
Remove Nuernberger Nachrichten (fix obsolete)
|
||||
Fix Corriere dello Sport (subdomains)
|
||||
Fix GEDI.it (only Googlebot)
|
||||
Fix WaPo
|
||||
|
||||
* v2.8.7.0 (2022-10-02)
|
||||
|
|
|
@ -1780,9 +1780,7 @@ else if (matchDomain('rep.repubblica.it')) {
|
|||
}
|
||||
|
||||
else if (matchDomain(it_gedi_domains)) {
|
||||
if (matchDomain('huffingtonpost.it')) {
|
||||
csDoneOnce = true;
|
||||
} else if (matchDomain('lescienze.it')) {
|
||||
if (matchDomain('lescienze.it')) {
|
||||
let paywall = document.querySelector('.paywall-adagio');
|
||||
if (paywall) {
|
||||
let body_paywall = document.querySelector('#detail-body-paywall');
|
||||
|
@ -1796,46 +1794,22 @@ else if (matchDomain(it_gedi_domains)) {
|
|||
csDoneOnce = true;
|
||||
}
|
||||
} else if (matchDomain('limesonline.com')) {
|
||||
let url = window.location.href;
|
||||
if (url.includes('prv=true')) {
|
||||
if (window.location.search.includes('prv=true')) {
|
||||
window.setTimeout(function () {
|
||||
window.location.href = url.split('?')[0];
|
||||
window.location.href = window.location.pathname;
|
||||
}, 500);
|
||||
} else
|
||||
csDoneOnce = true;
|
||||
} else {
|
||||
let url = window.location.href.split('?')[0];
|
||||
if (!url.match(/\amp(\/)?$/)) {
|
||||
let premium = document.querySelector('#paywall, iframe#__limio_frame');
|
||||
if (premium) {
|
||||
removeDOMElement(premium);
|
||||
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||
if (amphtml)
|
||||
window.location.href = amphtml.href;
|
||||
} else if (matchDomain('gelocal.it')) {
|
||||
premium = document.querySelector('.paywall-adagio');
|
||||
if (premium) {
|
||||
removeDOMElement(premium);
|
||||
window.setTimeout(function () {
|
||||
let article_body = document.querySelector('div#article-body[style]');
|
||||
if (article_body)
|
||||
article_body.removeAttribute('style');
|
||||
}, 1000);
|
||||
}
|
||||
}
|
||||
if (!window.location.pathname.match(/\amp(\/)?$/)) {
|
||||
let ads = document.querySelectorAll('div[id^="adv"]');
|
||||
removeDOMElement(...ads);
|
||||
} else {
|
||||
if (matchDomain(['lastampa.it', 'www.repubblica.it'])) {
|
||||
let paywall = document.querySelector('div[id^="paywall-banner"]');
|
||||
removeDOMElement(paywall);
|
||||
amp_unhide_subscr_section('amp-ad, amp-embed');
|
||||
} else {
|
||||
if (matchDomain('espresso.repubblica.it'))
|
||||
amp_unhide_access_hide('="showContent"', '', 'amp-ad, amp-embed')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
csDone = true;
|
||||
|
|
2
sites.js
2
sites.js
|
@ -775,7 +775,7 @@ var defaultSites = {
|
|||
"Harper's Magazine": {
|
||||
domain: "harpers.org"
|
||||
},
|
||||
"Harvard Business Review": {
|
||||
"Harvard Business Review (free articles only)": {
|
||||
domain: "hbr.org",
|
||||
block_regex: /(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue