#!/bin/sh -e
#
# see: https://aduros.com/blog/xterm-its-better-than-you-thought/

grep -aEo '\bhttps?://\S+\b' \
  | uniq \
  | ifne rofi -dmenu -i -p "Open URL" -auto-select \
  | xargs xdg-open
