LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Linux Answers > Applications / GUI / Multimedia
User Name
Password

Notices


By liquesen at 2011-12-24 22:35
In this tutorial, the extension ported is Flashvideoreplacer. The steps should work with any Seamonkey version >= 2.0, and Firefox versions >= 3.5.4.

0. Find out your version of Seamonkey in "Help" -> "About Seamonkey"
Write this down or remember it. (Example: "2.6.1")

1. Download the Firefox extension (.xpi file)

Example:
Visit the FlashVideoReplacer extension page at mozilla.org
https://addons.mozilla.org/en-US/firefox/addon/flashvideoreplacer/

Right-click on the "Add to Firefox" button, and select "Copy link location".

Open a terminal; navigate to your home directory or somewhere suitable ("~/Desktop" for example).

Download the ".xpi" file using "wget".
wget https://addons.mozilla.org/firefox/downloads/latest/161869/addon-161869-...

Create a directory to hold the work that you're about to do.
mkdir flashvideoreplacer-2.1.14-sea

Enter the directory
cd flashvideoreplacer-2.1.14-sea

Unzip the ".xpi" file in order to edit it.
unzip ../flashvideoreplacer-2.1.14-fx.xpi

Open "install.rdf" in a text editor.

Add the following XML snippet after the last " </em:targetApplication>" tag in the "install.rdf" file:

Code:
<em:targetApplication>
  <!-- SeaMonkey -->
  <Description>
    <em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id>
    <em:minVersion>2.0</em:minVersion>
    <em:maxVersion>2.0.*</em:maxVersion>
  </Description>
</em:targetApplication>
(see https://developer.mozilla.org/en/Extensions_support_in_SeaMonkey_2 for further information.)

In the code above, change

<em:maxVersion>2.0.*</em:maxVersion>

to the following (insert the version of Seamonkey that you are running):

<em:maxVersion>2.6.*</em:maxVersion>

(...see http://kb.mozillazine.org/Editing_an_add-on_to_change_its_compatibility for further information.)

Save and close the file.

Replace the following strings with their Seamonkey-compatible counterparts everywhere that grep finds them:

1. Enter: grep -R "chrome://browser/content/browser.xul" *
For each file that contains the string, replace all instances of that string with:
chrome://navigator/content/navigator.xul

2. Enter: grep -R "chrome://browser/content/pageinfo/pageInfo.xul" *
For each file that contains the string, replace all instances of that string with:
chrome://navigator/content/pageinfo/pageInfo.xul

3. Enter: grep -R "chrome://browser/content/preferences/permissions.xul" *
For each file that contains the string, replace all instances of that string with:
chrome://communicator/content/permis...onsManager.xul

4. Enter: grep -R "chrome://browser/content/bookmarks/bookmarksPanel.xul" *
For each file that contains the string, replace all instances of that string with:
chrome://communicator/content/bookmarks/bm-panel.xul

5. Enter: grep -R "chrome://browser/content/places/places.xul" *
For each file that contains the string, replace all instances of that string with:
chrome://communicator/content/bookmarksManager.xul

(see https://developer.mozilla.org/en/Extensions_support_in_SeaMonkey_2 for further information.)

Re-create the extension as an ".xpi" file by zipping it up.
zip -r flashvideoreplacer-2.1.14-sea.xpi *

Check that the zip (.xpi) file is correctly populated with the following:
unzip -l flashvideoreplacer-2.1.14-sea.xpi

Delete the old .xpi file (optional)
rm ../flashvideoreplacer-2.1.14-fx.xpi

open Seamonkey.

open a visual file manager; for example, pcmanfm.
pcmanfm . &

Drag and drop the new ".xpi" file anywhere in the Seamonkey window. This will start the install process.

Click "Install Now" on the window that pops up.

Restart Seamonkey. Navigate to "Tools" > "Add-ons Manager". Click "Extensions". Your extension should be listed there.

(
In this example, test flashvideoreplacer using the steps below:
Navigate to a page to test the plugin, for example Youtube.
http://tinyurl.com/83tpw52

Select "Standalone".
Click on the bull-eye "Play" sign.
)

----------------------

Sources:

It's time to make your extensions compatible with SeaMonkey
http://forums.mozillazine.org/viewtopic.php?f=19&t=1554145

Extensions Support in SeaMonkey 2
https://developer.mozilla.org/en/Extensions_support_in_SeaMonkey_2

Editing an add-on to change its compatibility
http://kb.mozillazine.org/Editing_an_add-on_to_change_its_compatibility


  



All times are GMT -5. The time now is 06:38 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration