Firefox 浏览器附加组件
  • 扩展
  • 主题
    • 适用于 Firefox
    • 字典和语言包
    • 其他浏览器网站
    • 适用于 Android 的附加组件
登录
YouTube Shorts Blocker 预览

YouTube Shorts Blocker 作者: TN3W

35 lines of code that hide YouTube Shorts everywhere. Brutally minimal, completely secure, fully verifiable. No tracking, no settings, no bloat. Read the entire source in 30 seconds.

可在 Android™ 版 Firefox 上使用可在 Android™ 版 Firefox 上使用
5(1 条评价)5(1 条评价)
2 个用户2 个用户
下载 Firefox 并安装扩展
下载文件

扩展元数据

关于此扩展
35 lines of code. That's it.

A brutally minimal browser extension that hides YouTube Shorts everywhere.

View on GitHub

Why This Extension
  • 35 lines of code – You can read and verify everything in 30 seconds
  • 22 CSS rules – Maximum efficiency, minimal footprint
  • Zero complexity – No settings, no UI, no bloat
  • Completely secure – No permissions beyond YouTube, no external connections

What It Does

Hides Shorts navigation tabs, shelves, and videos across all YouTube pages.

Security & Privacy

This is the entire extension – 35 lines of actual code:

function hide() {
document
.querySelectorAll(
ytd-guide-entry-renderer a[title="Shorts"],
ytd-mini-guide-entry-renderer a[title="Shorts"],
ytm-pivot-bar-item-renderer a[href="/shorts"],
ytm-pivot-bar-item-renderer:has(.pivot-shorts),
ytd-reel-shelf-renderer,
ytd-rich-shelf-renderer:has([href*="/shorts/"]),
ytm-reel-shelf-renderer,
ytm-rich-section-renderer:has([href^="/shorts/"]),
grid-shelf-view-model:has([href^="/shorts/"]),
ytd-rich-grid-group:has([href^="/shorts/"]),
[href^="/shorts/"],
ytd-reel-item-renderer,
ytm-reel-item-renderer,
ytm-shorts-lockup-view-model,
ytd-rich-item-renderer:has([href^="/shorts/"]),
ytd-video-renderer:has([href^="/shorts/"]),
ytd-grid-video-renderer:has([href^="/shorts/"]),
ytd-compact-video-renderer:has([href^="/shorts/"]),
ytm-rich-item-renderer:has([href^="/shorts/"]),
ytm-video-with-context-renderer:has([href^="/shorts/"]),
ytm-grid-video-renderer:has([href^="/shorts/"]),
ytd-notification-renderer:has([href^="/shorts/"])

)
.forEach((el) => (el.style.display = 'none'));
}

hide();
new MutationObserver(hide).observe(document.body || document.documentElement, {
childList: true,
subtree: true,
});

That's it. No tracking. No data collection. No external servers.

License

Copyright 2025 TN3W

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
评分 5(1 位用户)
登录以评价此扩展
目前尚无评分

已保存星级评分

5
1
4
0
3
0
2
0
1
0
阅读全部 1 条评价
权限与数据

必要权限:

  • 访问您在 youtube.com 域名的数据

收集的数据:

  • 开发者称此扩展无需收集数据。
详细了解
更多信息
附加组件链接
  • 主页
  • 用户支持网站
  • 支持邮箱
版本
1.2
大小
11.24 KB
上次更新
2 天前 (2025年11月15日)
相关分类
  • 隐私和安全
  • 外观
  • 标签页
许可证
Apache 许可证 2.0
版本历史
  • 查看所有版本
标签
  • content blocker
  • privacy
  • security
  • streaming
  • youtube
添加到收藏集
举报此附加组件
转至 Mozilla 主页

附加组件

  • 关于
  • Firefox 附加组件博客
  • 扩展工坊
  • 开发者中心
  • 开发者政策
  • 社区博客
  • 论坛
  • 报告缺陷
  • 评价指南

浏览器

  • Desktop
  • Mobile
  • Enterprise

产品

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • 隐私
  • Cookie
  • 法律

本站内容以知识共享署名-相同方式共享 v3.0 或任何更新版本授权(除非另有注明)。Android 系 Google LLC 的商标。