Bluesky:禁用 GIF 自动播放
冻结信息流中的内嵌 GIF,仅在悬停时播放,并在角落显示「GIF」标签。
可复制的代码
/* Freeze animated GIF embeds until the user hovers over them */
[data-testid="gifEmbed"] video,
[data-testid="gifEmbed"] img {
animation-play-state: paused !important;
}
[data-testid="gifEmbed"]::after {
content: "GIF";
position: absolute;
bottom: 6px; left: 6px;
background: rgba(0,0,0,0.7);
color: #fff;
font-size: 11px;
font-weight: 700;
padding: 2px 6px;
border-radius: 4px;
pointer-events: none;
}
[data-testid="gifEmbed"] { position: relative; }
[data-testid="gifEmbed"]:hover video,
[data-testid="gifEmbed"]:hover img {
animation-play-state: running !important;
}
如何使用此示例
- 用上方按钮复制代码。
- 安装 JustZix(2 分钟),在目标页面打开扩展。
- 添加一条匹配该页面的新规则。
- 将代码粘贴到规则的 CSS 面板并保存 — 效果立即生效。
为此示例评分
暂无评分 — 成为第一个。