Yes, I imagine it likely would be. I didn't do this for two reasons though:Moonchild wrote: ↑2020-09-23, 00:21By the way, wouldn't the following be a more accurate (and functional) script?Code: Select all
// [...] window.MediaQueryList.prototype.addEventListener = function(event, cb) { this.addListener(cb); }; window.MediaQueryList.prototype.removeEventListener = function(event, cb) { this.removeListener(cb); };
1. I just wanted to see if I could get the website working with as little effort as possible.
2. It did occur to me that even if I did bother to make addEventListener actually functional, whatever code might run in the added listener if called might break the website in some other way, so for a first try it seemed a safer option to just pretend that the event never happens.
Also, something that might be of interest: This happened on my laptop. I've not had this problem (and not had to install Greasemonkey) on my desktop before or after, logged in to the same YouTube account, and the OS (Win10) and PM version is the same. I can only guess that the difference is due to my laptop having a 3200x1800, 200% display scaled, multitouch touchscreen, while my desktop has a pretty ordinary 1920x1080, 100% scaled, non-touchscreen display (well two of them but that's besides the point). Presumably whatever code calls addEventListener only runs on touchscreens, or only runs on display scaled devices, or something like that.