Closed GanerCodes closed 2 years ago
If you just want to hide ads, it's possible with userscripts (or css). Not planned to be a built-in feature for now.
is there a way to launch it with a crx extension somehow attached to it? or compiled in?
https://www.electronjs.org/docs/latest/api/extensions Loading Chrome extensions is only partially supported by Electron (the framework used by most clients).
To add some more info: "True" adblocking in a form of blocking web requests for ad URLs and fixing broken layout caused by missing requests, is a lot of effort. Especially if we had to maintain list of ad URLs (which is definitely never going to happen). Fortunately there are some publicly available filter lists such as https://easylist.to/ , but we have to make a parser for it. There was https://github.com/brave-experiments/ad-block but the project is archived. If someone is motivated enough to implement a parser for the client, built-in adblocking might happen.
alright I got an adblocker working. The extension method didn't do anything but this package works flawlessly https://github.com/ghostery/adblocker/tree/master/packages/adblocker-electron#usage
Can this be added?