Members-Only Remover

Filters Members-only entries out of YouTube API responses, and removes the members-only shelf.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Mr005K
日安装量
0
总安装量
17
评分
0 0 0
版本
1.0
创建于
2025-11-02
更新于
2025-11-03
大小
6.5 KB
许可证
MIT
适用于

Members-Only Remover

No gaps. No shelf. No fuss.

Filters out "Members-only" videos from YouTube pages — including search results, channel videos tabs, homepage shelves, and suggestions. Removes entire tiles and shelves seamlessly, so the layout stays clean and uninterrupted.


🔍 What It Does

This userscript automatically:

  • Removes videos labeled “Members-only” from:
    • Homepage suggestions
    • Channel videos tab
    • Search results
    • Playlist views and sidebars
  • Eliminates the “Members-only videos” shelf on channel home pages.
  • Ensures video grids remain clean and gapless — like the content was never there.
  • Works proactively on both network responses and DOM elements, with full MutationObserver support.

✅ Why This Exists

YouTube aggressively surfaces member-locked content even to non-members, including Premium users — effectively advertising gated material inside your regular feed. This script restores control by hiding what you can't access, without breaking the layout or leaving blank spaces.


📸 Before and After

Side-by-side: Left = Script Disabled, Right = Script Enabled

before-and-after

No manual filtering. No leftover tiles. No wasted space.


⚙️ How It Works

  • Intercepts fetch() and XMLHttpRequest responses to scrub member-only items from YouTube’s JSON API before the UI renders.
  • Recursively detects “members-only” markers in deeply nested structures (style, badgeStyle, text, etc.).
  • Removes DOM elements as fallback, scanning for badges like badge-style-type-members-only and pruning matching tiles.
  • Reacts to YouTube’s dynamic navigation (yt-navigate-finish, yt-page-data-updated) to re-scan content that loads after initial page load.

💡 Design Goals

  • Zero visual footprint
  • Fail-open (never breaks the page)
  • Lightweight and self-contained
  • Doesn’t bypass paywalls or spoof credentials
  • No external dependencies or tracking

🔒 Safety & Terms

This script:

  • Runs client-side only
  • Makes no additional server requests
  • Doesn’t access private content or perform unauthorized actions
  • Is intended for personal use only, in accordance with YouTube’s TOS

Think of it like a content filter — not a bypass.


🧪 Known Limitations

  • May miss newly introduced "members-only" formats or UI elements (e.g., Shorts, future renderer types)
  • Script may require occasional updates when YouTube changes its internal structure
  • Currently tested on English locale; detection may miss localized labels in other languages

📦 Installation

  1. Install a userscript manager:

  2. Install the script from Greasy Fork:


💬 Feedback & Contributions

Bug reports, feature requests, and contributions welcome via GitHub Issues.

This project is open source (MIT License).


✍️ Author

Mr005K
Built out of necessity. Maintained out of principle.