#/bin/sh export URL=$(xclip -o) if echo "$URL" | grep -iv "^[ ]*http://.*$" then $BROWSER -remote "ping()" if [ $? = 0 ] then exec $BROWSER -remote "openURL(http://$URL,new-tab)" else exec $BROWSER "http://$URL" & fi else $BROWSER -remote "ping()" if [ $? = 0 ] then exec $BROWSER -remote "openURL($URL,new-tab)" else exec $BROWSER "$URL" & fi fi