Batch Download

快传 旋风 批量连接生成

当前为 2014-08-23 提交的版本,查看 最新版本

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