qutebrowser/misc/userscripts/qutebrowser_viewsource

14 lines
259 B
Plaintext
Raw Normal View History

#!/bin/bash
#
# This script fetches the unprocessed HTML source for a page and opens it in vim.
# :bind gf spawn --userscript qutebrowser_viewsource
#
path=/tmp/qutebrowser_$(mktemp XXXXXXXX).html
curl "$QUTE_URL" > $path
urxvt -e vim "$path"
rm "$path"