Skip to content

Commit 5f93c43

Browse files
authored
v2.1: 修复快捷键查询,并且忽视大小写
1 parent e97ca51 commit 5f93c43

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

NyaaTorrentHelper.user.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// @name Nyaa Torrent Helper
33
// @name:zh Nyaa 助手
44
// @namespace https://github.com/jc3213/userscript
5-
// @version 2.0
5+
// @version 2.1
66
// @description Nyaa Torrent ease to access torrent info and preview, filter search result, and aria2c intergration
77
// @description:zh 能便捷操作 Nyaa 的种子信息,预览缩微图,过滤搜索结果,联动aria2c
88
// @author jc3213
@@ -79,8 +79,9 @@ function filterTorrents() {
7979
keyword = '';
8080
delete filterResult[result];
8181
} else {
82+
let match = result.toLowerCase();
8283
for (let tr of torrents) {
83-
tr.info.name.includes('keyword')
84+
tr.info.name.toLowerCase().includes(match)
8485
? tr.classList.remove('nyaa-hidden')
8586
: tr.classList.add('nyaa-hidden');
8687
}

0 commit comments

Comments
 (0)