Detection of Shopify search forms

2 days ago 2
ARTICLE AD BOX

I have a question that I haven't figured out yet from searching on the internet.
Is there a way to globally detect the search form(s) of a website that uses Shopify as CMS?

A JS selector that would result in all of the search forms? because some sites I see that use the predictive-search tag while others use just the form tag but with drawer classname, some use search-form tag and the list grows as I see more sites.

I know that each site can implement it in a billion different ways, but, is there a selector that would catch not 100% of the cases, but most? specifically in shopify websites.

What I have so far:

document.querySelector('predictive-search, search-form, SearchDrawer');

Site for example:

https://mammachia.com/

The search bar is the magnifying glass:

enter image description here

Thanks.

Read Entire Article