Sleazy Fork is available in English.

Motherless Video Downloader

Motherless Video Downloader script

  1. // ==UserScript==
  2. // @name Motherless Video Downloader
  3. // @namespace MoViDo
  4. // @description:en Motherless Video Downloader script
  5. // @include http://motherless.com/*
  6. // @homepage http://userscripts.org/scripts/show/100154
  7. // @updateurl http://userscripts.org/scripts/source/100154.user.js
  8. // @version 1.2
  9. // @description Motherless Video Downloader script
  10. // ==/UserScript==
  11.  
  12. var I_Have_A_Realy_Old_Browser = false; // Set this to true if you use IE7, FF3.5 or CHROME10 ( or older )
  13.  
  14. var re = /http:\/\/.+\d\.flv\/.+\.flv/;
  15. var str = document.getElementById('media-media').innerHTML;
  16. var link = str.match(re, "$1");
  17.  
  18. if (I_Have_A_Realy_Old_Browser) {
  19. if (link !== null) {
  20. document.getElementById('media-media').innerHTML += '<h2><br><a href="' + link + '?start=0">Direct Download</a></h2>';
  21. }
  22. } else {
  23. GM_xmlhttpRequest({
  24. url: link + '?start=0',
  25. method: "HEAD",
  26. onload: function(response) {
  27.  
  28. var re = /\d+/g;
  29. var str = response.responseHeaders.match(/Content-Length: \d+/);
  30. var str = str.toString();
  31. var size = str.match(re, "$1");
  32. size = (size / 1024) / 1024;
  33. size = size.toFixed(2);
  34.  
  35. if (link !== null) {
  36. document.getElementById('media-media').innerHTML += '<h2><br><a href="' + link + '?start=0">Direct Download (' + size + ' MB)</a></h2>';
  37. }
  38. }
  39. });
  40. }