Kind of works, but it slows down the loading of thumbnails significantly. Closing for now, as I can't find a way to do it without it slowing down.
Main problem boils down to me not being able to return a Promise for web requests, however it is possible to do that in firefox.
The extension basically needs to make a web request to check what channel the videoId belongs to for every thumbnail that gets loaded, i got it working now by making a synchronous xmlhttprequest which has been deprecated for a long time and gives warnings. And for a good reason, because a request needs to wait for other requests to finish. which can mean that some thumbnails take ~30 seconds to load, which isn't great.
Kind of works, but it slows down the loading of thumbnails significantly. Closing for now, as I can't find a way to do it without it slowing down.
Main problem boils down to me not being able to return a Promise for web requests, however it is possible to do that in firefox.
The extension basically needs to make a web request to check what channel the videoId belongs to for every thumbnail that gets loaded, i got it working now by making a synchronous xmlhttprequest which has been deprecated for a long time and gives warnings. And for a good reason, because a request needs to wait for other requests to finish. which can mean that some thumbnails take ~30 seconds to load, which isn't great.