uplss 377 B

12345678
  1. #!/usr/bin/env bash
  2. file="$HOME/screenshot.png"
  3. url=`curl http://postimage.org/index.php -F upload=@$file -L -s | grep "http://postimg.org/image/.*/' target='_blank'" -o | head -n 1`
  4. url=${url:0:${#url}-17}
  5. url=`curl $url -A 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0' -s | grep '<img .* alt' -o`
  6. url=${url:10:${#url}-15}
  7. x-www-browser $url