Skip to content

Deep Integrated Blocker

B3yC0d3 edited this page Mar 20, 2021 · 2 revisions

DIB - Deep Integrated Blocker

How does he works?

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

What does this thing Block?

Currently its blocks successfully:

  • Google AdSense
  • Analytics Tools
    • Google Analytics
    • Hotjar
Clone this wiki locally