mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:41:57 +01:00
Fix-update TheTimes.co.uk (link to archive.is)
This commit is contained in:
parent
7016f8fe3b
commit
87547cbbfc
3 changed files with 20 additions and 1 deletions
|
@ -8,6 +8,7 @@ Fix-update Folha de S. Paulo (add blogs)
|
|||
Fix-update La Stampa
|
||||
Fix-update Los Angeles Times (overlay)
|
||||
Fix-update Medium/Towards Data Science (multimedia)
|
||||
Fix-update TheTimes.co.uk (link to archive.is)
|
||||
|
||||
* v2.2.4.0 (2021-06-06)
|
||||
Add group Crain's Business
|
||||
|
|
|
@ -1452,6 +1452,24 @@ else if (matchDomain('thetimes.co.uk')) {
|
|||
let block = document.querySelector('.subscription-block');
|
||||
let adverts = document.querySelectorAll('#ad-article-inline, #sticky-ad-header, div[class*="InlineAdWrapper"], div[class*="NativeAd"], div.responsiveweb-sc-1exejum-0');
|
||||
removeDOMElement(block, ...adverts);
|
||||
let archive_url = 'https://archive.is?url=' + window.location.href;
|
||||
let paywall = document.querySelector('div#paywall-portal-article-footer');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
let text_fail_div = document.createElement('div');
|
||||
text_fail_div.appendChild(document.createTextNode('BPC > Read full article text:\r\n'));
|
||||
let a_link = document.createElement('a');
|
||||
a_link.innerText = archive_url;
|
||||
a_link.href = archive_url;
|
||||
a_link.target = '_blank';
|
||||
a_link.setAttribute('style', 'font-weight: bold;');
|
||||
text_fail_div.appendChild(a_link);
|
||||
let article = document.querySelector('article[role="article"]');
|
||||
if (article)
|
||||
article.insertBefore(text_fail_div, article.firstChild);
|
||||
}
|
||||
let paywall_page = document.querySelector('div#paywall-portal-page-footer');
|
||||
removeDOMElement(paywall_page);
|
||||
}
|
||||
|
||||
else if (!matchDomain(['belfasttelegraph.co.uk', 'independent.ie']))
|
||||
|
|
|
@ -526,5 +526,5 @@
|
|||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.2.4.6"
|
||||
"version": "2.2.4.7"
|
||||
}
|
Loading…
Reference in a new issue