Batch Download

快传 旋风 批量连接生成

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

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