소스 검색

ref: remove dbg menu command

Sv443 7 달 전
부모
커밋
95d5f52f37
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      src/index.ts

+ 2 - 4
src/index.ts

@@ -340,8 +340,6 @@ function registerDevCommands() {
   if(mode !== "development")
   if(mode !== "development")
     return;
     return;
 
 
-  GM.registerMenuCommand("Open plugin list", () => getPluginListDialog().then(dlg => dlg.open()));
-
   GM.registerMenuCommand("Reset config", async () => {
   GM.registerMenuCommand("Reset config", async () => {
     if(confirm("Reset the configuration to its default values?\nThis will automatically reload the page.")) {
     if(confirm("Reset the configuration to its default values?\nThis will automatically reload the page.")) {
       await clearConfig();
       await clearConfig();
@@ -470,13 +468,13 @@ function registerDevCommands() {
     }
     }
   });
   });
 
 
-  GM.registerMenuCommand("Export using DataStoreSerializer", async () => {
+  GM.registerMenuCommand("Export all data using DataStoreSerializer", async () => {
     const ser = await storeSerializer.serialize();
     const ser = await storeSerializer.serialize();
     dbg("Serialized data stores:", JSON.stringify(JSON.parse(ser)));
     dbg("Serialized data stores:", JSON.stringify(JSON.parse(ser)));
     alert("See console.");
     alert("See console.");
   });
   });
 
 
-  GM.registerMenuCommand("Import using DataStoreSerializer", async () => {
+  GM.registerMenuCommand("Import all data using DataStoreSerializer", async () => {
     const input = await showPrompt({ type: "prompt", message: "Enter the serialized data to import:" });
     const input = await showPrompt({ type: "prompt", message: "Enter the serialized data to import:" });
     if(input && input.length > 0) {
     if(input && input.length > 0) {
       await storeSerializer.deserialize(input);
       await storeSerializer.deserialize(input);