Skip to content

Commit

Permalink
fix: update Yandex
Browse files Browse the repository at this point in the history
Closes #106.
  • Loading branch information
dessant committed Dec 13, 2024
1 parent bbbc4b0 commit 1e5defd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/engines/yandex.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function handleResults(sourceUrl, results) {

window.setTimeout(async function () {
const link = await findNode(
'#ExtralinksPopup a.ExtralinksPopup-Item_copy'
'.ExtralinksPopup a.ExtralinksPopup-Item_copy'
);
link.setAttribute('target', '_top');
link.click();
Expand Down Expand Up @@ -93,7 +93,7 @@ async function search({session, search, doc, storageIds}) {
await sleep(1000);

let results = document.querySelectorAll(
'#search-result button.OrganicExtralinks'
'#search-result button.Organic-Extralinks'
);

if (results.length) {
Expand All @@ -116,7 +116,7 @@ async function search({session, search, doc, storageIds}) {
}, 100);

// the page is not reloaded on desktop
await findNode('#search-result button.OrganicExtralinks', {
await findNode('#search-result button.Organic-Extralinks', {
throwError: false,
timeout: 30000
});
Expand All @@ -125,7 +125,7 @@ async function search({session, search, doc, storageIds}) {
await sendReceipt(storageIds);

results = document.querySelectorAll(
'#search-result button.OrganicExtralinks'
'#search-result button.Organic-Extralinks'
);

if (results.length) {
Expand Down

0 comments on commit 1e5defd

Please sign in to comment.