Skip to content

Feature: Add option to remove member-only videos from home page#3399

Merged
ImprovedTube merged 1 commit intocode-charity:masterfrom
zFishStick:bug/remove-member-video
Nov 24, 2025
Merged

Feature: Add option to remove member-only videos from home page#3399
ImprovedTube merged 1 commit intocode-charity:masterfrom
zFishStick:bug/remove-member-video

Conversation

@zFishStick
Copy link
Contributor

Related to issue #3386 , i managed to solve this visual bug. Of course, this could be done in other ways, probably by implementing the style into the Css file, but when I tried to do it in this way the problem still occurs when you scroll down and YT loads older video, showing even the 'member only' ones. With mine approach, this doesn't happen.

@ImprovedTube
Copy link
Member

hi! and thank you @zFishStick

the existing feature:

html[it-remove-member-only='true'] ytd-grid-video-renderer:has(.badge-style-type-members-only),
html[it-remove-member-only='true'] ytd-rich-item-renderer:has(.badge-style-type-members-only),

we add all features as attributes to the tag, which is possible efficiently before the DOM loads,

however for rare features or features with complex CSS, we can spend less CPU if use document.head.appendChild(style);

also for modularity and easy updates, we should a have file listing simply all elements of youtube for out features to refer to

//member-only videos
ytd-grid-video-renderer:has(.yt-badge-shape--membership, .badge-style-type-members-only),
ytd-rich-item-renderer:has(.yt-badge-shape--membership, .badge-style-type-members-only) //is .badge-style-type-members-only outdated?
//player
...
//header
...

@ImprovedTube ImprovedTube added 🧩Plan ready Solution or some specification noted; To-Do; steps for implementation (+raw brainstorming too maybe) Structures (UX & ORG & Teamwork) Let's focus on structure! Everything should be as easily seen/found as it is relevant. labels Nov 24, 2025
@ImprovedTube ImprovedTube merged commit 6ed13ec into code-charity:master Nov 24, 2025
1 check passed
@ImprovedTube ImprovedTube added the Open! not to forget | unfinished | waiting label Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Open! not to forget | unfinished | waiting 🧩Plan ready Solution or some specification noted; To-Do; steps for implementation (+raw brainstorming too maybe) Structures (UX & ORG & Teamwork) Let's focus on structure! Everything should be as easily seen/found as it is relevant.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants