focus-android icon indicating copy to clipboard operation
focus-android copied to clipboard

Missleading Wiki

Open hi337 opened this issue 2 years ago • 2 comments

Hey,

I'm just trying to play around with the code base in my free time, so excuse me in advance if this question has already been answered. I just noticed that, while trying to read the content blocking page in the repo's wiki, the BlocklistProcessor.java file is not available and I can't find it anywhere on my local clone of the repo neither.

So 1) I was just wondering how content blocking works and where I can access the code that intercepts blocked domains, 2) how I would go about adding my own urls to block.

Thanks

hi337 avatar Aug 13 '22 22:08 hi337

Hi there👋🏽 , The wiki page is outdated, sorry about that. Focus is using the same technology as Firefox for desktop, all the content blocking is happening inside of the Gecko engine web engine. The content blocking list can be seen here https://github.com/mozilla-services/shavar-prod-lists, to add to the list you may want to create an issue on the repo to discuss.

Another alternative you could build Focus using the engine system that ships with is own list, which you can alter in your clone repo, that follows the same a similar approach that the wiki above. The only caveat is that is based on WebView and you won't have access to all the privacy features that are built-in in Gecko.

Amejia481 avatar Aug 15 '22 18:08 Amejia481

I updated the wiki to indicated that it's outdated.

Amejia481 avatar Aug 15 '22 18:08 Amejia481