您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Search your account downloads.
// ==UserScript== // @name Download History Search // @namespace pxgamer // @version 0.3 // @description Search your account downloads. // @author pxgamer // @include *kat.cr/account/history/* // @grant none // ==/UserScript== (function() { 'use strict'; $('div.buttonsline').append(' <input type="text" id="historySearch" style="border-radius: 2px; padding: 3px 13px 3px; margin-top: 1px;"> <button class="siteButton bigButton searchFor ka ka-search"></button>'); $('.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() { var list = searchParam.split(' '); for (var i=0; i<list.length; ++i) { if ($(this).html().toLowerCase().indexOf(list[i]) === -1) { $(this).parent().parent().parent().hide(); } } }); }); })();