AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Chickenfoot (Greasemonkey) for the people.

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Utilities & Resources
View previous topic :: View next topic  
Author Message
Seabiscuit



Joined: 07 Jan 2007
Posts: 109
Location: In fund pe scaun, la o bere prin Romania :D

PostPosted: Mon Jul 23, 2007 4:52 pm    Post subject: Chickenfoot (Greasemonkey) for the people. Reply with quote

Quote:
Overview
Chickenfoot is a Firefox extension that puts a programming environment in the browser's sidebar so you can write scripts to manipulate web pages and automate web browsing. In Chickenfoot, scripts are written in a superset of Javascript that includes special functions specific to web tasks.



Laughing !!

Quote:
Chickens vs. Monkeys

Like Greasemonkey, Chickenfoot lets you mess with web pages on the client side: Correct bugs, fix annoyances, create new functionality… whatever you want - without having to ask the site admins to lift a finger.

The main difference between the chicken and the monkey is that Greasemonkey primarily operates on a page-by-page basis, where as Chickenfoot scripts run as a single transaction involving multiple pages - even spanning multiple sites.

This makes it more suited for automating repetitive processes, rather than tweaking DOM elements. (Note I said “more suited” - Chickenfoot can do some fancy tweaking, just as Greasemonkey can work as a process automater.)

Scripting for the people

The other big difference is that Chickenfoot has tried to target the non-techy user. Here is an example of a Chickenfoot transaction:

go("google.com")
enter("Mr Speaker")
click("google search")
No prizes for guessing what that script does.

Here is a quick guide to the major Chickenfoot commands:

Page Navigation
Visit a url
go("google")

Load url in a hidden window
w = fetch("yahoo")

Opens url in a new tab
openTab("www.mit.edu")

Forms & Links
Click on a button or link
click("feeling lucky")
click("FAQ")

Enter a value into a textbox
enter("chickenfoot")
enter("from address", "77 mass ave")

Check or uncheck a checkbox
check("arabic")
uncheck("arabic")

Pick from a listbox or drop-down
pick("GIF")
pick("file format", "any")

Pattern Matching
Find a pattern
m = find("google search button")
m = find(new TC("number just after ISBN"))

Count matches
m.count

Get visible text
m.text

Get HTML source
m.html

Get Node object
m.element

Iterate over matches
for (m = find(pattern);
m.hasMatch;
m = m.next) {
...
}

Page Modification
Insert html into page
insert(before("textbox"), "Search: ")
insert(after("textbox"), "...")

Remove html from page
remove("advanced search link")

Replace html
replace(new TC("first image"),
"<img src='mylogo.jpg'>")

Widgets and Interaction
Make a link or button that fires action when clicked
new Link("Go to Google",
"go('google')")
new Button("Green", function() {
document.body.style.background = "green"
} )

Chickenfoot's documentation is here: http://groups.csail.mit.edu/uid/projects/chickenfoot/mbolin-thesis.pdf
_________________
Backgammon addicted!
GamesGrid was one of the first online web sites to bring Backgammon to the Internet


Last edited by Seabiscuit on Mon Jul 23, 2007 9:54 pm; edited 1 time in total
Back to top
View user's profile Send private message Yahoo Messenger
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Mon Jul 23, 2007 5:12 pm    Post subject: Reply with quote

Ah, it has been mentioned some times in the forum as an easier to use alternative to GM, but I missed the "global automation across pages" feature. It sure can be handy. I should reinstall it and play a bit more with it.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
Andreas
Guest





PostPosted: Wed Jul 25, 2007 1:04 am    Post subject: Reply with quote

Greasemonkey is great for modifying web pages. For automating web pages I like to use the iMacros Firefox extension:

https://addons.mozilla.org/en-US/firefox/addon/3863
Back to top
Seabiscuit



Joined: 07 Jan 2007
Posts: 109
Location: In fund pe scaun, la o bere prin Romania :D

PostPosted: Fri Sep 07, 2007 7:09 pm    Post subject: Reply with quote

Andreas wrote:
Greasemonkey is great for modifying web pages. For automating web pages I like to use the iMacros Firefox extension:

https://addons.mozilla.org/en-US/firefox/addon/3863

And Chickenfoot for both. Read the manual. Bye

_________________
Backgammon addicted!
GamesGrid was one of the first online web sites to bring Backgammon to the Internet
Back to top
View user's profile Send private message Yahoo Messenger
chris_lee



Joined: 04 Apr 2007
Posts: 6

PostPosted: Wed Apr 02, 2008 6:14 am    Post subject: Reply with quote

Thanks for the information about Chickenfoot.
Do you know how to enter double-byte character in Chickenfoot?
Code:

enter('English works');
enter('中文 not works');
Back to top
View user's profile Send private message Send e-mail
neXt



Joined: 19 Mar 2007
Posts: 463

PostPosted: Wed Apr 02, 2008 6:54 am    Post subject: Reply with quote

this looks great! Very Happy
Since AHK isn't developed to manipulate websites it's getting tough when i have to work on the web, hopefully this will solve my issue.
Back to top
View user's profile Send private message
neXt



Joined: 19 Mar 2007
Posts: 463

PostPosted: Thu Apr 03, 2008 5:49 pm    Post subject: Reply with quote

is there a forum dedicated to chickenfoot?
Back to top
View user's profile Send private message
Nikolai
Guest





PostPosted: Tue Jun 24, 2008 10:35 am    Post subject: Reply with quote

There is another great tool for automation of Firefox besides Chickenfoot and iMacros.

DejaClick™ by AlertSite® is a web recorder and free super bookmark utility designed exclusively for Firefox. DejaClick by AlertSite is easy and fast. Install it, and in seconds you can bookmark a multi-step recording. Then, with just one click, navigate to your pre-determined web page. Got a package or an order you want to track? Have a favorite category at an online auction site? Tired of going through the steps to log into your e-mail? Use DejaClick by AlertSite to automatically access any final URL.

https://addons.mozilla.org/en-US/firefox/addon/3262/
http://www.dejaclick.com/
Back to top
argneo



Joined: 14 Sep 2007
Posts: 132

PostPosted: Tue Jun 24, 2008 2:39 pm    Post subject: Reply with quote

Another web automation utility (Open Source) Selenium IDE... I find it to be an excellent tool for Firefox.
_________________
WoW
Back to top
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 798

PostPosted: Tue Jun 24, 2008 4:53 pm    Post subject: Reply with quote

i havent found a download for chicken foot
any one wanna post a link?
_________________
Read this
Com
Automate IE7 with Tabs
Back to top
View user's profile Send private message
Nikolai
Guest





PostPosted: Tue Jun 24, 2008 5:22 pm    Post subject: Reply with quote

you can download Chickenfoot here:
http://groups.csail.mit.edu/uid/chickenfoot/install.html
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Utilities & Resources All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group