shithub: docs.9front.org

Download patch

ref: 18f4f1946717db26122d9df393f9e867ad57d189
parent: 69199682fe2d8dc467b71fca8b5195fe87b04beb
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue Sep 15 11:13:40 EDT 2020

youtube: add plumb rule

--- a/youtube.md
+++ b/youtube.md
@@ -31,6 +31,13 @@
 		treason -a `"{youtubedr -i 140 -o /tmp/_aud.mp4 $"1} `"{youtubedr -i $vitag -o /tmp/_vid.mp4 $"1}
 	#rm -f /tmp/_^(aud vid)^.mp4
 
+You can put that script to `$home/bin/rc/youtube` and add a plumb rule
+for Youtube URLs, right *before* `include basic`:
+
+	type	is	text
+	data	matches	'https://(www.)?youtube[^ ]+'
+	plumb	start	window youtube ''''$0''''
+
 ## Caveats
 
 Many. Patches welcome.