Skip to content

Commit

Permalink
Merge pull request #2682 from marvinl803/issue-2680
Browse files Browse the repository at this point in the history
Added functionality to remove the red line under the caption button.
  • Loading branch information
ImprovedTube authored Nov 23, 2024
2 parents c78dcd4 + a1f3ba3 commit b14b44a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1214,6 +1214,9 @@
"subtitles": {
"message": "Subtitles"
},
"subtitleLine": {
"message": "Hide subtitle red line"
},
"RemoveSubtitlesForLyrics": {
"message": "Remove subtitles for lyrics"
},
Expand Down
3 changes: 3 additions & 0 deletions js&css/extension/www.youtube.com/appearance/player/player.css
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ html[it-player-remote-button=true] .ytp-remote-button,
html[it-player-chaptertitle-button=true] .ytp-chapter-container {
display: none !important;
}
html[it-player-subtitlesLine-button=true] button.ytp-subtitles-button.ytp-button::after{
display: none;
}
/*--------------------------------------------------------------
# HIDE ANNOTATIONS
--------------------------------------------------------------*/
Expand Down
4 changes: 4 additions & 0 deletions menu/skeleton-parts/appearance.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ extension.skeleton.main.layers.section.appearance.on.click.player = {
component: "switch",
text: "subtitles"
},
player_subtitlesLine_button: {
component: "switch",
text: "subtitleLine"
},
player_miniplayer_button: {
component: "switch",
text: "nativeMiniPlayer"
Expand Down

0 comments on commit b14b44a

Please sign in to comment.