Commits

m.23 committed 3ffc2a2

Added a few sites (Youtube plus generic) v -> 1.1.1

Comments (0)

Files changed (2)

 {
   "name": "Flash Video Download",
-  "version": "1.1",
+  "version": "1.1.1",
   "description": "Download flash videos from web sites (like dailymotion.com or xhamster.com).",
   "icons": { "48": "flv_download48.png" },
   "browser_action": {
 </head>
 
 <body onload="my_load();">
-   <div id=my_div style='width:300px;text-align:center;'>Ready</div>
+   <div id=my_div style='width:300px; text-align:center;'>Ready</div>
    <script type="text/javascript">
       function my_load() {
          var my_div = document.getElementById("my_div");
                my_div.innerHTML = 'YouPorn';
                vid_url = /"(http:\/\/download.youporn.com\/download\/[^"]*)">FLV/;
             }
-            // FIXME
+            /* FIXME
             else if (/http:\/\/.*megavideo.com\//.test(t.url)) {
                my_div.innerHTML = 'MegaVideo';
                vid_url = /embed src="(http:\/\/www.megavideo.com\/v\/[^"]*)"/;
-            }
+            }*/
             else if (/http:\/\/.*youtube.com\//.test(t.url)) {
                my_div.innerHTML = 'YouTube';
                do_normalize = true;
                vid_url = /"fmt_url_map": "35\|[^"\|]*\|(http:\/\/[^\|,]*)%2C5\|/;
             }
             if (vid_url == null) {
-               my_div.innerHTML = 'Generic site... (e.g., Tube8)';
+               my_div.innerHTML = 'Generic site... (Tube8, Novamov, LibClip, ...)';
                vid_url = /(http:\/\/[^ "]*.flv)/;
             }
             var my_get = new XMLHttpRequest();
                      chrome.tabs.update(t.id, {'url': my_url});
                   }
                   else
-                     //my_div.innerHTML = 'No video found :(';
-                     my_div.innerHTML = vid_url;
+                     my_div.innerHTML = 'No video found :(';
+                     //my_div.innerHTML = vid_url;
                }
             };
          });