// ==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 // @downloadURL 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 = 'Content Size'; for (var i = 1; i < table.length; i++) { table[i].cells[1].innerHTML = "Get"; } })();