// ==UserScript== // @name Download History Search // @namespace PXgamer // @version 0.2 // @description Search your account downloads. // @author PXgamer // @match *kat.cr/account/history/* // @grant none // @downloadURL none // ==/UserScript== (function() { 'use strict'; $('div.buttonsline').append(' '); $('.searchFor').on('click', function() { $('#wrapperInner div.mainpart table tbody tr td:nth-child(1) table tbody tr td:nth-child(2) div.markeredBlock.torType a.cellMainLink').each(function() { $(this).parent().parent().parent().show(); }); var searchParam = $('input#historySearch').val().toLowerCase(); $('#wrapperInner div.mainpart table tbody tr td:nth-child(1) table tbody tr td:nth-child(2) div.markeredBlock.torType a.cellMainLink').each(function() { if ($(this).html().toLowerCase().indexOf(searchParam) === -1) { $(this).parent().parent().parent().hide(); } }); }); })();