Here’s How To Make An Extension Compatible With Prism (Two-ish)

I know it’s been a while since I’ve posted. There’s been a lot going on - school, work, home, you get the point. Anyway, I’ve been trying to keep my last post on how to make extensions compatible with Prism up-to-date, but this is turning out to be a difficult task. So I’m just going to post new instructions as needed. Basically, everything remains the same but the version string changes. The DOM inspector is the key to figuring out the correct target to put into your extension’s install.rdf. Clear as mud yet? Well, let me lay out the steps for you again here.

Step 1
Navigate to the Prism installation directory, in Windows this is:
C:\Program Files\Prism\

Open up the extensions folder, then the DOM inspector extension folder:
C:\Program Files\Prism\extensions\inspector@mozilla.org

Now open the “install.rdf” file and find this section of code which can be used (usually) as-is in most extensions pasted in the right place (just use the extension’s preconfigured targets as your guide on where to place it):


<em:targetApplication>
<!– Prism –>
<Description>
<em:id>prism@developer.mozilla.org</em:id>
<em:minVersion>0.4</em:minVersion>
<em:maxVersion>1.0.0.*</em:maxVersion>
</Description>
</em:targetApplication>

Step 2
Open up your extension’s xpi file using 7zip or your favorite archiving tool and extract the install.rdf file.

Open that install.rdf file with a text editor (other than notepad which doesn’t understand the line breaks used by other editors) and find the area where it lists the installation targets and insert your copied text into that or modify one of the install targets with the appropriate information from the DOM inspector extension install.rdf file.

Step 3
Install the extension. This will get tricky due to the way Prism’s developers have modified the profiles and what not. Well, I say that, but it really only gets that tricky if you’re manually installing the extension. Prism developers have seen fit to include the Addons menu item from the Prism menu in the lower right of Prism’s window to help things go more smoothly.

One of the ways to use this new install feature for an extension is globally, which means all webapps will be able to use the extension. This is the least preferred manner due to the fact that you won’t want all extensions available for all webapps in most cases. An example would be having the Better Gmail extension available for Bloglines - don’t think that’s real necessary, do you? So plan accordingly.

Using the second, and more preferred method, you just open your webapp. Open your webapp’s Addons panel, then install by either dragging and dropping the extension onto it, or by clicking the “Install…” button and navigating to the extension and selecting it for installation.

Conclusion
That should be about it. My next Prism post will be about how to make one of two stand alone Firefox/Prism exention webapps - POW local server or Scribefire standalone webapp. Stay tuned, we get to play with chrome!!

Links:

Prism

Background Images for your Desktop (Wallpaper!!)

Here are six of the better images I’ve taken over the last year. Use them in good health. They’re licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license. In other words, feel free to use them as you see fit, with the exceptions that you must attribute the original works to me (and other contributors - sell below), you cannot use them for commercial purposes (money making - unless you ask - I can be flexible for the right price :) and you must license any derivative works under the same license. Clear as mud? Just follow the link to the Creative Commons license at the bottom for a full explanation.

The font I’ve used for the site logo on these came from the Sull-A-Day blog, another site you should definitely checkout. Anyway here they are, to download, right-click and do a “Save Target As” (IE) or a “Save Link As” (Firefox):

LD_BG01_1024×768
LD_BG01_1024×76
LD_BG01_1280×960
LD_BG01_2816×2112
LD_BG01.7z
LD_BG02_1024×768
LD_BG02_1024×768
LD_BG02_1280×960
LD_BG02_2816×2112
LD_BG02.7z
LD_BG03_1024×768
LD_BG03_1024×768
LD_BG03_1280×960
LD_BG03_2816×2112
LD_BG03.7z
LD_BG04_1024×768
LD_BG04_1024×768
LD_BG04_1280×960
LD_BG04_2816×2112
LD_BG04.7z
LD_BG05_1024×768
LD_BG05_1024×768
LD_BG05_1280×960
LD_BG05_2816×2112
LD_BG05.7z
LD_BG06_1024×768
LD_BG06_1024×768
LD_BG06_1280×960
LD_BG06_2816×2112
LD_BG06.7z

Download all these in a single file:

backgrounds_luckydisasters.com.7z [080207]

At some point I’ve got to make some 1440×900 versions of these too, that’s my laptop’s screen size after all…

Creative Commons License
These wallpapers are licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.