#! /bin/sh # SocketControl browser extension https://github.com/karabaja4/firefox-socket-control if [ -S /tmp/firefox.sock ]; then OPENLINK="$1" printf "%s" "nt|$OPENLINK" | nc -NU /tmp/firefox.sock exit 0 fi # Failsafe $BROWSER -new-tab "$1" exit 0