- 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
jetpack.notifications.show("Hello World!");
}
jetpack.statusBar.append({
html: "Boom!",
width: 45,
onReady: function(widget){
$(widget).click(function(){
hi();
});
}
});
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:
Post a Comment