Twiglets
Senior Member
Thanks for tidying up the 'bad' codeYour original proposal only has the blocked domains colored, that is still built in:
https://www.snbforums.com/threads/a...ing-solution-v3-9-2.37511/page-21#post-319223
But this looks much better!
I've tidied up the if clauses (you can use elif instead of else if) and I'm going to also use the theme colors since they appear best on the users terminal. But since the themes only have three text colors defined, I will have to add another one to it.
Also, your code does not work for IPv6 domains, use "$blockingFile\|blacklist.txt" instead of "is $custom_ipV4".
I'll include it in the next update.
Not using IPv6 so missed that one.