yokoffing / filterlists

Collection of blocklists to fill in the gaps
1.73k stars 45 forks source link

[youtube_clear_view] Hide new "smartimation" animations #118

Closed ItsProfessional closed 1 year ago

ItsProfessional commented 1 year ago

Example: https://www.youtube.com/watch?v=l_LsO3I_41M&t=11s At 0:12, the subscribe button will have a rainbow-colored border animation around it for about a second. Whenever someone says "subscribe", or "like" in the video, the respective elements get this animation. As you can tell, it is annoying unnecessary and distracting. For more info, see this reddit thread

The filter removes everything in the yt-smartimation element except than the content itself, i.e., removing the animation.

This can also be handled by setting some experiment flags, which are checked for in YouTube's desktop_polymer_enable_wil_icons.js script:

www.youtube.com##+js(set, yt.config_.EXPERIMENT_FLAGS.web_smartimations_killswitch, true)
www.youtube.com##+js(set, yt.config_.EXPERIMENT_FLAGS.register_web_smartimations_component, false)

But these may be removed at any point, so I went for the manual approach.