Browse Source

ref: set autoLikeChannels cfg option to false & advanced

Sv443 8 months ago
parent
commit
90e37d077b
2 changed files with 12 additions and 6 deletions
  1. 5 3
      src/config.ts
  2. 7 3
      src/features/index.ts

+ 5 - 3
src/config.ts

@@ -88,11 +88,13 @@ export const migrations: DataMigrationsDict = {
     "removeUpgradeTab" in newData && delete newData.removeUpgradeTab;
     return newData;
   },
+
+  // TODO: once advanced lyrics filtering is fully implemented, clear cache on migration
   // TODO(v2.2): use default for "autoLikePlayerBarToggleBtn"
+  // TODO(v2.2): set autoLikeChannels to true on migration once feature is fully implemented
 
-  // TODO: once advanced filtering is fully implemented, clear cache on migration to fv6
-  // 6 -> 7 (vX.X)
-  // 7: (oldData: FeatureConfig) => 
+  // 6 -> 7 (v2.2)
+  // 7: (oldData: FeatureConfig) =>
 } as const satisfies DataMigrationsDict;
 
 /** Uses the default config as the base, then overwrites all values with the passed {@linkcode baseData}, then sets all passed {@linkcode resetKeys} to their default values */

+ 7 - 3
src/features/index.ts

@@ -244,7 +244,8 @@ export const featInfo = {
     reloadRequired: false,
     enable: noop,
   },
-  // archived idea for future version:
+  // archived idea for future version
+  // (shows a bar under the like/dislike buttons that shows the ratio of likes to dislikes)
   // showVoteRatio: {
   //   type: "select",
   //   category: "layout",
@@ -483,8 +484,9 @@ export const featInfo = {
   autoLikeChannels: {
     type: "toggle",
     category: "input",
-    default: true,
-    textAdornment: adornments.reloadRequired,
+    default: false,
+    advanced: true,
+    textAdornment: () => combineAdornments([adornments.advanced, adornments.reloadRequired]),
   },
   autoLikeChannelToggleBtn: {
     type: "toggle",
@@ -492,6 +494,8 @@ export const featInfo = {
     default: true,
     reloadRequired: false,
     enable: noop,
+    advanced: true,
+    textAdornment: adornments.advanced,
   },
   // TODO(v2.2):
   // autoLikePlayerBarToggleBtn: {