☰

Kufirc torrent preview cover

The list page shows the cover images

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

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

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.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu betiği yüklemek için bir betik yöneticisi eklentisi yüklemeniz gerekecektir.

(Zaten bir betik yöneticim var, hadi yükleyelim!)

Bu stili yüklemek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için Stylus gibi bir uzantı kurmanız gerekir.

Bu stili yükleyebilmek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı kurmanız gerekir.

Bu stili yükleyebilmek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

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

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


    }
  
});