mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-12 14:37:23 +03:00
Added code to remove off-topic from category selections.
That category has been removed.
This commit is contained in:
@@ -281,6 +281,16 @@ async function migrateOldFormats() {
|
|||||||
|
|
||||||
Config.config.whitelistedChannels = newChannelList;
|
Config.config.whitelistedChannels = newChannelList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if off-topic category needs to be removed
|
||||||
|
for (let i = 0; i < Config.config.categorySelections.length; i++) {
|
||||||
|
if (Config.config.categorySelections[i].name === "offtopic") {
|
||||||
|
Config.config.categorySelections.splice(i);
|
||||||
|
// Call set listener
|
||||||
|
Config.config.categorySelections = Config.config.categorySelections;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function setupConfig() {
|
async function setupConfig() {
|
||||||
|
|||||||
Reference in New Issue
Block a user