Commit 6597b34 committed Feb 10, 2025 · 3 / 4
1 parent 6505bd4 commit 6597b34 Copy full SHA for 6597b34
File tree 1 file changed +13
-9
lines changed
resource/publicSites/imdb.com
1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change 10
10
* 初始化按钮列表
11
11
*/
12
12
initButtons ( ) {
13
- let items = $ ( "td.titleColumn a " ) ;
13
+ let items = $ ( "a.ipc-title-link-wrapper " ) ;
14
14
console . log ( items ) ;
15
15
if ( items . length > 0 ) {
16
16
items . each ( ( index , item ) => {
28
28
if ( ! key ) {
29
29
return ;
30
30
}
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 ) ;
35
40
}
36
-
37
- } ;
38
- ( new App ( ) ) . init ( ) ;
39
- } ) ( jQuery , window ) ;
41
+ }
42
+ new App ( ) . init ( ) ;
43
+ } ) ( jQuery , window ) ;
You can’t perform that action at this time.
0 commit comments