Skip to content

Commit e78d22c

Browse files
author
github-actions
committed
Release from Ophirofox v2.4.26326.30329
1 parent 6656c08 commit e78d22c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ophirofox.user.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,8 @@
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();
@@ -704,8 +705,9 @@
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();

0 commit comments

Comments
 (0)