Hello. Could anyone tell/teach me how to convert these hosts format to the one that can be applied for /system/etc? Here's the format
||05ee3a24ed11df058c8.com^$popup,third-party
||108.168.231.179^$popup,third-party
||128cash.org^$popup,third-party
Thank you.
Hello! Thank you for opening your first issue in this repo. It鈥檚 people like you who make these host files better!
Those are rules for AdBlock/UBlock Origin. Hosts rules cannot be as granular as those rules and can only block whole domains. This rule would block the first domain in your example in all cases, not just third-party pop-ups.
0.0.0.0 05ee3a24ed11df058c8.com
Those are rules for AdBlock/UBlock Origin. Hosts rules cannot be as granular as those rules and can only block whole domains. This rule would block the first domain in your example in all cases, not just third-party pop-ups.
0.0.0.0 05ee3a24ed11df058c8.com
But how to convert around more than 10000 domains? It's not possible if I edit them manually.
Hello there! Is someone else interested in a way to do that? I might create a PyPi package for that if it's useful :smile_cat:
Actually, you can do that if you know a bit of Python ...
I already wrote the code who decode the AdBlock/filter list format for PyFunceble (Sorry Steve for the cross-reference) ... You just need to use it ...
Here is a quick and dirty solution for those who want to convert AdBlock/UBlock Origin/filter list to hosts format 馃檪 (Bugs can happen as it was written in 15/20 minutes while resting after hours of coding :joy_cat: )
https://gist.github.com/funilrys/284f1c05119db5c7696eacdd8029e96a
Cheers and enjoy,
Nissar
Thank you for the question, Gilang @gloeyisk.
Closing.
Most helpful comment
Hello there! Is someone else interested in a way to do that? I might create a PyPi package for that if it's useful :smile_cat:
Actually, you can do that if you know a bit of Python ...
I already wrote the code who decode the AdBlock/filter list format for PyFunceble (Sorry Steve for the cross-reference) ... You just need to use it ...
Here is a quick and dirty solution for those who want to convert AdBlock/UBlock Origin/filter list to hosts format 馃檪 (Bugs can happen as it was written in 15/20 minutes while resting after hours of coding :joy_cat: )
https://gist.github.com/funilrys/284f1c05119db5c7696eacdd8029e96a
Cheers and enjoy,
Nissar