PopSearch's site search scope.

23 views
Skip to first unread message

MB

unread,
Feb 26, 2018, 5:43:28 PM2/26/18
to Canisbos Extensions
Thank you for this great extension.  PopSearch's default configuration includes site searches, including Google Here ("https://www.google.com/search?q=%s+site:%h") which searches the hostname/sub-domain of the current website.  Replacing the "%h" variable with "%u" limits the search scope to the URL of the current site.  Is there a way to configure it search the current site's entire domain instead of the sub-domain search provided by "%h" (eg: "yahoo.com" instead of "sports.yahoo.com")?

Thank you.  -MB

Canisbos

unread,
Feb 27, 2018, 3:17:13 PM2/27/18
to MB, Canisbos Extensions
Hi MB,

Do you want a general solution that would work on whatever the current site is, or do you only need it for certain sites? If the latter, you can add a search "engine" yourself for each desired site. If the former, give me a few days and I'll add that functionality.

Chul


On Feb 26, 2018 at 2:43 PM, <MB> wrote:

Thank you for this great extension.  PopSearch's default configuration includes site searches, including Google Here ("https://www.google.com/search?q=%s+site:%h") which searches the hostname/sub-domain of the current website.  Replacing the "%h" variable with "%u" limits the search scope to the URL of the current site.  Is there a way to configure it search the current site's entire domain instead of the sub-domain search provided by "%h" (eg: "yahoo.com" instead of "sports.yahoo.com")?

Thank you.  -MB

--

---
You received this message because you are subscribed to the Google Groups "Canisbos Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canisbos+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted
Message has been deleted
Message has been deleted

Canisbos Computing

unread,
Feb 27, 2018, 8:41:36 PM2/27/18
to Michael Bogart, Canisbos Extensions
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 


On Feb 27, 2018, at 2:53 PM, Michael Bogart <michael...@gmail.com> wrote:

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).



You received this message because you are subscribed to a topic in the Google Groups "Canisbos Extensions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/canisbos/NI0Yfv8-7co/unsubscribe.
To unsubscribe from this group and all its topics, send an email to canisbos+u...@googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages