AllBASIC

BASIC Developer & Support Resources => Open Forum => Topic started by: JRS on September 20, 2010, 09:47:03 pm

Title: Chickenfoot
Post by: JRS on September 20, 2010, 09:47:03 pm
I needed to automate a few tasks in a browser and ran across a Firefox plug-in from MIT. The source to this plug-in is a combination of JavaScript, Java and AJAX.

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.

Running this chickenfoot script on google.com will replace the google logo with the ninja.png image.

Code: [Select]
   replace('Google image',
      '<img src="http://www.bolinfest.com/ninja.png">')

(http://files.allbasic.info/AllBasic/cfapi.png)

Chickenfoot Website (http://groups.csail.mit.edu/uid/chickenfoot/index.php)
Title: Re: Chickenfoot
Post by: MRBCX on September 21, 2010, 03:59:43 am
Looks interesting ... reminds me of GreaseMonkey.

I do suspect a name change is in the offing though: 

http://en.wikipedia.org/wiki/Chickenfoot
Title: Re: Chickenfoot
Post by: JRS on September 21, 2010, 04:11:37 am
Chickenfoot (software) (http://en.wikipedia.org/wiki/Chickenfoot_%28software%29)

GreaseMonkey (subset ?) doesn't seem to have as much functionality as Chickenfoot but the scripts are compatible from what I read.

All I have to do now is figure out how to embed SB as a browser plug-in.  ???