We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
最近在写一个跨网页的脚本,发现了GM_addValueChangeListener的这个问题。 同样的写法在 Tampermoney 里运行正常,而脚本猫里无效。由于脚本的代码过于复杂,下面的代码是同样的思路,能复现该问题。
// ==UserScript== // @name New Userscript // @match *://www.baidu.com/ // @match *://fanyi.baidu.com/* // @grant GM_setValue // @grant GM_addValueChangeListener // ==/UserScript== if (document.domain == "fanyi.baidu.com") $('#baidu_translate_input').keyup(function () { GM_setValue("text", document.getElementById("baidu_translate_input").value) }) else GM_addValueChangeListener("text", function (name, old_value, new_value, remote) { console.log(name, old_value, new_value, remote) document.querySelector("#kw").value = new_value })
另外,脚本猫的编辑页面有些小问题:
The text was updated successfully, but these errors were encountered:
GM_addValueChangeListener之前反馈好像是有点问题,这几天开始闲下来了,继续更新脚本猫
Sorry, something went wrong.
新版本已优化
No branches or pull requests
最近在写一个跨网页的脚本,发现了GM_addValueChangeListener的这个问题。
同样的写法在 Tampermoney 里运行正常,而脚本猫里无效。由于脚本的代码过于复杂,下面的代码是同样的思路,能复现该问题。
另外,脚本猫的编辑页面有些小问题:
The text was updated successfully, but these errors were encountered: