78 lines
2.9 KiB
Bash
Executable File
78 lines
2.9 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
#!/bin/bash
|
|
set -e
|
|
mkdir -p /etc/apt//sources.list-available || exit
|
|
cat > /etc/apt/sources.list-available/waterfox.list << EOF
|
|
# wget -nv https://download.opensuse.org/repositories/home:hawkeye116477:waterfox/Debian_Testing/Release.key -O Release.key
|
|
# apt-key add - < Release.key
|
|
deb http://download.opensuse.org/repositories/home:/hawkeye116477:/waterfox/Debian_Testing/ /
|
|
EOF
|
|
|
|
# The dl-bintray repo doesn't play nice with apt-proxy
|
|
#echo "Acquire::http::Proxy { dl.bintray.com DIRECT; };" >> /etc/apt/apt.conf.d/02proxy
|
|
|
|
ln -sf /etc/apt/sources.list-available/waterfox.list /etc/apt/sources.list.d/waterfox.list
|
|
|
|
wget -nv https://download.opensuse.org/repositories/home:hawkeye116477:waterfox/Debian_Testing/Release.key -O Release.key
|
|
apt-key add - < Release.key
|
|
|
|
apt-get update
|
|
|
|
# waterfox-classic-kde - KDE Plasma integration for Waterfox Classic
|
|
# waterfox-classic-kpe - Free, open and private browser with openSUSE's patches for better integration with KDE
|
|
# waterfox-classic-i18n-en-gb - English (British) language pack for Waterfox Classic
|
|
|
|
# waterfox-current-kde - KDE Plasma integration for Waterfox Current
|
|
# waterfox-current-kpe - Free, open and private browser with better integration with KDE
|
|
# waterfox-current-i18n-en-gb - English (British) language pack for Waterfox Current
|
|
|
|
apt-get install -y waterfox-classic-kpe watefox-classic-i18n-en-gb
|
|
|
|
update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/bin/waterfox-classic 201
|
|
|
|
# Stop white flash background in dark theme mode.
|
|
# Add option toolkit.legacyUserProfileCustomizations.stylesheets to True.
|
|
# in about:config
|
|
# find the default profile directory
|
|
cd ~/.waterfox
|
|
if [[ $(grep '\[Profile[^0]\]' profiles.ini) ]]
|
|
then PROFPATH=$(grep -E '^\[Profile|^Path|^Default' profiles.ini | grep -1 '^Default=1' | grep '^Path' | cut -c6-)
|
|
else PROFPATH=$(grep 'Path=' profiles.ini | sed 's/^Path=//')
|
|
fi
|
|
|
|
echo $PROFPATH
|
|
|
|
cat > ~/.waterfox/${PROFPATH}/userChrome.css <<'EOF'
|
|
tabbrowser tabpanels { background-color: rgb(19,19,20) !important; }
|
|
browser { background-color: #131314 !important; }
|
|
EOF
|
|
|
|
cat > ~/.waterfox/${PROFPATH}/userContent.css <<'EOF'
|
|
@-moz-document url(about:blank) { html { background-color: rgb(19,19,20) !important; } }
|
|
@-moz-document url-prefix(about:blank) { * { background-color: rgb(19,19,20); } }
|
|
EOF
|
|
|
|
# Themes
|
|
## Australis Dark - enabled in Firefox 53
|
|
## Has rounded corners on active tab and grey surround
|
|
# https://github.com/wilfredwee/australis-dark
|
|
# https://addons.mozilla.org/en-US/firefox/addon/devedition-theme-enabler/
|
|
#https://addons.mozilla.org/firefox/downloads/file/477584/developer_edition_theme_enabler-1.0.1-fx.xpi
|
|
|
|
## Aa Dark Background and light text
|
|
|
|
## ff2mpv
|
|
## Firebug - being retired
|
|
## firepath
|
|
## greasemonkey
|
|
## it's all text
|
|
## saved password editor
|
|
## text link
|
|
## try xpath
|
|
## ublock origin
|
|
## umatrix
|
|
## web developer
|
|
## xdebug helper
|
|
## xpath finder
|
|
## wideo blocker - doesn't seem to work
|