SponsorBlock
Metadata
Section titled “Metadata”| Repo | https://github.com/firefox-extensions-declarative/SponsorBlock-declarative |
| Extension ID | sponsorBlocker@ajay.app |
Building
Section titled “Building”Run npm install and then npm run build:firefox.
To create the XPI, run:
npx web-ext build -s dist -a web-ext-artifactsThe XPI will be located in web-ext-artifacts/.
Keybind
Section titled “Keybind”Keyboard shortcut.
Key name.
Type: string | null
Keyboard code.
Type: string | null
Whether Ctrl is required.
Type: boolean | null
Whether Alt is required.
Type: boolean | null
Whether Shift is required.
Type: boolean | null
CategorySelection
Section titled “CategorySelection”Skip behavior for one category.
Category name.
Type: string
Common values include "sponsor", "selfpromo", "interaction", "intro", "outro", "preview", "music_offtopic", "poi_highlight", "filler", "exclusive_access", and "chapter".
option
Section titled “option”Skip behavior.
Type: -2 | -1 | 0 | 1 | 2
-2: fallback to default-1: disabled0: show overlay1: manual skip2: auto skip
PreviewBarOption
Section titled “PreviewBarOption”Preview bar style.
Bar color.
Type: string
opacity
Section titled “opacity”Bar opacity.
Type: string
Options
Section titled “Options”This section lists supported policy preferences. It intentionally omits account IDs, counters, payment state, and other runtime/stateful values even if they exist in sync storage.
permissions
Section titled “permissions”Per-category submission permissions.
Type: Record<string, { canSubmit: boolean }>
Default: {}
defaultCategory
Section titled “defaultCategory”Default category when creating segments.
Type: string
Default: "chooseACategory"
segmentListDefaultTab
Section titled “segmentListDefaultTab”Default popup tab.
Type: 0 | 1
Default: 0
0: segments1: chapters
renderSegmentsAsChapters
Section titled “renderSegmentsAsChapters”Render segments as chapters.
Type: boolean
Default: false
forceChannelCheck
Section titled “forceChannelCheck”Force channel check before submission-related actions.
Type: boolean
Default: false
showTimeWithSkips
Section titled “showTimeWithSkips”Show saved time with skips.
Type: boolean
Default: true
disableSkipping
Section titled “disableSkipping”Disable all skipping.
Type: boolean
Default: false
muteSegments
Section titled “muteSegments”Mute muted categories instead of skipping them.
Type: boolean
Default: true
fullVideoSegments
Section titled “fullVideoSegments”Enable support for full-video segments.
Type: boolean
Default: true
fullVideoLabelsOnThumbnails
Section titled “fullVideoLabelsOnThumbnails”Show full-video labels on thumbnails.
Type: boolean
Default: true
manualSkipOnFullVideo
Section titled “manualSkipOnFullVideo”Require manual skip for full-video segments.
Type: boolean
Default: false
trackViewCount
Section titled “trackViewCount”Track total views for stats.
Type: boolean
Default: true
trackViewCountInPrivate
Section titled “trackViewCountInPrivate”Track views in private windows.
Type: boolean
Default: true
trackDownvotes
Section titled “trackDownvotes”Track downvotes locally.
Type: boolean
Default: true
trackDownvotesInPrivate
Section titled “trackDownvotesInPrivate”Track downvotes in private windows.
Type: boolean
Default: false
dontShowNotice
Section titled “dontShowNotice”Disable skip notices.
Type: boolean
Default: false
showUpcomingNotice
Section titled “showUpcomingNotice”Show upcoming skip notice.
Type: boolean
Default: false
noticeVisibilityMode
Section titled “noticeVisibilityMode”Skip notice display mode.
Type: 0 | 1 | 2 | 3 | 4
Default: 3
0: full size1: mini for auto-skip2: mini for all3: faded for auto-skip4: faded for all
hideVideoPlayerControls
Section titled “hideVideoPlayerControls”Hide SponsorBlock player controls.
Type: boolean
Default: false
hideInfoButtonPlayerControls
Section titled “hideInfoButtonPlayerControls”Hide info button in player controls.
Type: boolean
Default: false
hideDeleteButtonPlayerControls
Section titled “hideDeleteButtonPlayerControls”Hide delete button in player controls.
Type: boolean
Default: false
hideUploadButtonPlayerControls
Section titled “hideUploadButtonPlayerControls”Hide upload button in player controls.
Type: boolean
Default: false
hideSkipButtonPlayerControls
Section titled “hideSkipButtonPlayerControls”Hide skip button in player controls.
Type: boolean
Default: false
hideDiscordLink
Section titled “hideDiscordLink”Hide Discord link.
Type: boolean
Default: false
invidiousInstances
Section titled “invidiousInstances”List of Invidious instances.
Type: Array<string>
Default: []
supportInvidious
Section titled “supportInvidious”Enable Invidious support.
Type: boolean
Default: false
serverAddress
Section titled “serverAddress”SponsorBlock API server.
Type: string
Default: value from repo config.json
minDuration
Section titled “minDuration”Minimum segment duration to skip.
Type: number
Default: 0
skipNoticeDuration
Section titled “skipNoticeDuration”How long skip notices stay visible.
Type: number
Default: 4
audioNotificationOnSkip
Section titled “audioNotificationOnSkip”Play audio notification on skip.
Type: boolean
Default: false
checkForUnlistedVideos
Section titled “checkForUnlistedVideos”Check for unlisted videos during submission flows.
Type: boolean
Default: false
testingServer
Section titled “testingServer”Use testing server.
Type: boolean
Default: false
allowExperiments
Section titled “allowExperiments”Enable experimental features.
Type: boolean
Default: true
showDonationLink
Section titled “showDonationLink”Show donation link.
Type: boolean
Default: true
showUpsells
Section titled “showUpsells”Show upsell UI.
Type: boolean
Default: true
showNewFeaturePopups
Section titled “showNewFeaturePopups”Show new feature popups.
Type: boolean
Default: true
autoHideInfoButton
Section titled “autoHideInfoButton”Auto-hide info button.
Type: boolean
Default: true
autoSkipOnMusicVideos
Section titled “autoSkipOnMusicVideos”Auto-skip on music videos.
Type: boolean
Default: false
skipNonMusicOnlyOnYoutubeMusic
Section titled “skipNonMusicOnlyOnYoutubeMusic”Only skip non-music segments on YouTube Music.
Type: boolean
Default: false
colorPalette
Section titled “colorPalette”Named colors used by UI.
Type: { red: string; white: string; locked: string }
Default: { red: "#780303", white: "#ffffff", locked: "#ffc83d" }
scrollToEditTimeUpdate
Section titled “scrollToEditTimeUpdate”Enable updated scroll-to-edit-time behavior.
Type: boolean
Default: false
darkMode
Section titled “darkMode”Use dark mode in extension UI.
Type: boolean
Default: true
showCategoryGuidelines
Section titled “showCategoryGuidelines”Show category guidelines.
Type: boolean
Default: true
showCategoryWithoutPermission
Section titled “showCategoryWithoutPermission”Show categories without permission.
Type: boolean
Default: false
showSegmentNameInChapterBar
Section titled “showSegmentNameInChapterBar”Show segment names in chapter bar.
Type: boolean
Default: true
showAutogeneratedChapters
Section titled “showAutogeneratedChapters”Show autogenerated YouTube chapters.
Type: boolean
Default: true
useVirtualTime
Section titled “useVirtualTime”Use virtual time for segment timing.
Type: boolean
Default: true
showSegmentFailedToFetchWarning
Section titled “showSegmentFailedToFetchWarning”Show warning when segments fail to fetch.
Type: boolean
Default: true
allowScrollingToEdit
Section titled “allowScrollingToEdit”Allow scrolling to edit timestamps.
Type: boolean
Default: true
showZoomToFillError2
Section titled “showZoomToFillError2”Show zoom-to-fill warning.
Type: boolean
Default: true
cleanPopup
Section titled “cleanPopup”Use cleaner popup layout.
Type: boolean
Default: false
hideSegmentCreationInPopup
Section titled “hideSegmentCreationInPopup”Hide popup segment creation UI.
Type: boolean
Default: false
prideTheme
Section titled “prideTheme”Enable pride theme.
Type: boolean
Default: false
skipKeybind
Section titled “skipKeybind”Skip keybind.
Type: Keybind
Default: { key: "Enter" }
skipToHighlightKeybind
Section titled “skipToHighlightKeybind”Skip to highlight keybind.
Type: Keybind
Default: { key: "Enter", ctrl: true }
startSponsorKeybind
Section titled “startSponsorKeybind”Start segment keybind.
Type: Keybind
Default: { key: ";" }
submitKeybind
Section titled “submitKeybind”Submit keybind.
Type: Keybind
Default: { key: "'" }
actuallySubmitKeybind
Section titled “actuallySubmitKeybind”Confirm submit keybind.
Type: Keybind
Default: { key: "'", ctrl: true }
previewKeybind
Section titled “previewKeybind”Preview keybind.
Type: Keybind
Default: { key: ";", ctrl: true }
nextChapterKeybind
Section titled “nextChapterKeybind”Next chapter keybind.
Type: Keybind
Default: { key: "ArrowRight", ctrl: true }
previousChapterKeybind
Section titled “previousChapterKeybind”Previous chapter keybind.
Type: Keybind
Default: { key: "ArrowLeft", ctrl: true }
closeSkipNoticeKeybind
Section titled “closeSkipNoticeKeybind”Close skip notice keybind.
Type: Keybind
Default: { key: "Backspace" }
downvoteKeybind
Section titled “downvoteKeybind”Downvote keybind.
Type: Keybind
Default: { key: "h", shift: true }
upvoteKeybind
Section titled “upvoteKeybind”Upvote keybind.
Type: Keybind
Default: { key: "g", shift: true }
categorySelections
Section titled “categorySelections”Skip behavior per category.
Type: Array<CategorySelection>
Default: sponsor auto-skip, poi highlight manual skip, exclusive access show overlay, chapter show overlay
barTypes
Section titled “barTypes”Preview bar colors and opacity for each category.
Type: Record<string, PreviewBarOption>
Default: see src/config.ts