Greasemonkey: YGG script

De Adadov.net wiki
// ==UserScript==
// @name        YggTorrent
// @description	Ygg script
// @author      Adadov
// @version     1.0
// @require     https://code.jquery.com/jquery-3.3.1.slim.min.js
// @include     /^https?://.*\.yggtorrent\..*\/engine\/search/
// ==/UserScript==

$('.results thead tr th:eq(1)').after('<th class="no">DL</th>');
$('.results tbody tr').each(function(){
  torrent_id = $('a#get_nfo', this).attr('target');
  $('td:eq(1)', this).after('<td><a href="https://www2.yggtorrent.gg/engine/download_torrent?id='+torrent_id+'"><img src="https://pirateproxy.bet/static/img/icon-magnet.gif" /></a></td>');
});