File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 689689 path . startsWith ( "/Search/Advanced" ) ||
690690 path . startsWith ( "/Search/AdvancedMobile" ) ||
691691 path . startsWith ( "/Search/Express" ) ||
692- path . startsWith ( "/Search/Simple" )
692+ path . startsWith ( "/Search/Simple" ) ||
693+ path . startsWith ( "/Search/Result" )
693694 ) ) return ;
694695
695696 const readRequest = await consumeReadRequest ( ) ;
704705 . filter ( w => ! stopwords . has ( w ) )
705706 . join ( ' ' ) ;
706707
708+ const keyword_field_id = path . startsWith ( "/Search/Result" ) ? "NativeQuery" : "Keywords" ;
707709
708- onElemAvailable ( '#Keywords' ) . then ( ( selector ) => {
710+ onElemAvailable ( '#' + keyword_field_id ) . then ( ( selector ) => {
709711 const keyword_field = selector ;
710712 keyword_field . value = 'TIT_HEAD=' + keywords ;
711713 keyword_field . form . submit ( ) ;
You can’t perform that action at this time.
0 commit comments