Using firefox greasemonkey or chrome tampermonkey, there are scripts that fake the window.navigator.plugins and window.navigator.mimeTypes. If you return undefined for those objects then most websites are fooled into thinking flash isn't installed even if it is there. Sites usually display message to install flash or start html5 player.
Youtube isn't tricked by userscript and still loads the flash player. How can you block youtube's flash detection?
Reference for faking navigator: How can I fool a site that looks at the JavaScript object 'navigator' to see that I'm not on Windows?