diff --git a/changelog.txt b/changelog.txt index 858c0f2..b7e1838 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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 diff --git a/contentScript.js b/contentScript.js index 34335f9..ab35194 100644 --- a/contentScript.js +++ b/contentScript.js @@ -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')) { diff --git a/manifest.json b/manifest.json index b4366be..e2a179f 100644 --- a/manifest.json +++ b/manifest.json @@ -673,5 +673,5 @@ "*://*.wsj.net/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.6.8.5" + "version": "2.6.8.6" }