🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Members-Only Remover

Filters Members-only entries out of YouTube API responses, and hides member promo UI.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Author
Mr005K
Daily installs
2
Total installs
62
Ratings
1 1 0
Version
1.3.1
Created
2025-11-02
Updated
2025-11-28
Size
9.24 KB
License
MIT
Applies to

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.