Skip to content

Commit

Permalink
Merge pull request #2691 from marvinl803/issue-2660
Browse files Browse the repository at this point in the history
Added feature to remove context buttons from youtube shorts.
  • Loading branch information
ImprovedTube authored Nov 27, 2024
2 parents 643d833 + 76a23d6 commit 6bc241f
Show file tree
Hide file tree
Showing 3 changed files with 13 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 @@
"subtitleLine": {
"message": "Hide subtitle red line"
},
"removeContextButtons": {
"message": "Remove context buttons on shorts"
},
"RemoveSubtitlesForLyrics": {
"message": "Remove subtitles for lyrics"
},
Expand Down
7 changes: 6 additions & 1 deletion js&css/extension/www.youtube.com/general/general.css
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,12 @@ html[it-scroll-to-top='true'] #it-scroll-to-top:hover {
html[it-remove-member-only='true'] ytd-grid-video-renderer:has(.badge-style-type-members-only) {
display: none !important;
}

/*--------------------------------------------------------------
# REMOVE CONTEXT BUTTONS ON SHORTS
--------------------------------------------------------------*/
html[it-remove-context-buttons='true'] yt-shorts-suggested-action-view-model.YtShortsSuggestedActionViewModelStaticHost {
display: none !important;
}
/*--------------------------------------------------------------
# Popup Window Button
--------------------------------------------------------------*/
Expand Down
4 changes: 4 additions & 0 deletions menu/skeleton-parts/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,10 @@ extension.skeleton.main.layers.section.general = {
component: 'switch',
text: 'removeMemberOnly',
},
remove_context_buttons: {
component: 'switch',
text: 'removeContextButtons',
},
}
}
},
Expand Down

0 comments on commit 6bc241f

Please sign in to comment.