其实是使用了一个很简单的函数GM_registerMenuCommand,他的参数有3个 1:显示的文字 2:点击后触发的函数 3:快捷键 例如 GM_registerMenuCommand("打开设置", setting, "h"); 配合另外两个函数 GM_setValue(变量名,值); //(用来设置一个变量,打开其他网页时,重启浏览器都不会变) GM_getValue(变量名); ...
href; //--- Otherwise set the continue value to true to allow Super Auto Feed, Open Coves to open the next cove } else { GM_setValue("continueValue", true); console.log("continueValue is "+GM_getValue("continueValue")); setTimeout(function() { window.close(); }, (2 * 1000))...