[SASAG] Favorite Firefox extensions

Mohsen Banan-vendors vendors at mohsen.banan.1.byname.net
Wed Jul 18 11:18:38 PDT 2007


>>>>> On Wed, 18 Jul 2007 09:39:57 -0700, Leeland <leeland06 at greydragon.com> said:


  Leeland> So what are your killer Firefox extensions? Why do you like them? Are
  Leeland> they the best of the pack (i.e. is there another similar extension
  Leeland> that you tried and didn't like that does about the same)?

Attached below is my Mozilla/Firefox script -- not
real clean but quite usable.

The main customized features from my perspective
are integration with emacs. I live in firefox and
emacs and use nothing else. And firefox is just my
browser. That setup is part of EOE (Emacs Office
Environment).

Emacs and Firefox are tightly integrated.

 On the emacs side:

  - URLs selected in emacs are displayed in
    FireFox. 
 
  - Gnus HTML content is piped to Firefox for displayed.


 On the firefox side:
    
  - Firefox keybindings are emacs keybindings.

  - Dialogue Box editing is optionally sent to
    emacs through gnuclient.

  - mailto: urls invoke Gnus (Emacs' ultimate MUA).

  - Send Link invokes preset to/from/subject
    through GNUS.

The corresponding elisp code is part of
ByStart-EOE.

If you are not into emacs, there are still plenty
of useful pointers in the script that you may find
useful.

Hope this helps.

-- Mohsen Banan                   http://mohsen.banan.1.byname.net/
   Neda Communications, Inc.      http://www.neda.com/
   3610 164th Place SE            mailto:vendors at mohsen.banan.1.byname.net
   Bellevue, WA 98008             tel: +1-425-644-8026
        U.S.A.                    fax: +1-425-644-2886
   Map and Driving Directions:    http://info.1-98008-5807-10.bywhere.net/


#!/bin/osmtKsh

typeset RcsId="$Id: lcaMozillaAdmin.sh,v 1.5 2007/05/21 05:18:24 pinneke Exp $"

if [ "${loadFiles}X" == "X" ] ; then
  seedActions.sh -l $0 "$@"
  exit $?
fi


function vis_examples {

#${visLibExamples}
 cat  << _EOF_
EXAMPLES:
--- Server BinsPrep ---
${G_myName} -e "Install - suite" -i runFunc apt-get install mozilla
${G_myName} -e "Install - " -i runFunc apt-get install mozilla-firefox
${G_myName} -e "Install - " -i runFunc apt-get install firefox
${G_myName} -e "Install - " -i runFunc apt-get install mozilla-acroread
${G_myName} -e "Install - " -i runFunc apt-get install mozilla-helix-player
${G_myName} -e "Install - " -i runFunc apt-get install mozilla-mplayer
${G_myName} -e "Install - " -i runFunc apt-get install flashplugin-nonfree
${G_myName} -e "Check Status" -i runFunc dpkg -l planner-el
--- Emacs Key Bindings for Mozilla/Firefox ---
NOTYET: Feb 2006 did it and it works but did not document it.
mozilla -remote "openurl(http://www.mozilla.org/unix/customizing.html#keys)"
eoe-browser -remote "openurl(http://www.mozilla.org/unix/customizing.html#keys)"
--- Browse-url-extra.el ---
mozilla -remote "openurl(http://lists.gnu.org/archive/html/bug-gnu-emacs/2005-09/msg00122.html)"
gnuclient ~/lisp/browse-url-extra.el
--- Dialogue Box -- View Sources With [Mozilla/Firefox] ---
mozilla -remote "openurl(https://addons.mozilla.org/extensions/moreinfo.php?application=firefox&id=394)"
${G_myName} -e "View Sources with" -i dialogueBoxEditorHowTo
--- MOZEX - Mozilla Extensions - Does not work with firefox  ---
mozilla -remote "openurl(http://mozex.mozdev.org/index.html)"
mozilla -remote "openurl(http://mozex.mozdev.org/installation.html)"
- How To configure Mozilla Extensions -
mozilla -remote "openurl(http://hovercloud.com/wiki/How_to_use_XEmacs_for_wiki_edits)"
--- mozmail Browser Side ---
${G_myName} -e "Configuration of mozilla/firefox" -i mozmailBrowser
--- mozmail Shell Side ---
${G_myName} -e "Put this in /usr/local/bin/mozmail.sh" -i mozmailShell
--- mozmail Emacs Side ---
${G_myName} -e "Configuration of Emacs" -i mozmailEmacs
--- Help and Documentation ---
${G_myName} -e "Documentation/Help" -i runFunc man gnuclient
_EOF_
}

noArgsHook() {
  vis_examples
}

function vis_help {
 cat  << _EOF_


_EOF_
}


function vis_mozmailBrowser {
 cat  << _EOF_

Setup - Mozilla

You have to get down and dirty with Mozilla's configuration file here. But don't worry, I'm going to explain an easy way to do it.

Fortunately, the Mozilla boys and girls have provided a nice, comfy interface to your Mozilla configuration files.

   1. Fire up Mozilla, and in the location bar (it's that little text area at the top of the screen where you type in URI) type: about:config
   2. Reduce the list of litterally hundreds of config options by typing protocol-handler in the filter bar. (this just makes things easier to manage and to see what's going on).
   3. Click button3 (that's the right rat button for you poor folk who only have 2 button rats) on one of the items in the list and choose New -> Boolean.
   4. In the resulting dialog that appears, type: network.protocol-handler.external.mailto. Click OK.
   5. The next dialog is giving this new variable a value. Type: true, click OK.
   6. Button3 on a list item, choose New -> String. The name of this new variable is: network.protocol-handler.app.mailto. It's value is: mozmail.sh.

Add unregistered protocol (i.e. rtsp)
=====================================

Open the browser, the type:
   about:config

Right click anywhere, 
   Add --> New --> String --> network.protocol-app.handler.rtsp -->
   /usr/bin/realplay

Adjust the location of your realplayer.
Install realplayer:
  apt-get realplayer
  or
  download the latest from realplayer.

_EOF_
}

function vis_mozmailShell {
 cat  << _EOF_

#!/bin/bash

# without any hooks.
#gnuclient -eval "(mozmail \"$1\")" 

#  (mozmail "mailto:one at example.com")
# (progn (murl-pre-hook) (mozmail "mailto:one at example.com") (murl-post-hook))

#  This assumes that ~/lisp/murl-base.el has been loaded and (gnuserv-start)

gnuclient -eval "(progn (murl-pre-hook) (mozmail \"$1\") (murl-post-hook))" 

_EOF_
}

function vis_mozmailEmacs {
 cat  << _EOF_

Setup - (X)Emacs

I use XEmacs and Gnus exclusively, and the primary distribution of
mozmail is with the XEmacs "net-utils" package. So this file has
been designed with that in mind. For people like me who use XEmacs
and Gnus, and installed mozmail with the net-utils package, the
ONLY XEmacs setup required is adding \`(gnuserv-start)\' to your init
file. You lucky thing, you.

GNU/Emacs people will need to add \`(require \'mozmail)\' also.

People who use MUA's other than Gnus will need to customise the
variable \`mozmail-default-mua\'. See that variable's doc string
for details.

Gnus users can optionally customise \`mozmail-gnus-is-plugged\' to
run Gnus in either "plugged" or "unplugged" modes.

_EOF_
}



function vis_dialogueBoxEditorHowTo {
 cat  << _EOF_
https://addons.mozilla.org/extensions/moreinfo.php?application=firefox&id=394


In Choose editor:
Editor path: /usr/bin/gnuclient
Description: gnuclient
Shortcut Key: Shift+Ctrl+G

Editor path: /usr/bin/xemacs21
Description: xemacs21
Shortcut Key: Shift+Ctrl+E

Clicking on Tools->Extension should show
ViewSourceWith 0.0.7.91

_EOF_
}


function vis_stdin {

   tmpFile=/z1/tmp/${G_progName}.mozStdin.$$

   #echo $* > ${tmpFile}

   while read line ; do
     echo "$line" >> ${tmpFile}
   done

   head -1 ${tmpFile} | grep -i \<html\> > /dev/null
   if [[ $? ]] ; then 
     echo \<html\> > ${tmpFile}.fixed
     cat ${tmpFile} >> ${tmpFile}.fixed
     echo "</html>" >> ${tmpFile}.fixed
     tmpFile=${tmpFile}.fixed
   fi
    
   #mozilla -remote "openurl(file://${tmpFile})" &
   firefox -remote "openurl(file://${tmpFile})" &
   cat ${tmpFile} | w3m -T text/html
}




More information about the Members mailing list