ghostery / adblocker

Efficient embeddable adblocker library

Home Page:https://www.ghostery.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using multiple local text filter lists?

sgebr01 opened this issue · comments

I have a text filter list that I would like to use in my Electron App, however, I don't have any idea how to activate it in cooperation with the built in filter lists. Here is my code so far for my easy list text file.
const blocker = ElectronBlocker.parse(fs.readFileSync('easylist.txt', 'utf-8'));

Now what do I need to do to activate it alongside the built in filter lists(code for that is here) - ElectronBlocker.fromPrebuiltAdsAndTracking(fetch).then((blocker) => { blocker.enableBlockingInSession(session.defaultSession); });