From bd8b5565ffa54fbb8c8bf9299cc6a67af6c4378d Mon Sep 17 00:00:00 2001 From: Phantop Date: Sat, 8 Feb 2020 23:17:47 -0500 Subject: [PATCH] Qute: nitterize --- .config/qutebrowser/autoconfig.yml | 1 + .local/share/qutebrowser/userscripts/nitterize | 3 +++ 2 files changed, 4 insertions(+) create mode 100755 .local/share/qutebrowser/userscripts/nitterize diff --git a/.config/qutebrowser/autoconfig.yml b/.config/qutebrowser/autoconfig.yml index c4cc71a..d703d4d 100755 --- a/.config/qutebrowser/autoconfig.yml +++ b/.config/qutebrowser/autoconfig.yml @@ -26,6 +26,7 @@ settings: sa: spawn -u archive sd: spawn -u open_download st: spawn -u switchtor + sx: spawn -u nitterize passthrough: exit: leave-mode : null diff --git a/.local/share/qutebrowser/userscripts/nitterize b/.local/share/qutebrowser/userscripts/nitterize new file mode 100755 index 0000000..36f253d --- /dev/null +++ b/.local/share/qutebrowser/userscripts/nitterize @@ -0,0 +1,3 @@ +#!/usr/bin/fish + +echo open (echo $QUTE_URL | sed 's/www.youtube.com/invidio.us/; s/twitter.com/nitter.net/') >> "$QUTE_FIFO"