mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 05:57:07 +03:00
Enable chapter by default
This commit is contained in:
@@ -145,6 +145,19 @@ class ConfigClass extends ProtoConfig<SBConfig, SBStorage> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function migrateOldSyncFormats(config: SBConfig) {
|
function migrateOldSyncFormats(config: SBConfig) {
|
||||||
|
if (!config["chapterCategoryAdded"]) {
|
||||||
|
config["chapterCategoryAdded"] = true;
|
||||||
|
|
||||||
|
if (!config.categorySelections.some((s) => s.name === "chapter")) {
|
||||||
|
config.categorySelections.push({
|
||||||
|
name: "chapter" as Category,
|
||||||
|
option: CategorySkipOption.ShowOverlay
|
||||||
|
});
|
||||||
|
|
||||||
|
config.categorySelections = config.categorySelections;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (config["segmentTimes"]) {
|
if (config["segmentTimes"]) {
|
||||||
const unsubmittedSegments = {};
|
const unsubmittedSegments = {};
|
||||||
for (const item of config["segmentTimes"]) {
|
for (const item of config["segmentTimes"]) {
|
||||||
@@ -325,6 +338,9 @@ const syncDefaults = {
|
|||||||
}, {
|
}, {
|
||||||
name: "exclusive_access" as Category,
|
name: "exclusive_access" as Category,
|
||||||
option: CategorySkipOption.ShowOverlay
|
option: CategorySkipOption.ShowOverlay
|
||||||
|
}, {
|
||||||
|
name: "chapter" as Category,
|
||||||
|
option: CategorySkipOption.ShowOverlay
|
||||||
}],
|
}],
|
||||||
|
|
||||||
payments: {
|
payments: {
|
||||||
|
|||||||
Reference in New Issue
Block a user