Firefox: Difference between revisions

From wikinotes
 
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
My web browser is quickly becoming one of the most useful tools on
Mozilla's webbrowser.
my computer. As I spend more time configuring it I thought it might be
important to start documenting some of the addons in a central place.


= Force Install Addons =
= Configuration =
<blockquote>
<blockquote>
Certain addons (such as pentadactyl) are very particular about the version of firefox that they support.
== MMB Scrolling ==
This can become a bit of a mess when you're dealing with Arch's penchant for the latest, most cutting edge
<blockquote>
packages.
<syntaxhighlight lang="yaml">
Edit > Preferences > Advanced > General:
  - Use autoscrolling
</syntaxhighlight>
</blockquote><!-- MMB Scrolling -->


''' Force Install '''
== Override User Agent ==
<blockquote>
<blockquote>
Occasionally, you can force install addons into newer versions of firefox simply by clicking the greyed
On commandline
out 'Download' button. Try this first.
<syntaxhighlight lang="bash">
</blockquote><!-- Force Install -->
 
</syntaxhighlight>
 
In configuration
<syntaxhighlight lang="yaml">
-open:  about:config
  - type: general.useragent.override
  - radio: string
  - click '+' button to create
  - assign windows value: Mozilla/5.0 (Windows NT x.y; Win64; x64; rv:10.0) Gecko/20100101 Firefox/10.0
</syntaxhighlight>
</blockquote><!-- Override User Agent -->
</blockquote><!-- Configuration -->


''' Fool Compatibility Check '''
= Addons =
<blockquote>
<blockquote>
This largely seems voided now that you can force install addons into newer versions of firefox (they will
== Scripted Installation ==
be blocked if they truly are incompatible). Just the same, in old versions of firefox you can fool it's
<blockquote>
compatibility checker by modifying one of it's variables.
firefox lets you script addon installs.<br>
this stackoverflow has a suggestion for automating plugin installs.<br>
https://askubuntu.com/questions/73474/how-to-install-firefox-addon-from-command-line-in-scripts


<pre>
<syntaxhighlight lang="bash">
navigate to <code>about:config</code>
# install-firefox-addon.sh
Rclick > New Boolean
name: extensions.checkCompatibility.30.0  #(or version you want firefox to test as true)
value: true


## Restart Firefox
#!/usr/bin/env bash
</pre>
</blockquote><!--Fool Compatibility Check -->


EXTENSIONS_SYSTEM='/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/'
EXTENSIONS_USER=`echo ~/.mozilla/firefox/*.default/extensions/`


''' Downgrade Firefox '''
_get_addon_id_from_xpi () { #path to .xpi file
<blockquote>
    addon_id_line=`unzip -p $1 install.rdf | egrep '<em:id>' -m 1`
Don't be intimidated, this is really simple. Firstly, if you can find the version you want in
    addon_id=`echo $addon_id_line | sed "s/.*>\(.*\)<.*/\1/"`
<code>/var/cache/pacman/pkg/</code> then you can very simply downgrade it with the command
    echo "$addon_id"
<code>pacman -U /var/cache/pacman/pkg/firefox-x.x</code>.
}


If it isn't found there, don't stress, you can download a precompiled binary from:
_get_addon_name_from_xpi () { #path to .xpi file
https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/
    addon_name_line=`unzip -p $1 install.rdf | egrep '<em:name>' -m 1`
    addon_name=`echo $addon_name_line | sed "s/.*>\(.*\)<.*/\1/"`
    echo "$addon_name"
}


<pre>
install_addon () {
tar -xvf firefox-xx.x.x
    xpi="${PWD}/${1}"
sudo mv firefox /opt/                  # alternatively, you could put it where the actual firefox
    extensions_path=$2
                                        # binaries go in /usr/lib/firefox
    new_filename=`_get_addon_id_from_xpi $xpi`.xpi
sudo chown -R root:root /opt/firefox
    new_filepath="${extensions_path}${new_filename}"
/opt/firefox/firefox &
    addon_name=`_get_addon_name_from_xpi $xpi`
    if [ -f "$new_filepath" ]; then
        echo "File already exists: $new_filepath"
        echo "Skipping installation for addon $addon_name."
    else
        cp "$xpi" "$new_filepath"
    fi
}


## since we're only installing this for pentadactyl, I've created
install_addon "$@"
## a symbolic link as pentadactyl (so I can still keep an up to date
</syntaxhighlight>
## version of firefox).
sudo ln -s /opt/firefox/firefox /usr/bin/pentadactyl


</pre>
<syntaxhighlight lang="bash">
</blockquote><!-- Downgrade Firefox -->
curl https://addons.mozilla.org/firefox/downloads/file/3594392/textern-0.7.xpi
</blockquote><!-- force Install Addons -->
install-firefox-addon.sh textern-0.7.xpi "$USER"
</syntaxhighlight>
</blockquote><!-- Scripted Installation -->


= Addons =
== Notes ==
<blockquote>
<blockquote>
{| class="wikitable"
{| class="wikitable"
|-
| [[firefox addon search bookmarks history and tabs]] || ctrl-p style search of bookmarks
|-
| [[firefox addon keepassxc]] || integration with keepassxc
|-
|-
| [[firefox addon tridactyl]] || vim keybindings in firefox
| [[firefox addon tridactyl]] || vim keybindings in firefox
Line 66: Line 92:
| [[firefox addon dark mode]] || comprehensive dark stylesheet for websites
| [[firefox addon dark mode]] || comprehensive dark stylesheet for websites
|-
|-
| [[firefox addon foxsplitter]] ||  
| [[firefox addon privacy badger]] || EFF's adblocker
|-
|-
| [[firefox addon pentadactyl]] || vim keybindings in firefox (closer to vim than pentadactyl)
| [[firefox addon add block plus]] || popular adblocker
|-
|-
| [[firefox addon vimperator]] || vim keybindings in firefox
|}
 
Defunct or without maintainer
{| class="wikitable"
|-
|-
| [[firefox addon it's all text]] || edit textfield in external editor
| [[firefox addon it's all text]] || edit textfield in external editor
|-
|-
| firefox addon private tab || supports private tabs alongside other tabs
| [[firefox addon pentadactyl]] || vim keybindings in firefox (closer to vim than vimperator)
|}
|-
 
| [[firefox addon vimperator]] || vim keybindings in firefox
= Appearance =
|-
<blockquote>
=== FXchrome (discontinued) ===
<blockquote>
Firefox has overly wide tabs. I don't like it. Too bubbly.
FXchrome replaces firefox's tabs with something a little closer to chrome's
tabs.I have stopped using this extension because pentadactyl sufficiently slims the tabs.
</blockquote><!--FXchrome-->
 
=== burling ===
<blockquote>
Changes the colour of the tab-bar. This one is darker, fits better with pentadactyl solarized
or desert colour themes.
 
</blockquote><!-- burling -->
 
=== disable spellcheck underline ===
<blockquote>
I never use the spellcheck underline, and it makes text more difficult to read.
If you'd like to disable it, you can find it in the Firfox menu:
 
<pre>
:set guioptions+=T
Menu > Preferences > Advanced(General Tab) > Check My Spelling as I Type
</pre>
 
</blockquote><!-- spellcheck underline -->
 
</blockquote><!-- Appearance -->
 
= Settings =
<blockquote>
 
== MMB scrolling ==
<pre>
Edit->Preferences->Advanced->General  >> Use autoscrolling (mmb scrolling in firefox)
</pre>
 
== NoHide Bookmarks on Fullscreen ==
<pre>
Maximize Firefox (F11)
Mouse to top-of-screen > Rclick > Uncheck Hide Toolbars
 
</pre>
 
</blockquote><!-- Settings -->
 
= Linux =
<blockquote>
 
== Flash Plugin ==
The flash plugin does not officially support linux. Google created their own
fork for chromium, and there are ways of using it in firefox.
 
{|
| [[pepper flash]]
|}
|}
 
</blockquote><!-- Notes -->
 
</blockquote><!-- addons -->
 
</blockquote><!-- Linux -->

Latest revision as of 19:04, 4 September 2022

Mozilla's webbrowser.

Configuration

MMB Scrolling

Edit > Preferences > Advanced > General:
  - Use autoscrolling

Override User Agent

On commandline

In configuration

-open:  about:config
  - type: general.useragent.override
  - radio: string
  - click '+' button to create
  - assign windows value: Mozilla/5.0 (Windows NT x.y; Win64; x64; rv:10.0) Gecko/20100101 Firefox/10.0

Addons

Scripted Installation

firefox lets you script addon installs.
this stackoverflow has a suggestion for automating plugin installs.
https://askubuntu.com/questions/73474/how-to-install-firefox-addon-from-command-line-in-scripts

# install-firefox-addon.sh

#!/usr/bin/env bash

EXTENSIONS_SYSTEM='/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/'
EXTENSIONS_USER=`echo ~/.mozilla/firefox/*.default/extensions/`

_get_addon_id_from_xpi () { #path to .xpi file
    addon_id_line=`unzip -p $1 install.rdf | egrep '<em:id>' -m 1`
    addon_id=`echo $addon_id_line | sed "s/.*>\(.*\)<.*/\1/"`
    echo "$addon_id"
}

_get_addon_name_from_xpi () { #path to .xpi file
    addon_name_line=`unzip -p $1 install.rdf | egrep '<em:name>' -m 1`
    addon_name=`echo $addon_name_line | sed "s/.*>\(.*\)<.*/\1/"`
    echo "$addon_name"
}

install_addon () {
    xpi="${PWD}/${1}"
    extensions_path=$2
    new_filename=`_get_addon_id_from_xpi $xpi`.xpi
    new_filepath="${extensions_path}${new_filename}"
    addon_name=`_get_addon_name_from_xpi $xpi`
    if [ -f "$new_filepath" ]; then
        echo "File already exists: $new_filepath"
        echo "Skipping installation for addon $addon_name."
    else
        cp "$xpi" "$new_filepath"
    fi
}

install_addon "$@"
curl https://addons.mozilla.org/firefox/downloads/file/3594392/textern-0.7.xpi
install-firefox-addon.sh textern-0.7.xpi "$USER"

Notes

firefox addon search bookmarks history and tabs ctrl-p style search of bookmarks
firefox addon keepassxc integration with keepassxc
firefox addon tridactyl vim keybindings in firefox
firefox addon dark mode comprehensive dark stylesheet for websites
firefox addon privacy badger EFF's adblocker
firefox addon add block plus popular adblocker

Defunct or without maintainer

firefox addon it's all text edit textfield in external editor
firefox addon pentadactyl vim keybindings in firefox (closer to vim than vimperator)
firefox addon vimperator vim keybindings in firefox