Fork me on GitHub
#off-topic
<
2015-09-11
>
rauh19:09:41

TIL: Don't name your images with "adv.png" or anything starting with "adv" or many ad blocker will just block the images. Is there a list of how to name things properly so they don't get blocked?

joelkuiper20:09:25

@rauh Not directly, but you can infer it from the easylist blocklists simple_smile

joelkuiper20:09:34

if you want to be totally robust you can even automate it by downloading the common block lists (which often contain regexes) and matching your filenames against it before compiling/deploying the assets

rauh20:09:23

@joelkuiper: Oh wow, that easylist is long. Probably not worth the time/effort for me however.

joelkuiper20:09:47

well you probably don’t want to do it manually

joelkuiper20:09:04

but you can just download it and loop over the regexes and throw a warning or something if one of your files matches

joelkuiper20:09:27

you can also do something more clever with them I think (like Aho-Corasick or a Deterministic finite automaton/Finite State Transducer) , but a loop should be fine for your purpose

xifi21:09:40

has anyone ever played around with newlisp?