Out of curiosity, which software/app are you using to MitM on your home network?
Of course once you finish one youtube video it switches to a "you might want to watch next" which is not the educational content I want them on.
https://gist.github.com/ndriscoll/2f1c98a125c0d4a4f6f993e077...
The event listener might have an annoying perf impact, and if the sites with the embed don't use javascript to build the page, you might be able to leave it off.