Fix Fortune (magazine)

master
magnolia1234 2022-04-21 21:27:08 +02:00
parent 2feac277cf
commit 1777e4ad99
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');
}
}