// ==UserScript== // @name Torrent Kitty Content Size Get // @namespace https://boblee.cn // @version 0.3 // @description Get real size of the torrents with out page jumps. // @author Bob Lee // @match https://www.torrentkitty.tv/search/* // @grant none // @downloadURL none // ==/UserScript== (function() { 'use strict'; var urlList = new Array(); var table = $("table#archiveResult").children().children(); window.getSize = function (id, url) { $.ajax({ url: "https://www.torrentkitty.tv" + url, type: "GET", beforeSend: function () { var target = document.getElementById(id); target.innerText = "loading..."; }, 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); } }) } window.getSizeAll = function () { for (var i = 1; i < table.length; i++) { window.getSize("bob_" + i, urlList[i]); } } table[0].cells[1].innerHTML = '