Skip to content

Commit

Permalink
fix: 修复 IMDb Top250 页面助手搜索按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
ronggang committed Feb 10, 2025
1 parent 6505bd4 commit 6597b34
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions resource/publicSites/imdb.com/top.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* 初始化按钮列表
*/
initButtons() {
let items = $("td.titleColumn a");
let items = $("a.ipc-title-link-wrapper");
console.log(items);
if (items.length > 0) {
items.each((index, item) => {
Expand All @@ -28,12 +28,16 @@
if (!key) {
return;
}
let div = $("<div style='text-align:right;'/>").attr("title", `搜索 ${title}`).appendTo(parent);
$("<a href='javascript:void(0);'/>").html("用 PT 助手搜索").on("click", () => {
PTService.call(PTService.action.openOptions, `search-torrent/${key}`);
}).appendTo(div);
let div = $("<div style='text-align:right;'/>")
.attr("title", `搜索 ${title}`)
.appendTo(parent);
$("<a href='javascript:void(0);'/>")
.html("用 PT 助手搜索")
.on("click", () => {
PTService.call(PTService.action.openOptions, `search-torrent/${key}`);
})
.appendTo(div);
}

};
(new App()).init();
})(jQuery, window);
}
new App().init();
})(jQuery, window);

0 comments on commit 6597b34

Please sign in to comment.