| 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
|
Posted: Mon Jul 23, 2007 4:52 pm Post subject: Chickenfoot (Greasemonkey) for the people. |
|
|
| 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. |
!!
| 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 |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Mon Jul 23, 2007 5:12 pm Post subject: |
|
|
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 |
|
 |
Andreas Guest
|
|
| Back to top |
|
 |
Seabiscuit
Joined: 07 Jan 2007 Posts: 109 Location: In fund pe scaun, la o bere prin Romania :D
|
|
| Back to top |
|
 |
chris_lee
Joined: 04 Apr 2007 Posts: 6
|
Posted: Wed Apr 02, 2008 6:14 am Post subject: |
|
|
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 |
|
 |
neXt
Joined: 19 Mar 2007 Posts: 463
|
Posted: Wed Apr 02, 2008 6:54 am Post subject: |
|
|
this looks great!
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 |
|
 |
neXt
Joined: 19 Mar 2007 Posts: 463
|
Posted: Thu Apr 03, 2008 5:49 pm Post subject: |
|
|
| is there a forum dedicated to chickenfoot? |
|
| Back to top |
|
 |
Nikolai Guest
|
Posted: Tue Jun 24, 2008 10:35 am Post subject: |
|
|
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
|
Posted: Tue Jun 24, 2008 2:39 pm Post subject: |
|
|
Another web automation utility (Open Source) Selenium IDE... I find it to be an excellent tool for Firefox. _________________ WoW |
|
| Back to top |
|
 |
tank
Joined: 21 Dec 2007 Posts: 798
|
Posted: Tue Jun 24, 2008 4:53 pm Post subject: |
|
|
i havent found a download for chicken foot
any one wanna post a link? _________________ Read this
Com
Automate IE7 with Tabs |
|
| Back to top |
|
 |
Nikolai Guest
|
|
| Back to top |
|
 |
|