Another hacky solution would be to inject a JavaScript on youtube.com using a bookmarklet, Greasemonkey or similar. You could then manipulate the page content as you see fit, include p5.js, and work from there.
That goes outside the scope of p5.js, though. Something I’ll let you research on your own. ![]()