Anyone here familiar with Greasemonkey? I need to create a script that replaces an input tags value with the value of my choice. It seems like this would be trivial to do with Greasemonkey buuuuut....I don't have the knowledge to do this (yet).
Any tips before I have to learn this on my own?
<P ID="signature">
It really depends on the page you're trying to use the script on. If the input has a id assigned to it, then the script will be simple. If it doesn't, it'll be a little bit more difficult.
If you can be more specific, I can offer more help.
<P ID="signature">_______________________________________ </P>
> It really depends on the page you're trying to use the
> script on. If the input has a id assigned to it, then the
> script will be simple. If it doesn't, it'll be a little bit
> more difficult.
>
> If you can be more specific, I can offer more help.
The page has a few instances of "INPUT TYPE=hidden NAME=privateflag VALUE=1" that and I'm wondering if it would be possible to write a script so that the value equals N.
Hopefully that answers your question. I'm sort of learning about this as I go.
<P ID="signature">
> The page has a few instances of "INPUT TYPE=hidden
> NAME=privateflag VALUE=1" that and I'm wondering if it would
> be possible to write a script so that the value equals N.
This should do it. You'll have to figure out how to add it to a Greasemonkey script yourself (which they explain somewhere...been a while):
var is = document.getElementsByTagName('input');
for (i=0; i < is.length; i++) {
if (is.name == "privateflag")
is.value="N";
}