Check for removal of new link

Qwant can sometimes remove the new link button but leave the ancestor iwb-detected class intact.
toggle-search-engines
Kevin Payravi 2024-04-18 20:31:22 +02:00
parent c3e7339019
commit de130b1a79
1 changed files with 1 additions and 1 deletions

View File

@ -584,7 +584,7 @@ async function filterSearchResults(searchResults, searchEngine, storage, reorder
for (const searchResult of searchResults) {
try {
// Check that result isn't within another result
if (!searchResult.closest('.iwb-detected')) {
if (!searchResult.closest('.iwb-detected') || !searchResult.closest('.iwb-detected')?.querySelector('.iwb-new-link')) {
searchResultLink = searchResult.href || '';
if (!searchResultLink) {