From 4dfd2be957ad6e562bd3a8a272929aa56cde9a7e Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Fri, 23 Dec 2011 23:20:17 +0100 Subject: [PATCH 1/1] Support RaiReplay Leave the SmoothStreaming manifest URLs untouched, at least they can be copied and used with smooth-dl. Signed-off-by: Antonio Ospite --- direct_download_links.user.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/direct_download_links.user.js b/direct_download_links.user.js index 2dd4a6a..3e089a8 100644 --- a/direct_download_links.user.js +++ b/direct_download_links.user.js @@ -228,6 +228,17 @@ function DDL_log(message) { } function _rai_get_actual_url(site, URL) { + + // SmoothStreaming manifest files get added without processing, for now: + if (URL.match(/.*\.csm$/)) { + var evt = document.createEvent('Event'); + evt.initEvent('UrlFetched', true, true); + evt.site = site; + evt.URL = URL; + document.dispatchEvent(evt); + return; + } + // http://www.neaveru.com/wordpress/index.php/2008/05/09/greasemonkey-bug-domnodeinserted-event-doesnt-allow-gm_xmlhttprequest/ setTimeout( function() { GM_xmlhttpRequest({ -- 2.1.4