GM_config

GreaseMonkey Script Configurator

< 腳本GM_config的回應

提問/評論

§
發表於:2015-08-02

How do I access current value of the field?

Not one saved, but one entered by user without hitting save.
Use case: On my configuration panel I have an input to enter URL of audio file, and a button that should play it. How do I access actual value of the input? Since you create iframe with about:blank URL, I can't access it's content directly.

§
發表於:2015-09-02

Okay, found a workaround: in an event handler, you can use this.ownerDocument.documentElement to get the root element of the DOM tree, and work from there.

發表回覆

登入以回覆

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址