How to get the domain name of a web page instead of the complete url

I got the complete url through %FrontBrowserURL%
For example: “https:// com/search?&q=hello”
How to get only “google. com”?

So that I can realize any in-station search:
https:// com/search?&q=Keyword+site: the domain name of the website

Use the Filter action with the URL Host filter.

If you want to get rid of the “www.” at the front of it, you can use the Search and Replace action.

Perfect! Thanks!
I used this feature to make a macro that can quickly search the site.
Share it with users in need.

Search for selected keywords on the site.kmmacros (5.0 KB)

1 Like