From 139d35626381e60ab67f4417b2c302d0f1543866 Mon Sep 17 00:00:00 2001 From: enderprism <76617157+enderprism@users.noreply.github.com> Date: Fri, 2 May 2025 22:39:19 +0200 Subject: [PATCH] feat(youtube): optional sponsorblock recoloring (#1735) Co-authored-by: uncenter --- styles/youtube/catppuccin.user.less | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/styles/youtube/catppuccin.user.less b/styles/youtube/catppuccin.user.less index a36249bf..6ea711f0 100644 --- a/styles/youtube/catppuccin.user.less +++ b/styles/youtube/catppuccin.user.less @@ -16,6 +16,7 @@ @var checkbox logo "Enable YouTube logo" 1 @var checkbox oled "Enable black bars" 0 +@var checkbox sponsorBlock "Enable SponsorBlock segments" 1 ==/UserStyle== */ @-moz-document domain("youtube.com") { @@ -349,16 +350,18 @@ --sb-grey-fg-color: @subtext0 !important; --sb-red-bg-color: @accent !important; - --sb-category-sponsor: @green; - --sb-category-selfpromo: @yellow; - --sb-category-exclusive_access: @teal; - --sb-category-interaction: @mauve; - --sb-category-poi_highlight: @pink; - --sb-category-intro: @sky; - --sb-category-outro: @blue; - --sb-category-preview: @sapphire; - --sb-category-filler: @lavender; - --sb-category-music_offtopic: @peach; + & when (@sponsorBlock = 1) { + --sb-category-sponsor: @green; + --sb-category-selfpromo: @yellow; + --sb-category-exclusive_access: @teal; + --sb-category-interaction: @mauve; + --sb-category-poi_highlight: @pink; + --sb-category-intro: @sky; + --sb-category-outro: @blue; + --sb-category-preview: @sapphire; + --sb-category-filler: @lavender; + --sb-category-music_offtopic: @peach; + } } &:not(.style-scope) {