Adjust Google re-order insertion position
Since we now take the parentNode of located Google search engine result containers, we need to adjust where we insert re-ordered results. Instead of prepending to parent node, we insert before the non-indie container.pull/773/head
parent
1c6efc0860
commit
84b78a29a2
|
@ -370,7 +370,7 @@ async function reorderDestinationSearchResult(firstNonIndieResult, searchResult)
|
|||
|
||||
indieSearchResultContainer.classList.add('iwb-reordered');
|
||||
// Prepend search results to first Fandom/Fextra/Neoseeker result
|
||||
nonIndieSearchResultContainer.parentNode.prepend(indieSearchResultContainer);
|
||||
nonIndieSearchResultContainer.parentNode.insertBefore(indieSearchResultContainer, nonIndieSearchResultContainer);
|
||||
}
|
||||
|
||||
async function reorderSearchResults(searchResults, searchEngine, storage) {
|
||||
|
|
Loading…
Reference in New Issue