Skip to content

Commit

Permalink
Add Aachener Zeitung
Browse files Browse the repository at this point in the history
Closes #440
Closes #297
  • Loading branch information
stefanw committed May 9, 2024
1 parent f09d38e commit 14191e6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@
"https://www.manager-magazin.de/*",
"https://www.nwzonline.de/*",
"https://www.saarbruecker-zeitung.de/*",
"https://www.idowa.de/*"
"https://www.idowa.de/*",
"https://www.aachener-zeitung.de/*"
],
"js": [
"build/content.js"
Expand Down
21 changes: 21 additions & 0 deletions src/sites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1376,6 +1376,27 @@ const sites: Sites = {
dbShortcut: 'LAZ,REGZ,STAG',
sourceNames: ['Landshuter Zeitung', 'Regensburger Zeitung', 'Straubinger Tagblatt']
}
},
'www.aachener-zeitung.de': {
selectors: {
query: makeQueryFunc('article h1', false),
date: 'article time',
paywall: 'div[data-testid="paywall-container"]',
main: 'main article section'
},
start: (root) => {
root.classList.remove('noscroll')
document.documentElement.classList.remove('noscroll')
const paywall: HTMLElement = root.querySelector('div[data-testid="paywall-container"]')
paywall.style.display = 'none'
root.querySelector('main .paywalled-article')?.classList.remove('paywalled-article')
},
waitOnLoad: true,
source: 'genios.de',
sourceParams: {
dbShortcut: 'AAZ',
sourceNames: ['Aachener Zeitung']
}
}
}

Expand Down

0 comments on commit 14191e6

Please sign in to comment.