There is no dubious legality about adblocker software. I can install whatever software I want on my computer to selectively filter whatever information I choose.
Perhaps they're better off not doing so, if it loses viewership, but that's the content producer's choice to make.