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.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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();
});