mozilla-jetpack

Mozilla Jetpack: multiline notifications?

I just started playing around with Mozilla Jetpack, and I love it so far. I wrote a little code that displays an icon in the statusbar that, when clicked, brings up a notification: var myTitle = 'Hello World!'; var line1 = 'I am the very model of a modern Major-General,'; var line2 = 'I\'ve information vegetable, animal, and mineral,';...

Getting jQuery to work in Jetpack

Hi, I am experimenting with Jetpack and I would like to parse all the years in a given html page and then wrap the year with a link to the Wiki page. I tried the code in jquery and there it works but now I am using it in Jetpack and it gives an error $(doc).replace is not a function. I am definitely new to Jquery / Jetpack so maybe I am ...

Mozilla Jetpack: Why is the title and favicon of the window/tab not updating?

I'm playing around with jetpack to change the title (and ideally the favicon) of certain pages. Firebug is showing that the HTML of the page has been changed correctly but Firefox just won't update the title of the window and/or tab. This has to be possible, somehow, since Twitter Search is doing exactly that. It's updating the title...

Access tab loading image using jetpack

Is it possible to access and trigger the tab loading image within a Firefox tab using jetpack? I want to create a jetpack that will trigger the tab loading image when it is performing a query but i'm not sure if this is even possible. ...

How can I open a browser tab with Jetpack in Thunderbird?

This code will work with Jetpack in Firefox: jetpack.tabs.open("https://www.google.com/calendar"); How can I do the same in Thunderbird? (if I run this code there it gives me a "browserWindow is null" error) ...

How to Split strings in Mozilla Jetpack

Well , i have tried Split("?") and Split('?') both give the same error ( link.split is not a function) , so i assume that there is a way to be able to split in jetpack but not using this Split ? maybe jQuery ? hope someone can help in this issue. Got it , it is a href Split , so yeah as jordan said , it was not a string . so i used x...

finding visited links in a jetpack extension

Hi, Is there way in jetpack(mozilla's extension development framework) , to find the the visited links in a page? BTW: jquery's a:visited works in firebug , but not in jetpack. i'm guessing it's part of jetpack's security. ...

How to replace a javascript file request with contents from another file in a FF addon?

I'm looking for some guidance on how to replace requests for a specific javascript file with another file that I'll package with the Firefox addon. ...

Firefox Jetpack Development Debugging

So, I'm working with some JS in Firefox and also working with the jetpack sdk. I am working in a JS editor, and then I run the sdk through the command line. However, when there is a bug there is no way to debug this because the JS is being run/loaded before the page and the DOM so firebug is to no avail. Can anyone recommend a better t...

Using positioning 'Panel' in new Jetpack API

I'm now using the new version of the Jetpack API of which allows you to create addons for Firefox using a JS framework. The 'panel' object is easy to use - but I'm struggling to find a way to position it. The documentation simply states (Jetpack Panel API) panel.show(anchor) DomElement But I'd like to position the panel in the bottom...