From 96e4957f7131dac780d822d0abfceb36aa0d53af Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 8 Nov 2021 19:19:00 -0500 Subject: Add filler category and allow mute intro, outro, preview --- config.json.example | 10 ++++++---- public/_locales/en/messages.json | 9 +++++++++ src/config.ts | 10 ++++++++++ 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/config.json.example b/config.json.example index f6916065..7ff22bb7 100644 --- a/config.json.example +++ b/config.json.example @@ -2,14 +2,15 @@ "serverAddress": "https://sponsor.ajay.app", "testingServerAddress": "https://sponsor.ajay.app/test", "serverAddressComment": "This specifies the default SponsorBlock server to connect to", - "categoryList": ["sponsor", "selfpromo", "interaction", "poi_highlight", "intro", "outro", "preview", "music_offtopic"], + "categoryList": ["sponsor", "selfpromo", "interaction", "poi_highlight", "intro", "outro", "preview", "filler", "music_offtopic"], "categorySupport": { "sponsor": ["skip", "mute"], "selfpromo": ["skip", "mute"], "interaction": ["skip", "mute"], - "intro": ["skip"], - "outro": ["skip"], - "preview": ["skip"], + "intro": ["skip", "mute"], + "outro": ["skip", "mute"], + "preview": ["skip", "mute"], + "filler": ["skip", "mute"], "music_offtopic": ["skip"], "poi_highlight": ["skip"] }, @@ -20,6 +21,7 @@ "intro": "https://wiki.sponsor.ajay.app/w/Intermission/Intro_Animation", "outro": "https://wiki.sponsor.ajay.app/w/Endcards/Credits", "preview": "https://wiki.sponsor.ajay.app/w/Preview/Recap", + "filler": "https://wiki.sponsor.ajay.app/w/Filler_Tangent", "music_offtopic": "https://wiki.sponsor.ajay.app/w/Music:_Non-Music_Section", "poi_highlight": "https://wiki.sponsor.ajay.app/w/Highlight", "guidelines": "https://wiki.sponsor.ajay.app/w/Guidelines", diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 3d575832..a2da981b 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -563,6 +563,15 @@ "category_preview_description": { "message": "Quick recap of previous episodes, or a preview of what's coming up later in the current video. Meant for edited together clips, not for spoken summaries." }, + "category_filler": { + "message": "Filler Tangent" + }, + "category_filler_description": { + "message": "Tangential scenes added only for filler or humor that are not required to understand the main content of the video. This should not include segments providing context or background details." + }, + "category_filler_short": { + "message": "Filler" + }, "category_music_offtopic": { "message": "Music: Non-Music Section" }, diff --git a/src/config.ts b/src/config.ts index 51c1f06e..fadfffc2 100644 --- a/src/config.ts +++ b/src/config.ts @@ -75,6 +75,8 @@ interface SBConfig { "preview-music_offtopic": PreviewBarOption, "poi_highlight": PreviewBarOption, "preview-poi_highlight": PreviewBarOption, + "filler": PreviewBarOption, + "preview-filler": PreviewBarOption, } } @@ -283,6 +285,14 @@ const Config: SBObject = { "preview-poi_highlight": { color: "#9b044c", opacity: "0.7" + }, + "filler": { + color: "#7300FF", + opacity: "0.9" + }, + "preview-filler": { + color: "#2E0066", + opacity: "0.7" } } }, -- cgit v1.2.3