summaryrefslogtreecommitdiffstats
path: root/firefox-youtube-handler
diff options
context:
space:
mode:
Diffstat (limited to 'firefox-youtube-handler')
-rwxr-xr-xfirefox-youtube-handler9
1 files changed, 9 insertions, 0 deletions
diff --git a/firefox-youtube-handler b/firefox-youtube-handler
new file mode 100755
index 0000000..b339612
--- /dev/null
+++ b/firefox-youtube-handler
@@ -0,0 +1,9 @@
+#!/bin/bash
+proto='yt://'
+url=$1
+id=${url##$proto}
+#smplayer $(youtube-dl -g ${id})
+
+#urxvt -e bash -c "youtube-viewer -I \"http://youtube.com/watch?v=$id\"; sleep 5"
+smplayer "http://youtube.com/watch?v=$id"
+