Cpasbien direct torrent

Add a direct link to the torrent file in the summary. With this script, you no longer need to open each link to get the torrent file.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        Cpasbien direct torrent
// @name:fr     Cpasbien direct torrent
// @author      Tegomass
// @namespace   hideonScript
// @description Add a direct link to the torrent file in the summary. With this script, you no longer need to open each link to get the torrent file.
// @description:fr Ajoutez un lien direct vers le fichier torrent voulu directement depuis la liste (cela vous évitera d'ouvrir chaque fiche une à une pour récupérer le fichier torrent.
// @include     http://www.cpasbien.*
// @version     1.3
// @grant       none
// ==/UserScript==


$('#conteneur').append('<div id="tegoAdd" style="position:fixed; top:0px; right:0px; background-color:#2980b9 ; padding: 10px; color:#fff">Fast Torrent</div>')
$('#tegoAdd').one('click', function() {
	$('#gauche [class^=ligne]').each(function() {
	    var self = $(this);
		$.ajax({
			url: $('.titre',this).attr('href'),
			type: 'GET',
	 		success: function(data){
	   			$('.down', self).html('<a href="'+ $('#telecharger', data).attr('href') +'">'+$('.down', self).text()+'</a>');
			}
		});
	});
	$(this).remove();
});