mchangrh / yt-neuter

uBlock filter(s) list for blocking unwanted YouTube elements
https://neuter.mchang.xyz
The Unlicense
195 stars 15 forks source link

YT Animated Like Icon #18

Closed mchangrh closed 2 weeks ago

mchangrh commented 2 years ago

currently the best way to block it is to block the like_icon schema

||www.gstatic.com/youtube/img/lottie/animated_like_icon/*.json^,redirect=noop.js

this blocks both the dark and light versions of the animations so they can't be loaded by the lottie script.

path: "https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_v2_light.json",
pathDarkTheme: "https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_v2_dark.json",

Unintended Consequences

the lotte script (likely their animation player) can also be blocked at which also disable animations for the home icon and nothing else

||www.gstatic.com/external_hosted/lottie/lottie_light.js$domain=youtube.com

mchangrh commented 2 years ago

Update: forced redirect jsons to noop resources otherwise it would generate thousands of console errors every minute

mchangrh commented 2 years ago

Modified to just block lottie_light on youtube.com to avoid both console errors and other unintended consequences

mchangrh commented 3 weeks ago

Still appearing even with lottie purged

https://www.youtube.com/watch?v=LFlbnqiHmek at 17:37

mchangrh commented 2 weeks ago

Fixed in hyper filter https://github.com/mchangrh/yt-neuter/commit/af6b225c455f3c1f24bb39f46cb80ba42a7775f0