Skip to content
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

context-menu error #153

Closed
i-CraftY opened this issue Mar 11, 2023 · 4 comments
Closed

context-menu error #153

i-CraftY opened this issue Mar 11, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@i-CraftY
Copy link

i-CraftY commented Mar 11, 2023

右键后仅能显示部分脚本的二级菜单,剩下的只显示脚本名字

@i-CraftY i-CraftY closed this as not planned Won't fix, can't repro, duplicate, stale Mar 11, 2023
@i-CraftY i-CraftY reopened this Mar 11, 2023
@i-CraftY
Copy link
Author

i-CraftY commented Mar 11, 2023

概率触发吗😥

// ==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");
}

测试用的是这个例子,有些会显示。这个就不会,用油猴可以。

@i-CraftY
Copy link
Author

还有更恐怖的,点了一个,其他全没了。
动画

@CodFrm CodFrm added the bug Something isn't working label Mar 11, 2023
@CodFrm
Copy link
Member

CodFrm commented Mar 11, 2023

看起来是有bug,下个版本修复一下

CodFrm added a commit that referenced this issue Mar 17, 2023
@CodFrm
Copy link
Member

CodFrm commented Mar 18, 2023

@CodFrm CodFrm closed this as completed Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants