Batch Download

快传 旋风 批量连接生成

目前为 2016-06-18 提交的版本。查看 最新版本

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