Skip to content

Commit f4d2558

Browse files
committed
Add seperate hook category
1 parent f9f6ac0 commit f4d2558

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

config.json.example

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"serverAddress": "https://sponsor.ajay.app",
33
"testingServerAddress": "https://sponsor.ajay.app/test",
44
"serverAddressComment": "This specifies the default SponsorBlock server to connect to",
5-
"categoryList": ["sponsor", "selfpromo", "exclusive_access", "interaction", "poi_highlight", "intro", "outro", "preview", "filler", "chapter", "music_offtopic"],
5+
"categoryList": ["sponsor", "selfpromo", "exclusive_access", "interaction", "poi_highlight", "intro", "outro", "preview", "hook", "filler", "chapter", "music_offtopic"],
66
"categorySupport": {
77
"sponsor": ["skip", "mute", "full"],
88
"selfpromo": ["skip", "mute", "full"],
@@ -11,6 +11,7 @@
1111
"intro": ["skip", "mute"],
1212
"outro": ["skip", "mute"],
1313
"preview": ["skip", "mute"],
14+
"hook": ["skip", "mute"],
1415
"filler": ["skip", "mute"],
1516
"music_offtopic": ["skip"],
1617
"poi_highlight": ["poi"],
@@ -24,6 +25,7 @@
2425
"intro": "https://wiki.sponsor.ajay.app/w/Intermission/Intro_Animation",
2526
"outro": "https://wiki.sponsor.ajay.app/w/Endcards/Credits",
2627
"preview": "https://wiki.sponsor.ajay.app/w/Preview/Recap",
28+
"hook": "https://wiki.sponsor.ajay.app/w/Hook/Greetings",
2729
"filler": "https://wiki.sponsor.ajay.app/w/Tangents/Jokes",
2830
"music_offtopic": "https://wiki.sponsor.ajay.app/w/Music:_Non-Music_Section",
2931
"poi_highlight": "https://wiki.sponsor.ajay.app/w/Highlight",

public/_locales

src/config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,14 @@ const syncDefaults = {
459459
color: "#005799",
460460
opacity: "0.7"
461461
},
462+
"hook": {
463+
color: "#395699",
464+
opacity: "0.8"
465+
},
466+
"preview-hook": {
467+
color: "#273963",
468+
opacity: "0.7"
469+
},
462470
"music_offtopic": {
463471
color: "#ff9900",
464472
opacity: "0.7"

src/utils/constants.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,23 @@ export function getGuidelineInfo(category: Category): TextBox[] {
9898
icon: "icons/right-arrow.svg",
9999
text: chrome.i18n.getMessage(`generic_guideline2`)
100100
}];
101+
case "hook":
102+
return [{
103+
icon: "icons/campaign.svg",
104+
text: chrome.i18n.getMessage(`category_${category}_guideline1`)
105+
}, {
106+
icon: "icons/check-smaller.svg",
107+
text: chrome.i18n.getMessage(`category_${category}_guideline2`)
108+
}, {
109+
icon: "icons/close-smaller.svg",
110+
text: chrome.i18n.getMessage(`category_${category}_guideline3`)
111+
}, {
112+
icon: "icons/segway.png",
113+
text: chrome.i18n.getMessage(`generic_guideline1`)
114+
}, {
115+
icon: "icons/right-arrow.svg",
116+
text: chrome.i18n.getMessage(`generic_guideline2`)
117+
}];
101118
case "filler":
102119
return [{
103120
icon: "icons/stopwatch.svg",

0 commit comments

Comments
 (0)