From bbdec1779aaf3d879c0ebeb27fc85c1c2e07fa9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20Wi=C3=9Fmann?= Date: Thu, 3 Sep 2015 18:01:09 +0200 Subject: [PATCH] Add check that view_in_mpv is run as a userscript Also fix another typo. --- misc/userscripts/view_in_mpv | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/misc/userscripts/view_in_mpv b/misc/userscripts/view_in_mpv index 98e197d4d..9b12a0e65 100755 --- a/misc/userscripts/view_in_mpv +++ b/misc/userscripts/view_in_mpv @@ -19,11 +19,21 @@ # downloaded) twice — in MPV and in qwebkit. So I often close the tab after # opening it in mpv. However, I actually want to keep the rest of the page # (comments and video suggestions), i.e. only the videos should disappear -# when mpv us started. And that's precisely what the present script does. +# when mpv is started. And that's precisely what the present script does. # # Thorsten Wißmann, 2015 (thorsten` on freenode) # Any feedback is welcome! +if [ -z "$QUTE_FIFO" ] ; then + cat 1>&2 <