summaryrefslogtreecommitdiffstats
path: root/.scripts
diff options
context:
space:
mode:
Diffstat (limited to '.scripts')
-rwxr-xr-x.scripts/linkhandler3
1 files changed, 2 insertions, 1 deletions
diff --git a/.scripts/linkhandler b/.scripts/linkhandler
index 50209ac..77db7b6 100755
--- a/.scripts/linkhandler
+++ b/.scripts/linkhandler
@@ -9,7 +9,8 @@
# Sci-Hub's domain occasionally changes due to shutdowns:
scihub="http://sci-hub.tw/"
-# setsid nohup
+# If no url given. Opens browser. For using script as $BROWSER.
+[ -z "$1" ] && "$TRUEBROWSER" ; exit
case "$1" in
*mkv|*webm|*mp4|*gif|*youtube.com*|*hooktube.com*)