As they're messing with DNS, you'll still be connecting to their evil version of YouTube through your SSH tunnel. In Firefox this behaviour can be changed by toggling network.proxy.socks_remote_dns in about:config.
Of course, setting up an actual tunnel (i.e. on a lower network layer) would be better but that's a bit more complicated to do.