From bb866498a149264980c6376d4b45876660b6b14e Mon Sep 17 00:00:00 2001 From: Miciah Dashiel Butler Masters Date: Wed, 25 Jan 2006 15:36:31 +0000 Subject: [PATCH] Add a rewrite rule for video.google.com to automatically play videos From the file: Play videos at video.google.com with minimal niggling. Just follow the link from the front page or the search page, and the video will automatically be loaded. --- contrib/smjs/google_video.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 contrib/smjs/google_video.js diff --git a/contrib/smjs/google_video.js b/contrib/smjs/google_video.js new file mode 100644 index 000000000..c89d2adba --- /dev/null +++ b/contrib/smjs/google_video.js @@ -0,0 +1,15 @@ +/* Play videos at video.google.com with minimal niggling. Just follow the link + * from the front page or the search page, and the video will automatically + * be loaded. */ +function load_google_video(cached) { + if (cached.uri.match(/^http:\/\/video.google.com\/videoplay/)) { + var re; + re = /(