Introduction
Introduction Statistics Contact Development Disclaimer Help
tscreenshot-url - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://hg6vgqziawt5s4dj.onion/annna/
Log
Files
Refs
Tags
---
tscreenshot-url (588B)
---
1 #!/bin/sh
2
3 if [ $# -lt 1 ];
4 then
5 printf "usage: %s url\n" "$(basename "$0")" >&2
6 exit 1
7 fi
8
9 # Use Tor.
10 proxy="socks5://127.0.0.1:9100"
11 #proxy=""
12 export http_proxy="${proxy}"
13 export https_proxy="${proxy}"
14 export socks_proxy="${proxy}"
15
16 url="$1"
17 firefoxargs="--window-size=1024,768"
18 pastebase="/br/gopher/paste"
19
20 cd "${pastebase}"
21 tmpfile="$(mktemp p-XXXXXXXXXXXXX.png)"
22 firefox $firefoxargs --new-instance --screenshot \
23 "${pastebase}/${tmpfile}" "${url}" 2>&1 >/dev/null
24
25 # Firefox stores with rw----
26 chmod g+wr "${pastebase}/${tmpfile}"
27
28 printf "%s/%s\n" "${pastebase}" "${tmpfile}"
29
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.