Skip to content

Commit

Permalink
fix: update search engines
Browse files Browse the repository at this point in the history
  • Loading branch information
dessant committed Jun 21, 2024
1 parent ce59b21 commit 5cf99f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/engines/bing.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ const engine = 'bing';

async function search({session, search, doc, storageIds}) {
const button = await findNode(
'ol#b_results li.b_algo:first-of-type div.b_attribution a.trgr_icon',
'ol#b_results li.b_algo div.b_attribution a.trgr_icon',
{throwError: false}
);

if (button) {
button.click();

const node = await findNode(
'ol#b_results li.b_algo:first-of-type div.b_attribution a[href*="cc.bingj.com/cache"]',
'ol#b_results li.b_algo div.b_attribution a[href*="cc.bingj.com/cache"]',
{throwError: false, timeout: 1000}
);

Expand Down
4 changes: 2 additions & 2 deletions src/engines/yahoo.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ const engine = 'yahoo';

async function search({session, search, doc, storageIds}) {
const button = await findNode(
'#results li:first-of-type div.options-toggle span.chevron-down',
'#results li div.options-toggle span.chevron-down',
{throwError: false}
);

if (button) {
button.click();

const node = await findNode(
'#results li:first-of-type a[href*="cc.bingj.com/cache"], #results li:first-of-type a[href*="cc.bingj.com%2fcache"]',
'#results li a[href*="cc.bingj.com/cache"], #results li a[href*="cc.bingj.com%2fcache"]',
{throwError: false, timeout: 1000}
);

Expand Down
1 change: 1 addition & 0 deletions src/engines/yandex.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ async function search({session, search, doc, storageIds}) {
throwError: false,
timeout: 30000
});
await sleep(1000);

await sendReceipt(storageIds);

Expand Down

0 comments on commit 5cf99f0

Please sign in to comment.