☰

Kufirc torrent preview cover

The list page shows the cover images

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

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

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name		Kufirc torrent preview cover
// @name:hu Kufirc torrenten a borítóképek megjelenítése
// @author		Kepek
// @description 	The list page shows the cover images
// @description:hu A lista oldalon megmutatja a borítóképet
// @namespace		https://greasyfork.org/hu/users/1159232-kepek
// @license MIT
// @version		0.1
// @include		https://kufirc.com/torrents.php*
// @compatible		Greasemonkey
// @require     https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js
// ==/UserScript==

// Before use, in Search Center choose categories and click on save button (subtitle: "Tedd alapértelmezetté")

// cover image
$('#torrent_table td > a').each(function(index, value) {

    var id = $(value).attr("href");

    id = id.replace("/torrents.php?id=", "");

    if ( typeof unsafeWindow[ "overlay" + id ] !== 'undefined' ) {

      var popup = $.parseHTML( unsafeWindow[ "overlay" + id ] );

      var src = $( 'img', popup ).attr("src");

      $(value).append( '<div><img src="' + src + '" style="max-width: 300px;"></div>' );


    }
  
});