Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add features & tips + firedragon & torbrowser #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions nbrowser
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,22 @@
# source : https://github.com/MyOS-ArchLinux/nbrowser
# license: GPLv3 <https://gnu.org/licenses/gpl-3.0.html>
# shellcheck disable=SC2190,SC2086,SC1091

#
# FEATURES #
# - auto detect installed browsers
# - auto remove tracking elements from URLs (basic)
# - ?search engines
# - !bangs
# - !ubangs : url bangs
# - !dbangs : direct bangs or domain bangs
#
# TIPS #
# - set a keyboard shortcuts (ex: super+W) to open nbrowser easly
# - set nbrowser as the default browser so you can open each clicked URL with nbrowser (ex: using xdg-utils).
# - xdg-mime default nbrowser.desktop x-scheme-handler/https x-scheme-handler/http x-scheme-handler/browser
# - some console applications us the variable $BROWSER to open default browser, so you may also need to set environment variable BROWSER=nbrowser
# - for one-click switch between browsers copy and paste this code into a bookmark URL of all your browser javascript:window.location='browser://'+location.href;
#
NBROWSER_CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/nbrowser"
NBROWSER_DEFAULT_SEARCH=${NBROWSER_DEFAULT_SEARCH:-duckduckgo}
COPY_TO_CLIPBOARD_OPTION=${COPY_TO_CLIPBOARD_OPTION:-true}
Expand Down Expand Up @@ -74,7 +89,7 @@ fi
browser_count=1

## firefox based browser
for prog in librewolf firefox icecat palemoon; do
for prog in librewolf firefox icecat palemoon firedragon torbrowser; do
if has "$prog" ; then
browser_count=$((browser_count+1))
installed_browsers[$browser_count]="$prog : $(command -v $prog)"
Expand Down