From: Antonio Ospite Date: Fri, 23 Dec 2011 22:20:17 +0000 (+0100) Subject: Support RaiReplay X-Git-Tag: 0.3~1 X-Git-Url: https://git.ao2.it/GM_direct_download_links.git/commitdiff_plain/4dfd2be957ad6e562bd3a8a272929aa56cde9a7e?hp=72efdc240d3eaac28d3a328d8d509af3fe758253 Support RaiReplay Leave the SmoothStreaming manifest URLs untouched, at least they can be copied and used with smooth-dl. Signed-off-by: Antonio Ospite --- 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({