qutebrowser/misc/userscripts/qutebrowser_viewsource
Zach-Button 5359463d79 Add misc/userscripts
- Added misc/userscripts/dmenu_qutebrowser
- Added misc/userscripts/qutebrowser_viewsource
2015-04-21 14:52:43 -06:00

14 lines
253 B
Bash
Executable File

#!/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-src_$(date "+%s")
curl "$QUTE_URL" > $path
urxvt -e vim "$path"
rm "$path"