How do I block ads on YouTube?

I noticed that block file created will have format like this:
...---sn--...
and in my log all request made are for domains in this format
...---sn-...
so line:
cat $FILE | sed -i $FILE -re 's/(^r[[:digit:]]+)(.)(sn)/\1---\3-/' >> $FILE
I changed to ->:
cat $FILE | sed -i $FILE -re 's/(^r[[:digit:]]+)(.)/\1---/' >> $FILE