Search This Blog

Friday, September 4, 2009

JetPack, Hello World!

  • Install JetPack extension for Firefox
  • Type about:jetpack in the URL
  • Start playing!

function hi(){
var doc = jetpack.tabs.focused.contentDocument;
//$(doc).find("img").remove(); //remove all img tag
$(doc).find("img:eq(0)").remove(); //remove the first img tag"Hello World!");

html: "Boom!",
width: 45,
onReady: function(widget){

Notice: JetPack, at least from my experience, might slow down Firefox on tab switching. Make sure what you are doing with your jetpack code. If you find firefox become slow, try disable this add-on.

No comments: