KevinPayravi / indie-wiki-buddy

Browser extension that automatically notifies and redirects you to independent wikis.
https://getindie.wiki
MIT License
241 stars 66 forks source link

Google result replacement redirects first link in P0 results #732

Open Makonede opened 3 weeks ago

Makonede commented 3 weeks ago

Position 0 Google search results from supported wikis with links to the wiki in the preview cause the first of those links to be replaced instead.

For example, searching "monster cake botw" shows this position 0 result:

Indie Wiki Buddy sees "Goat Butter," which is a link to the Zelda Fandom page for Goat Butter, and as the link precedes the actual article link in the result, a link to the Zelda Wiki article for Goat Butter is shown:

KevinPayravi commented 3 weeks ago

Thanks for reporting this! Will take a look.

SnorlaxMonster commented 3 weeks ago

The link on "Goat Butter" appears to be inside a <g-bubble> element. So if IWB could exclude any URLs that are children of a <g-bubble> element, that should resolve this issue.

SnorlaxMonster commented 2 days ago

FWIW, Google seems to no longer include the <g-bubble> elements when it serves the "Goat Butter" result, so this is no longer reproducible with that specific search result. It likely can still occur for other searches, so it would be valuable to have another example of this occurring. image