Firefox: Difference between revisions
From wikinotes
(→Addons) |
(→Notes) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 30: | Line 30: | ||
= Addons = | = Addons = | ||
<blockquote> | |||
== Scripted Installation == | |||
<blockquote> | |||
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 | |||
<syntaxhighlight lang="bash"> | |||
# 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 "$@" | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="bash"> | |||
curl https://addons.mozilla.org/firefox/downloads/file/3594392/textern-0.7.xpi | |||
install-firefox-addon.sh textern-0.7.xpi "$USER" | |||
</syntaxhighlight> | |||
</blockquote><!-- Scripted Installation --> | |||
== Notes == | |||
<blockquote> | <blockquote> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 35: | Line 86: | ||
| [[firefox addon search bookmarks history and tabs]] || ctrl-p style search of bookmarks | | [[firefox addon search bookmarks history and tabs]] || ctrl-p style search of bookmarks | ||
|- | |- | ||
| [[firefox addon | | [[firefox addon keepassxc]] || integration with keepassxc | ||
|- | |- | ||
| [[firefox addon tridactyl]] || vim keybindings in firefox | | [[firefox addon tridactyl]] || vim keybindings in firefox | ||
Line 41: | Line 92: | ||
| [[firefox addon dark mode]] || comprehensive dark stylesheet for websites | | [[firefox addon dark mode]] || comprehensive dark stylesheet for websites | ||
|- | |- | ||
| [[firefox addon | | [[firefox addon privacy badger]] || EFF's adblocker | ||
|- | |- | ||
| [[firefox addon | | [[firefox addon add block plus]] || popular adblocker | ||
|- | |||
|} | |||
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 | | [[firefox addon pentadactyl]] || vim keybindings in firefox (closer to vim than vimperator) | ||
|- | |||
| [[firefox addon vimperator]] || vim keybindings in firefox | |||
|- | |||
|} | |} | ||
</blockquote><!-- Notes --> | |||
</blockquote><!-- addons --> | </blockquote><!-- addons --> |
Latest revision as of 19:04, 4 September 2022
Mozilla's webbrowser.
Configuration
MMB Scrolling
Edit > Preferences > Advanced > General: - Use autoscrollingOverride 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