-
Notifications
You must be signed in to change notification settings - Fork 172
context-menu error #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
bug
Something isn't working
Comments
概率触发吗😥 // ==UserScript==
// @name 右键菜单和valude demo
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://bbs.tampermonkey.net.cn/*
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_registerMenuCommand
// @grant GM_unregisterMenuCommand
// ==/UserScript==
let id=GM_registerMenuCommand ("菜单第"+GM_getValue("click_num",0)+"点击",click, "h");
function click(){
GM_unregisterMenuCommand(id);
GM_setValue("click_num",GM_getValue("click_num",0)+1)
id=GM_registerMenuCommand ("菜单第"+GM_getValue("click_num",0)+"点击",click, "h");
} 测试用的是这个例子,有些会显示。这个就不会,用油猴可以。 |
看起来是有bug,下个版本修复一下 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
右键后仅能显示部分脚本的二级菜单,剩下的只显示脚本名字
The text was updated successfully, but these errors were encountered: