pietervanheijningen / clickbait-remover-for-youtube

Replaces thumbnails and modifies titles of videos on youtube.com
https://chrome.google.com/webstore/detail/clickbait-remover-for-you/omoinegiohhgbikclijaniebjpkeopip
MIT License
368 stars 23 forks source link

WIP: Option to not modify thumbnails of channels that you are subscribed to #15

Closed pietervanheijningen closed 4 years ago

pietervanheijningen commented 4 years ago

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.