Firefox 瀏覽器附加元件
登入
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.

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.
由 1 位評論者給出 5 分
登入後即可幫此擴充套件評分
目前沒有評分

已儲存星等

5
1
4
0
3
0
2
0
1
0
閱讀全部 1 條評論
權限與資料

必要權限:

  • 存取您在 youtube.com 網域中的資料

收集下列資料:

  • 開發者聲稱此擴充套件不要求收集任何資料。
了解更多
更多資訊
附加元件網址
  • 首頁
  • 技術支援網站
  • 技術支援信箱
版本
1.2
大小
11.24 KB
最近更新
3 天前 (2025年11月15日)
相關分類
  • 隱私權與安全性
  • 外觀
  • 分頁
授權條款
Apache License 2.0
版本紀錄
  • 瀏覽所有版本
標籤
  • content blocker
  • privacy
  • security
  • streaming
  • youtube
新增至收藏集
檢舉此附加元件
前往 Mozilla 官網

附加元件

  • 關於
  • Firefox 附加元件部落格
  • 擴充套件工作坊
  • 開發者交流中心
  • 開發者政策
  • 社群部落格
  • 討論區
  • 回報 Bug
  • 評論撰寫指南

瀏覽器

  • Desktop
  • Mobile
  • Enterprise

產品

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

除另有註明外,本站內容皆採用創用 CC 姓名標示—相同方式分享條款 3.0 或更新版本授權大眾使用。