Greasy Fork is available in English.

GM_config

GreaseMonkey Script Configurator

< Відгуки до GM_config

Question/comment

§
Опубліковано: 02.08.2015

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.

§
Опубліковано: 02.09.2015

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.

Опублікувати відповідь

Sign in to post a reply.