Zophar's Message Domain

Go Back   Zophar's Message Domain > General Chat > Talk of the Town

Reply
 
Thread Tools Display Modes
Old 01-29-2008, 08:41 PM   #1
Diskeater
Senior Member
 
Join Date: Jul 2001
Posts: 1,460
Default Random Greasemonkey ??

This place is so dead that it hurts sometimes.

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"></img>

Wii console code - 7551377053011860</P>
Diskeater is offline   Reply With Quote
Old 01-30-2008, 03:31 AM   #2
Ugly Joe
Senior Member
 
Ugly Joe's Avatar
 
Join Date: Dec 2003
Posts: 1,461
Default Re: Random Greasemonkey ??

> Any tips before I have to learn this on my own?

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>
__________________
Ugly Joe is offline   Reply With Quote
Old 01-30-2008, 01:10 PM   #3
Diskeater
Senior Member
 
Join Date: Jul 2001
Posts: 1,460
Default Re: Random Greasemonkey ??

> 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"></img>

Wii console code - 7551377053011860</P>
Diskeater is offline   Reply With Quote
Old 01-30-2008, 10:43 PM   #4
Ugly Joe
Senior Member
 
Ugly Joe's Avatar
 
Join Date: Dec 2003
Posts: 1,461
Default Re: Random Greasemonkey ??

> 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 &lt; is.length; i++) {
if (is&#x005b;i].name == "privateflag")
is&#x005b;i].value="N";
}

<P ID="signature">___________________________________ ____
</P>
__________________
Ugly Joe is offline   Reply With Quote
Old 01-31-2008, 07:45 PM   #5
Diskeater
Senior Member
 
Join Date: Jul 2001
Posts: 1,460
Default Re: Random Greasemonkey ??

Seems to work fine. Thanks a lot!
<P ID="signature"></img>

Wii console code - 7551377053011860</P>
Diskeater is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:38 AM.

Contact Us - Zophar's Domain - Archive - Top

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.