Restore animated thumbnail previews - youtube.com

To restore animated thumbnail previews. Requires inline video previews to be disabled in your YouTube user settings (Go to https://www.youtube.com/account_playback and set "video previews" to disabled). Not Greasemonkey compatible. v5 Add new method for getting an_webp GIF-style thumbs when not available in YT's new homepage UI or subscription page UI.

当前为 2025-08-08 提交的版本,查看 最新版本

作者
seekhare
评分
0 0 0
版本
5.2
创建于
2023-12-14
更新于
2025-08-08
大小
15.9 KB
许可证
MIT
适用于

To restore animated thumbnail previews (when hovering over a video tile when browsing etc). Requires inline video previews to be disabled in your YouTube user settings (Go to https://www.youtube.com/account_playback and set "video previews" to disabled).

Note: not Greasemonkey compatible. Recommendation is to use Violentmonkey.

Change log:

  • v5.2, 2025-08-06: Add localStorage of fetched an_webp urls for a few hours so a page refresh or a new tab has some immediate cached data available for faster performance. Handle some problematic videoID formats to get more an_webp urls successfully. Add new exclusion for 'Upcoming' video tiles.
  • v5.1, 2025-08-06: Better selectors to better select only new UI video tiles and exclude text posts etc.
  • v5.0, 2025-08-05: New method to restore an_webp GIF-style on new YT UI pages. Attempts to fetch an_webp thumbs for homepage/ subscription page via YT search endpoint (anonymous fetch so won't affect user's search history) and takes a few seconds for first batch to load. Carousel fallback remains functional for when an_webp thumbs not available or not yet loaded.
  • v4.3, 2025-08-03: Better variable names and improved code comments.
  • v4.1/4.2, 2025-08-02: Youtube now sometimes includes videos with inline videos disabled (marked by a play icon crossed out on the thumbnail overlay), these prevent the carousel fallback fix enabling, so v4.1 adds a fix to handle this correctly. Also adjust the fallback carousel pace to 500ms/image so it is faster.
  • v4.0, 2025-07-28: Add new carousel fallback for Youtube's new homepage UI.
  • v3.0, 2025-07-12: Add fix for new youtube update to sidebar vids; remove carousel fallback.
  • v2.0, 2025-02-12: Add a fallback option for users affected by YouTube's recent code changes that they are no longer providing an_webp animated thumbnail URLs on the homepage. The fall back makes a still image carousel/slideshow of some available screenshots apply to the homepage. At time of writing only some users affected and only the homepage is affected, other pages continue to work with an_webp animated thumbnails.
  • v1.0, 2023-12-14: Initial release.