Closed Extravi closed 9 months ago
Could change it to:
if (document.querySelectorAll(".search-active")[1].innerText === "Images") {
// Do image search stuff
}
This checks which of the search buttons is selected. If it's images, then do whatever it says.
alright ill test that and add it in the update with ui fixes
thanks
works thank you
Can you check that it works with other languages? Im not at my computer right now, so i cant.
It should probably be changed to use .value instead of .innerText, because .value stays the same across all ux languages.
Also,remove the 'All' and the index from the queryselector function to improve efficiency.
Can you check that it works with other languages? Im not at my computer right now, so i cant.
It should probably be changed to use .value instead of .innerText, because .value stays the same across all ux languages.
I already added it to the code but I'll go back and make that change
it dose not work without querySelectorAll but this version works
if (document.querySelectorAll(".search-active")[1].getAttribute("value") === "image") {