Batch Download

快传 旋风 批量连接生成

As of 2016-06-18. See the latest version.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name       Batch Download
// @namespace  https://greasyfork.org/scripts/4453
// @version    0.4
// @description  快传 旋风 批量连接生成
// @match http://fenxiang.qq.com/*
// @match http://kuai.xunlei.com/d/*
// @copyright  2012+, You
// ==/UserScript==

var links = '';

// 旋风
$('.download_file').each(function(){
    var qhref = $(this).attr('qhref');
    $(this).attr('href',qhref);
    $(this).unbind();
    links += qhref + '\n';
});

// 快传
$('a[xsid]').each(function(){
    var href = $(this).attr('href');
	$(this).unbind();
    links += href + '\n';
});

// 右下角文本框
$('body').append('<style>.myboard{position:fixed;bottom:0px;right:0px;width:300px;height:200px;}</style>');
$('body').append('<textarea class="myboard">'+links+'</textarea>');
$('.myboard').focus();
$('.myboard').select();