This must have been a working set-it-and-forget-it type of deal as I had no memory of installing the script in Violentmonkey/Firefox until I saw an error in the console on an old website with a YouTube embed. The error I get is TypeError: MutationObserver.observe: Argument 1 is not an object.
So maybe we need a check on that root variable and simply bail if it's not an object.
This must have been a working set-it-and-forget-it type of deal as I had no memory of installing the script in Violentmonkey/Firefox until I saw an error in the console on an old website with a YouTube embed. The error I get is
TypeError: MutationObserver.observe: Argument 1 is not an object.
So maybe we need a check on that
root
variable and simply bail if it's not an object.