Block / Highlight based on domain and path

About: Google Hit Hider by Domain (Search Filter / Block Sites)

Hi Jefferson, I am still using this fantastic script, so first of all thank you.

I can't recall if I already asked about this or read someone's else question about it. It might also be beyond the scope of the script in either case. Though is filtering based on domain and a more full path at all possible? Personally I am mainly using Google and this might as well differ based on search engine I guess, as maybe the full path is not available to the script to match/filter against on all platforms. I thought I would ask at least.



  • The current design of the script would be difficult to expand to looking at the path. The fundamental approach to comparing the link's domain to the list of domains hasn't changed from version 0.1 in January 2011. I used the simplest possible method of comparison, which is backwards from how you would compare full or partial paths. A better approach for that would be the one used in the old Google Search Filter Plus script, which unfortunately hasn't been updated as far as I know, or in modern ad blockers.

    If you need to extract a lot of results for a single site and exclude some paths, you might look into the ImportXML function in Google Sheets, which can be used for web scraping (although it probably doesn't pass credentials, so presumably results wouldn't be personalized).

Accede o Regístrate para comentar.