mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:21:58 +01:00
Fix Live Law (amp)
This commit is contained in:
parent
fc7df6eedb
commit
baedf6e066
3 changed files with 10 additions and 5 deletions
|
@ -6,6 +6,7 @@ Add The Star Malaysia
|
|||
Add UnHerd (UK)
|
||||
Remove The Japan Times (fix obsolete)
|
||||
Fix Lequipe.fr (json)
|
||||
Fix Live Law (amp)
|
||||
Fix Telegraaf.nl
|
||||
Fix The Australian (The Oz)
|
||||
Fix The Dallas Morning News
|
||||
|
|
|
@ -2897,15 +2897,19 @@ else if (matchDomain('law360.com')) {
|
|||
}
|
||||
|
||||
else if (matchDomain('livelaw.in')) {
|
||||
let paywall = document.querySelector('div.restricted_message');
|
||||
let paywall = document.querySelector('div#subscription_paid_message, div.subscribeNow');
|
||||
if (paywall) {
|
||||
let intro = paywall.querySelectorAll('div.story, div#subscription_paid_message');
|
||||
removeDOMElement(...intro);
|
||||
paywall.classList.remove('restricted_message');
|
||||
let intro = document.querySelector('div.story');
|
||||
removeDOMElement(paywall, intro);
|
||||
let restricted_message = document.querySelector('div.restricted_message');
|
||||
if (restricted_message)
|
||||
restricted_message.classList.remove('restricted_message');
|
||||
let paywall_content = document.querySelector('div.paywall-content.hide');
|
||||
if (paywall_content)
|
||||
paywall_content.classList.remove('hide');
|
||||
}
|
||||
let ads = document.querySelectorAll('inside-post-ad, amp-ad');
|
||||
removeDOMElement(...ads);
|
||||
}
|
||||
|
||||
else if (matchDomain('livemint.com')) {
|
||||
|
|
|
@ -673,5 +673,5 @@
|
|||
"*://*.wsj.net/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "2.6.8.5"
|
||||
"version": "2.6.8.6"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue