Skip to content

Commit 1d8e3b3

Browse files
Miladiirstefanw
authored andcommitted
1 parent 8b56fed commit 1d8e3b3

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/sites.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff 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 (/disable-scroll-popup/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')

0 commit comments

Comments
 (0)