Skip to content

Commit 6597b34

Browse files
committedFeb 10, 2025·
fix: 修复 IMDb Top250 页面助手搜索按钮
1 parent 6505bd4 commit 6597b34

File tree

1 file changed

+13
-9
lines changed
  • resource/publicSites/imdb.com

1 file changed

+13
-9
lines changed
 

‎resource/publicSites/imdb.com/top.js

+13-9
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* 初始化按钮列表
1111
*/
1212
initButtons() {
13-
let items = $("td.titleColumn a");
13+
let items = $("a.ipc-title-link-wrapper");
1414
console.log(items);
1515
if (items.length > 0) {
1616
items.each((index, item) => {
@@ -28,12 +28,16 @@
2828
if (!key) {
2929
return;
3030
}
31-
let div = $("<div style='text-align:right;'/>").attr("title", `搜索 ${title}`).appendTo(parent);
32-
$("<a href='javascript:void(0);'/>").html("用 PT 助手搜索").on("click", () => {
33-
PTService.call(PTService.action.openOptions, `search-torrent/${key}`);
34-
}).appendTo(div);
31+
let div = $("<div style='text-align:right;'/>")
32+
.attr("title", `搜索 ${title}`)
33+
.appendTo(parent);
34+
$("<a href='javascript:void(0);'/>")
35+
.html("用 PT 助手搜索")
36+
.on("click", () => {
37+
PTService.call(PTService.action.openOptions, `search-torrent/${key}`);
38+
})
39+
.appendTo(div);
3540
}
36-
37-
};
38-
(new App()).init();
39-
})(jQuery, window);
41+
}
42+
new App().init();
43+
})(jQuery, window);

0 commit comments

Comments
 (0)
Please sign in to comment.