[Greasemonkey] automate with Firefox?

Jason Green jason at everydayjones.com
Thu Jul 7 07:16:20 EDT 2005


eh, JS is javascript.....nevermind.

-Jason



Mark Spink wrote:

>On Wed, 2005-07-06 at 08:32 -0700, Aaron Boodman wrote:
>  
>
>>It could also just visually navigate you to the correct pages and
>>perform the action. Not only would this look cool, it would take care
>>off all the status stuff for you.
>>
>>switch (location.href) {
>>  page1: 
>>    fill in un/pwd
>>    submit
>>    break;
>>  page 2:
>>    make comment
>>    submit
>>    break;
>>  etc...
>>}
>>    
>>
>
>There are a couple off problems with this method
>
>1) not all sites have unique URLs for each page so location.href for
>page1 is the same as page2! so you need a method to identify each page
>from some other information.
>
>2) you need a function that verifies that the next page has loaded and
>not the page you just left. For instance in the example above if the
>user name or password was incorrect then instead of page2, page1 will
>load again and then loop forever continuously filling in the un/pwd and
>submitting!
>
>If your going to produce some automation script you also don't want it
>to execute every time visit the site. What you need is "run script now"
>button.
>
>Mark
>  
>
>>On 7/6/05, Jeremy Dunck <jdunck at gmail.com> wrote:
>>    
>>
>>>On 7/6/05, Jason Green <jason at everydayjones.com> wrote:
>>>      
>>>
>>>>Since there is a script to automatically log you into MySpace, is it
>>>>possible to write something that would then automate tasks? Example,
>>>>it'd log into myspace and leave a text message in each of the friends
>>>>comment box.
>>>>        
>>>>
>>>I don't see why not.  You'd probably have to do some clever stuff..
>>>Like have a script per task, and have a stored value which you'd use
>>>to determine whether to do your automated task.
>>>
>>>So say you wanted to post a comment to a list of users once per day.
>>>
>>>You could have a script w/ a list of user names and, upon reaching the
>>>post-login page, you could check a value to see if it's been a day
>>>since last posts.  If so, do async posts w/ xmlhttprequest, and then
>>>set the value.  Displaying a completion status would also be nice.  :)
>>>_______________________________________________
>>>Greasemonkey mailing list
>>>Greasemonkey at mozdev.org
>>>http://mozdev.org/mailman/listinfo/greasemonkey
>>>
>>>      
>>>
>>_______________________________________________
>>Greasemonkey mailing list
>>Greasemonkey at mozdev.org
>>http://mozdev.org/mailman/listinfo/greasemonkey
>>
>>    
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mozdev.org/pipermail/greasemonkey/attachments/20050707/dcf52709/attachment.htm


More information about the Greasemonkey mailing list