I'm working on a Firefox extension that deals with adding overlay to video elements. I'm using https://www.w3schools.com/html/mov_bbb.mp4 as an isolated example to test on. However, if I say something like:
$0.outerHTML = $0.outerHTML;
in the console, the video stops playing and disappears, leaving only the box shadow. Note that I do not get this behavior on a regular webpage. I also don't get this behavior in Chrome.
I'd like to add my UI elements, but I can't figure out a workaround.