Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added feature in which users can remove members only videos #2683

Merged
merged 2 commits into from
Nov 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,9 @@
"RemoveSubtitlesForLyrics": {
"message": "Remove subtitles for lyrics"
},
"removeMemberOnly": {
"message": "Remove member only videos"
},
"sunset": {
"message": "Sunset"
},
Expand Down
7 changes: 7 additions & 0 deletions js&css/extension/www.youtube.com/general/general.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Remove related search results
# Scroll bar
# Add "Scroll to top"
# Remove members only videos
# Limit page width
# Squared user images
# Mark watched videos
Expand Down Expand Up @@ -266,6 +267,12 @@ html[it-scroll-to-top='true'] #it-scroll-to-top:hover {
transform: translateY(4px) scale(.975) !important;
box-shadow: 0 1px 1px 0 #d60024, 0 1px 2px rgb(82, 0, 14, .32) !important;
}
/*--------------------------------------------------------------
# REMOVE MEMBER ONLY VIDEOS
--------------------------------------------------------------*/
html[it-remove-member-only='true'] ytd-grid-video-renderer:has(.badge-style-type-members-only) {
display: none !important;
}

/*--------------------------------------------------------------
# Popup Window Button
Expand Down
6 changes: 5 additions & 1 deletion menu/skeleton-parts/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,11 @@ extension.skeleton.main.layers.section.general = {
component: 'switch',
text: 'addScrollToTop',
tags: 'up'
}
},
remove_member_only: {
component: 'switch',
text: 'removeMemberOnly',
},
}
}
},
Expand Down
Loading