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

* 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: 2010/06/28 18:57 by chris2048
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki