User Tools

Site Tools


scripts-faq
Get the source of a page without re-requesting it
echo 'js document.documentElement.outerHTML' | socat - unix-connect:$UZBL_SOCKET

* But this returns the source contaminated with various other messages e.g. EVENT notifications like keypresses! –Chris2048

Get the current uri of all open uzbls

Good for overall multi-instance-management from within a shell script.

You can echo any valid uzbl command into the socket(s) this way.

for socket in /tmp/uzbl_socket_*; do
  echo 'print @uri' | socat - unix-connect:$socket
done
scripts-faq.txt · Last modified: 2016/08/31 14:10 (external edit)