diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 58297e70d..a76a0b440 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1220,6 +1220,9 @@ "RemoveSubtitlesForLyrics": { "message": "Remove subtitles for lyrics" }, + "removeMemberOnly": { + "message": "Remove member only videos" + }, "sunset": { "message": "Sunset" }, diff --git a/js&css/extension/www.youtube.com/general/general.css b/js&css/extension/www.youtube.com/general/general.css index 19e563167..9399f4ac3 100644 --- a/js&css/extension/www.youtube.com/general/general.css +++ b/js&css/extension/www.youtube.com/general/general.css @@ -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 @@ -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 diff --git a/menu/skeleton-parts/general.js b/menu/skeleton-parts/general.js index 71f8a24b5..fedec19bb 100644 --- a/menu/skeleton-parts/general.js +++ b/menu/skeleton-parts/general.js @@ -386,7 +386,11 @@ extension.skeleton.main.layers.section.general = { component: 'switch', text: 'addScrollToTop', tags: 'up' - } + }, + remove_member_only: { + component: 'switch', + text: 'removeMemberOnly', + }, } } },