Skip to content

Commit

Permalink
fix: hide cookie consent banner, fixes #34
Browse files Browse the repository at this point in the history
  • Loading branch information
neopostmodern committed Aug 6, 2020
1 parent 8fdef82 commit 31c1249
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/middleware/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ export default (store: Store) => (next: (action: Action) => void) => async (
await sleep(5000);

const { puppet } = store.getState().electron.views;

puppet.browserView.webContents.insertCSS(`
#cmp-faktor-io-brand-consent-notice {
display: none !important;
}
`);

if (puppet.url.startsWith('https://www.immobilienscout24.de/Suche')) {
setImmediate(() => store.dispatch(calculateOverviewBoundingBoxes()));
setTimeout(
Expand Down

0 comments on commit 31c1249

Please sign in to comment.