Batch Download

快传 旋风 批量连接生成

  1. // ==UserScript==
  2. // @name Batch Download
  3. // @namespace https://greasyfork.org/scripts/4453
  4. // @version 0.4
  5. // @description 快传 旋风 批量连接生成
  6. // @match http://fenxiang.qq.com/*
  7. // @match http://kuai.xunlei.com/d/*
  8. // @copyright 2012+, You
  9. // ==/UserScript==
  10.  
  11. var links = '';
  12.  
  13. // 旋风
  14. $('.download_file').each(function(){
  15. var qhref = $(this).attr('qhref');
  16. $(this).attr('href',qhref);
  17. $(this).unbind();
  18. links += qhref + '\n';
  19. });
  20.  
  21. // 快传
  22. $('a[xsid]').each(function(){
  23. var href = $(this).attr('href');
  24. $(this).unbind();
  25. links += href + '\n';
  26. });
  27.  
  28. // 右下角文本框
  29. $('body').append('<style>.myboard{position:fixed;bottom:0px;right:0px;width:300px;height:200px;}</style>');
  30. $('body').append('<textarea class="myboard">'+links+'</textarea>');
  31. $('.myboard').focus();
  32. $('.myboard').select();