Skip to content

Commit

Permalink
Merge pull request #2683 from marvinl803/issue-2681
Browse files Browse the repository at this point in the history
Added feature in which users can remove members only videos
  • Loading branch information
ImprovedTube authored Nov 23, 2024
2 parents b14b44a + 93b8015 commit bdd5525
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1220,6 +1220,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

0 comments on commit bdd5525

Please sign in to comment.