diff --git a/resource/publicSites/imdb.com/top.js b/resource/publicSites/imdb.com/top.js index 34256fd4b..9547ff142 100644 --- a/resource/publicSites/imdb.com/top.js +++ b/resource/publicSites/imdb.com/top.js @@ -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) => { @@ -28,12 +28,16 @@ if (!key) { return; } - let div = $("
").attr("title", `搜索 ${title}`).appendTo(parent); - $("").html("用 PT 助手搜索").on("click", () => { - PTService.call(PTService.action.openOptions, `search-torrent/${key}`); - }).appendTo(div); + let div = $("") + .attr("title", `搜索 ${title}`) + .appendTo(parent); + $("") + .html("用 PT 助手搜索") + .on("click", () => { + PTService.call(PTService.action.openOptions, `search-torrent/${key}`); + }) + .appendTo(div); } - - }; - (new App()).init(); -})(jQuery, window); \ No newline at end of file + } + new App().init(); +})(jQuery, window);