Kufirc torrent preview cover

The list page shows the cover images

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

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

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.

(I already have a user script manager, let me install it!)

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


    }
  
});