The h264ify add-on will let your computer load YouTube videos more efficiently on Firefox, if it supports hardware acceleration for H.264 but not VP8/VP9.
You can compile/package the h264ify source code with only FOSS products, which can themselves be inspected and compiled from source. Your reasoning could be used to distrust any software, open source or not.