The script for generation hosts.txt on OpenWRT routers for ad blocking.
This method allows you to get free of advertising on ALL devices (like smartphones, tablets, SmartTV, etc.) without installing of additional plug-ins.
The router should be available at the address 192.168.1.1
$ git clone https://github.com/vasilevichra/openwrt-adfree.git
$ cd openwrt-adfree/
$ ./install
Run YouTube on SmartTV and enjoy! ^_^