aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/data/scripts/uzblcat
blob: 4aa4b9e51c78b8759d7301d402c13d4c3607934f (plain)
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