Fix Fortune (magazine)

This commit is contained in:
magnolia1234 2022-04-21 21:27:17 +02:00
parent afc185a2dc
commit 8e5d62a16c
2 changed files with 5 additions and 1 deletions

View File

@ -9,6 +9,7 @@ Add Peloton
Add Podium Runner
Add Rock and Ice
Fix El Pais (amp/video)
Fix Fortune (magazine)
* v2.6.5.0 (2022-04-18)
Add Aftonbladet.se

View File

@ -2697,10 +2697,13 @@ else if (matchDomain('foreignpolicy.com')) {
}
else if (matchDomain('fortune.com')) {
let paywall = document.querySelector('.paywall');
if (window.location.pathname.endsWith('/amp/')) {
amp_unhide_access_hide('="NOT p.showRegWall AND NOT p.showPayWall"', '', '[class^="amp-ad"]');
let paywall = document.querySelector('.paywall');
removeDOMElement(paywall);
} else {
if (paywall)
paywall.removeAttribute('class');
}
}