File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -1643,15 +1643,18 @@ const sites: Sites = {
16431643 selectors : {
16441644 query : makeQueryFunc ( 'article h1' , false ) ,
16451645 date : 'article time' ,
1646- paywall : 'div[data-testid="paywall-container "]' ,
1646+ paywall : 'div[data-testid="paywall-position-popover "]' ,
16471647 main : 'main article section' ,
16481648 } ,
16491649 start : ( root ) => {
1650- root . classList . remove ( 'noscroll' )
1651- document . documentElement . classList . remove ( 'noscroll' )
1652- const paywall : HTMLElement = root . querySelector (
1653- 'div[data-testid="paywall-container"]' ,
1654- )
1650+ // Entferne alle Klassen, die auf "disable-scroll-popup" enden, von <body>
1651+ const body = document . body
1652+ for ( const cls of Array . from ( body . classList ) ) {
1653+ if ( / d i s a b l e - s c r o l l - p o p u p / i. test ( cls ) ) {
1654+ body . classList . remove ( cls )
1655+ }
1656+ }
1657+ const paywall : HTMLElement = root . querySelector ( 'div[data-testid="paywall-position-popover"]' )
16551658 paywall . style . display = 'none'
16561659 root
16571660 . querySelector ( 'main .paywalled-article' )
You can’t perform that action at this time.
0 commit comments