Greasy Fork is available in English.
Get real size of the torrents with out page jumps.
当前为
// ==UserScript==
// @name Torrent Kitty Content Size Get
// @namespace https://boblee.cn
// @version 0.1
// @description Get real size of the torrents with out page jumps.
// @author Bob Lee
// @match https://www.torrentkitty.tv/search/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
window.getSize = function (id, url) {
$.ajax({
url: "https://www.torrentkitty.tv" + url,
type: "GET",
success: function(res){
var target = document.getElementById(id);
target.innerText = ($(res).filter('div#main').children().filter('div.wrapper').children().filter('table.detailSummary').children().children().children()[7].innerText);
}
})
}
var table = $("table#archiveResult").children().children();
table[0].cells[1].innerHTML = '<th class="size">Content Size</th>';
for (var i = 1; i < table.length; i++) {
table[i].cells[1].innerHTML = "<a id='bob" + i + "' onclick='window.getSize(\"" + "bob" + i + '","' + table[i].cells[3].innerHTML.split('"')[1] + "\")'>Get</a>";
}
})();