Batch Download

快传 旋风 批量连接生成

Tính đến 18-06-2016. Xem phiên bản mới nhất.

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

Bạn sẽ cần cài đặt một tiện ích mở rộng như Tampermonkey hoặc Violentmonkey để cài đặt kịch bản này.

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.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

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();