Okay, I've added this feature, after a fashion. The problem is knowing which part of the hostname to take. I can't always take the last two pieces of the hostname, because some countries use what I'm calling compound domains like "
google.com.au". If you took the last two pieces of that, you would search on "site:com.au" and get more results than you presumably want.
I could probably find some huge table of such compound domains to handle them properly, but I didn't want to put that in the extension. So, I've left it up to the user to specify how many pieces to take from the end of the hostname.
To use this functionality, you can now specify a number in curly braces after the "%h" variable; for example, "%h{2}", which will be replaced by the last two pieces of the hostname.
The updated extension is version 2.0.14. You should see the update in Safari Preferences now or soon.
Regards,
Chul
I was hoping for a general solution as sites can vary quite a bit with site searches using "www.example.com" or "subsection.example.com" vs a broader domain search for "example.com." I can't ask you to add this feature just on my behalf but maybe others might find it useful. Again, thank you for your suite of Safari extensions which really help make this browser a viable alternative to the Chromium browsers.-MB
(note: I attempted to reply several times via Google Groups and each time was marked as deleted after posting, I don’t know if this is on my end or Google’s. I apologize in advance if your Google Groups site receives a triple post from me).