Skip to content

Commit

Permalink
feat: add new switch button to player skeleton-parts
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdanwan committed Nov 23, 2024
1 parent 15669b0 commit 5f5336b
Show file tree
Hide file tree
Showing 3 changed files with 10 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 @@ -650,6 +650,9 @@
"hideHomePageShorts": {
"message": "Hide Shorts on the home page"
},
"hideIncludesPaidPromotion": {
"message": "Hide Includes Paid Promotion"
},
"hideMore": {
"message": "Hide '...'"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# Hide annotations
# Hide endscreen
# Hide cards
# Hide "Includes Paid Promotion"
# Show cards on mouse hover
# Hide "Scroll for details"
# Player Size
Expand Down Expand Up @@ -631,7 +632,7 @@ html[data-page-type=video][it-hide-top-loading-bar=true] .ytp-loading-bar {
/*--------------------------------------------------------------
# HIDE Includes Paid Promotion
--------------------------------------------------------------*/
.ytp-paid-content-overlay,
html[data-page-type=video][it-hide-includes-paid-promotion=true] .ytp-paid-content-overlay,
.ytp-paid-content-overlay-link {
display: none !important;
}
5 changes: 5 additions & 0 deletions menu/skeleton-parts/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ extension.skeleton.main.layers.section.player.on.click = {
text: 'autoplayDisable',
storage: 'player_autoplay_disable'
},
hide_includes_paid_promotion:{
component: 'switch',
text: 'hideIncludesPaidPromotion',
storage: 'hide_includes_paid_promotion',
},
up_next_autoplay: {
component: 'switch',
text: 'upNextAutoplay',
Expand Down

0 comments on commit 5f5336b

Please sign in to comment.