-
Notifications
You must be signed in to change notification settings - Fork 0
Deep Integrated Blocker
B3yC0d3 edited this page Mar 20, 2021
·
2 revisions
The DIB (Deep Integrated Blocker) is located in the Main.js, that's the main file of a Electron application.
In this file, the main window is created and all event listeners are set. Where would the best place for such
a blocker else than in this file?
Code snipped:
app.on('ready', () => {
createWindow()
var menu = Menu.buildFromTemplate(customMenu)
win.setMenu(menu)
/* Deep Integrated Blocker */
AdBlocker = new adblocker(win, [__dirname + '/lists/list_01.json'])
AdBlocker.start()
})
Line 72 - 80 from main.js
Currently its blocks successfully:
- Google AdSense
- Analytics Tools
- Google Analytics
- Hotjar