Am 25.07.2011 12:15, schrieb the_ankorman:
Hi there,
is it possible to write a java script, that sets ticks on a password
protected page including login, setting values etc.?
I'm totally new on this and have to download thousands of data sets
for my work.

Thanks in advance and have a nice day!

martin


It absolutely is! Since the script is executed on from your PC, this isn't a security issue either, except for plaintext passwords that are readable in the userscript.

You need to wait for the content to be readily loaded to make sure all checkboxes, textfields etc. are completely loaded, so you'll need the event listener for "onLoad". Then you can use document.querySelector or document.getElement(s)By functions to get the element and apply .checked=true on checkboxes or radio buttons or set .value="whatever" for textfield.

How window.addEventListener and the getters work see here: https://groups.google.com/group/greasemonkey-users/browse_thread/thread/de5716a67e798e79

Just out of curiosity, what page is that? Maybe a mass downloader add-on like DownThemAll and similar are more suitable, especially if all files are linked to from the same page.

Chris

--
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to