Fix for Yandex filtering
uBlock Origin seems to change class names, so adding a new selector that relies on elements+attributetoggle-search-engines
parent
de130b1a79
commit
ecc764ddf7
|
@ -455,7 +455,7 @@ async function filterSearchResult(matchingSite, searchResult, searchEngine, coun
|
|||
searchResultContainer = searchResult.closest('div.w-gl__result');
|
||||
break;
|
||||
case 'yandex':
|
||||
searchResultContainer = searchResult.closest('.serp-item, .MMOrganicSnippet, .viewer-snippet');
|
||||
searchResultContainer = searchResult.closest('li[data-cid], .serp-item, .MMOrganicSnippet, .viewer-snippet');
|
||||
break;
|
||||
case 'yahoo':
|
||||
searchResultContainer = searchResult.closest('#web > ol > li div.itm .exp, #web > ol > li div.algo, #web > ol > li, section.algo');
|
||||
|
@ -747,7 +747,7 @@ function startFiltering(searchEngine, storage, mutations = null, observer = null
|
|||
case 'yandex':
|
||||
// Function to filter search results in Yandex
|
||||
function filterYandex() {
|
||||
let searchResults = Array.from(document.querySelectorAll('.serp-item a.link, .serp-item a.Link, .MMOrganicSnippet a, .viewer-snippet a')).filter(el =>
|
||||
let searchResults = Array.from(document.querySelectorAll('li[data-cid] a.link, li[data-cid] a.Link, .serp-item a.link, .serp-item a.Link, .MMOrganicSnippet a, .viewer-snippet a')).filter(el =>
|
||||
el.href?.includes('.fandom.com') ||
|
||||
el.href?.includes('.wiki.fextralife.com') ||
|
||||
el.href?.includes('.neoseeker.com/wiki/'));
|
||||
|
|
Loading…
Reference in New Issue