// direct_download_links - Add direct download links
-// version 0.2
-// 2011-11-14
+// version 0.3
+// 2011-12-23
// Copyright (C) 2011 Antonio Ospite <ospite@studenti.unina.it>
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
style += ' border: 2px solid red;'
style += ' float: right; font-size: large;';
style += ' padding: .5em; margin: 1em;'
+ style += ' position: relative; z-index: 1000;'
download_link.setAttribute('style', style);
destination.insertBefore(download_link, destination.firstChild);
}
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({