Sv443 hace 1 año
padre
commit
40113664d4
Se han modificado 1 ficheros con 9 adiciones y 6 borrados
  1. 9 6
      dist/BetterYTM.user.js

+ 9 - 6
dist/BetterYTM.user.js

@@ -243,7 +243,7 @@ const scriptInfo = {
     name: GM.info.script.name,
     version: GM.info.script.version,
     namespace: GM.info.script.namespace,
-    buildNumber: "2f84fc4", // asserted as generic string instead of literal
+    buildNumber: "ca7a449", // asserted as generic string instead of literal
 };/** Options that are applied to every SelectorObserver instance */
 const defaultObserverOptions = {
     defaultDebounce: 100,
@@ -3777,6 +3777,8 @@ const cfgMgr = new UserUtils.ConfigManager({
     formatVersion,
     defaultConfig,
     migrations,
+    encodeData: (data) => UserUtils.compress(data, compressionFormat, "string"),
+    decodeData: (data) => UserUtils.decompress(data, compressionFormat, "string"),
 });
 /** Initializes the ConfigManager instance and loads persistent data into memory */
 function initConfig() {
@@ -4331,11 +4333,6 @@ function preInit() {
 function init() {
     var _a, _b;
     return __awaiter(this, void 0, void 0, function* () {
-        try {
-            registerMenuCommands();
-        }
-        catch (e) {
-        }
         try {
             document.addEventListener("DOMContentLoaded", () => {
                 domLoaded = true;
@@ -4425,6 +4422,12 @@ function onDomLoad() {
             }
             Promise.allSettled(ftInit).then(() => {
                 emitInterface("bytm:ready");
+                try {
+                    registerMenuCommands();
+                }
+                catch (e) {
+                    void e;
+                }
             });
         }
         catch (err) {