File: uzblcat

package info (click to toggle)
uzbl 0.0.0~git.20100403-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 760 kB
  • ctags: 783
  • sloc: ansic: 3,952; python: 3,082; sh: 353; makefile: 127
file content (11 lines) | stat: -rwxr-xr-x 241 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env python
# uzblcat - safely push html to uzbl
# See http://www.uzbl.org/wiki/html-mode

from sys import stdin, stdout

stdout.write("uri data:text/html,")
for line in stdin:
    stdout.write(line[0:-1])

# vim: set noet ff=unix