fork download
  1. // ==UserScript==
  2. // @name GET MU
  3. // @namespace GET MU
  4. // @description GET MU link
  5. // @include http://b...content-available-to-author-only...s.fr/blog/greasemonkey-get-all-download-links
  6. // ==/UserScript==
  7. ////////////////////////////////////////////////////////
  8. // Get all download links v1.0
  9. ////////////////////////////////////////////////////////
  10. //Create a div in the top left with all download links for a specific regex
  11. //
  12. //Author:
  13. // Sébastien Lucas (http://b...content-available-to-author-only...s.fr)
  14. //
  15. //Credits:
  16. //
  17. //Changelog:
  18. //
  19. /////////////////////////////////////////////////////////
  20.  
  21.  
  22. // ==UserScript==
  23. // @name ChercheLien
  24. // @namespace fr.slucas.ChercheLien
  25. // @include http://w...content-available-to-author-only...z.org/*
  26. // ==/UserScript==
  27.  
  28. var allLinks, thisLink, linkList, regMega;
  29. linkList = "<p>Liste Liens : </p>";
  30. regMega = new RegExp ("megaupload");
  31. allLinks = document.evaluate(
  32. '//a[@href]',
  33. document,
  34. null,
  35. XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
  36. null);
  37. for (var i = 0; i < allLinks.snapshotLength; i++) {
  38. thisLink = allLinks.snapshotItem(i);
  39. if (regMega.test (thisLink))
  40. {
  41. linkList += "" + thisLink + "<br \>";
  42. }
  43.  
  44. // do something with thisLink
  45. }
  46. //alert (linkList);
  47. var logo = document.createElement("div");
  48. logo.innerHTML = '<div style="float: left; height: 0px; text-align: left; opacity: 0.3;">' +
  49. linkList +
  50. '</div><br \><br \><br \><br \><br \>';
  51. document.body.insertBefore(logo, document.body.firstChild);
  52.  
  53.  
Runtime error #stdin #stdout 0.02s 4980KB
stdin
Standard input is empty
stdout
Standard output is empty