diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 095a87606..de54c4de9 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -650,6 +650,9 @@ "hideHomePageShorts": { "message": "Hide Shorts on the home page" }, + "hideIncludesPaidPromotion": { + "message": "Hide Includes Paid Promotion" + }, "hideMore": { "message": "Hide '...'" }, diff --git a/js&css/extension/www.youtube.com/appearance/player/player.css b/js&css/extension/www.youtube.com/appearance/player/player.css index 217ca57bf..af780c402 100644 --- a/js&css/extension/www.youtube.com/appearance/player/player.css +++ b/js&css/extension/www.youtube.com/appearance/player/player.css @@ -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 @@ -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; } \ No newline at end of file diff --git a/menu/skeleton-parts/player.js b/menu/skeleton-parts/player.js index dee256eb3..2e0fe2f6c 100644 --- a/menu/skeleton-parts/player.js +++ b/menu/skeleton-parts/player.js @@ -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',