aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2023-05-29 14:39:44 -0400
committerAjay <[email protected]>2023-05-29 14:39:44 -0400
commitc7dad095552e6ecf64e097cead1fb83dc1607886 (patch)
treed978ca8fc01ec976482677545ee0eef876c3b260
parent198ae9c41f741cdc7e9e7001cbcba4b97d66ea57 (diff)
downloadSponsorBlock-c7dad095552e6ecf64e097cead1fb83dc1607886.tar.gz
SponsorBlock-c7dad095552e6ecf64e097cead1fb83dc1607886.zip
Add warning when enabling filler
m---------public/_locales0
-rw-r--r--src/components/options/CategorySkipOptionsComponent.tsx6
2 files changed, 6 insertions, 0 deletions
diff --git a/public/_locales b/public/_locales
-Subproject 306f1deff30197b30bc57cfa9ee60c130744963
+Subproject c0e6d8aaef87b5745312db439d6a3dea04a4d9b
diff --git a/src/components/options/CategorySkipOptionsComponent.tsx b/src/components/options/CategorySkipOptionsComponent.tsx
index b7b59c97..d9d89cf0 100644
--- a/src/components/options/CategorySkipOptionsComponent.tsx
+++ b/src/components/options/CategorySkipOptionsComponent.tsx
@@ -139,6 +139,12 @@ class CategorySkipOptionsComponent extends React.Component<CategorySkipOptionsPr
case "autoSkip":
option = CategorySkipOption.AutoSkip;
+ if (this.props.category === "filler" && !Config.config.isVip) {
+ if (!confirm(chrome.i18n.getMessage("FillerWarning"))) {
+ event.target.value = "disable";
+ }
+ }
+
break;
}