Fix Live Law (amp)

This commit is contained in:
magnolia1234 2022-05-15 18:25:58 +02:00
parent fc7df6eedb
commit baedf6e066
3 changed files with 10 additions and 5 deletions

View file

@ -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

View file

@ -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')) {

View file

@ -673,5 +673,5 @@
"*://*.wsj.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.6.8.5"
"version": "2.6.8.6"
}