|
|
@@ -1,6 +1,8 @@
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
file="$HOME/screenshot.png"
|
|
|
-url=`curl http://sadpanda.us/upload.php -F image=@$file | grep 'value="http://sadpanda.us/images/.*png"' -o`
|
|
|
-url=${url:7:${#url}-8}
|
|
|
+url=`curl http://postimage.org/index.php -F upload=@$file -L -s | grep "http://postimg.org/image/.*/' target='_blank'" -o | head -n 1`
|
|
|
+url=${url:0:${#url}-17}
|
|
|
+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`
|
|
|
+url=${url:10:${#url}-15}
|
|
|
x-www-browser $url
|