mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 20:47:11 +03:00
Remove category update message
This commit is contained in:
@@ -134,13 +134,6 @@ class SkipNoticeComponent extends React.Component<SkipNoticeProps, SkipNoticeSta
|
|||||||
this.audio.volume = this.contentContainer().v.volume * 0.1;
|
this.audio.volume = this.contentContainer().v.volume * 0.1;
|
||||||
this.audio.play();
|
this.audio.play();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Config.config.categoryUpdateShowCount < 3 && Config.config.categorySelections.length <= 1) {
|
|
||||||
this.setNoticeInfoMessageWithOnClick(() => chrome.runtime.sendMessage({"message": "openConfig"})
|
|
||||||
, chrome.i18n.getMessage("categoryUpdate1"), chrome.i18n.getMessage("categoryUpdate2"));
|
|
||||||
|
|
||||||
Config.config.categoryUpdateShowCount = Config.config.categoryUpdateShowCount + 1
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|||||||
@@ -33,8 +33,6 @@ interface SBConfig {
|
|||||||
checkForUnlistedVideos: boolean,
|
checkForUnlistedVideos: boolean,
|
||||||
testingServer: boolean,
|
testingServer: boolean,
|
||||||
|
|
||||||
categoryUpdateShowCount: number,
|
|
||||||
|
|
||||||
// What categories should be skipped
|
// What categories should be skipped
|
||||||
categorySelections: CategorySelection[],
|
categorySelections: CategorySelection[],
|
||||||
|
|
||||||
@@ -151,8 +149,6 @@ var Config: SBObject = {
|
|||||||
checkForUnlistedVideos: false,
|
checkForUnlistedVideos: false,
|
||||||
testingServer: false,
|
testingServer: false,
|
||||||
|
|
||||||
categoryUpdateShowCount: 0,
|
|
||||||
|
|
||||||
categorySelections: [{
|
categorySelections: [{
|
||||||
name: "sponsor",
|
name: "sponsor",
|
||||||
option: CategorySkipOption.AutoSkip
|
option: CategorySkipOption.AutoSkip
|
||||||
@@ -328,11 +324,14 @@ async function migrateOldFormats() {
|
|||||||
if (Config.config["autoUpvote"]) {
|
if (Config.config["autoUpvote"]) {
|
||||||
chrome.storage.sync.remove("autoUpvote");
|
chrome.storage.sync.remove("autoUpvote");
|
||||||
}
|
}
|
||||||
|
|
||||||
// mobileUpdateShowCount removal
|
// mobileUpdateShowCount removal
|
||||||
if (Config.config["mobileUpdateShowCount"] !== undefined) {
|
if (Config.config["mobileUpdateShowCount"] !== undefined) {
|
||||||
chrome.storage.sync.remove("mobileUpdateShowCount");
|
chrome.storage.sync.remove("mobileUpdateShowCount");
|
||||||
}
|
}
|
||||||
|
// categoryUpdateShowCount removal
|
||||||
|
if (Config.config["categoryUpdateShowCount"] !== undefined) {
|
||||||
|
chrome.storage.sync.remove("categoryUpdateShowCount");
|
||||||
|
}
|
||||||
|
|
||||||
// Channel URLS
|
// Channel URLS
|
||||||
if (Config.config.whitelistedChannels.length > 0 &&
|
if (Config.config.whitelistedChannels.length > 0 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user