<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Conditional search engine selection in Firefox?</title>
	<link>http://ask.metafilter.com/98613/Conditional-search-engine-selection-in-Firefox/</link>
	<description>Comments on Ask MetaFilter post Conditional search engine selection in Firefox?</description>
	<pubDate>Thu, 07 Aug 2008 14:12:04 -0800</pubDate>
	<lastBuildDate>Thu, 07 Aug 2008 14:12:04 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Conditional search engine selection in Firefox?</title>
		<link>http://ask.metafilter.com/98613/Conditional-search-engine-selection-in-Firefox</link>	
		<description>Conditional search engine selection in Firefox search box based on contents (in particular, character set) of the search query? &lt;br /&gt;&lt;br /&gt; I would like Firefox to use a different search engine depending on the type of string I enter into the search box. I think that regex matching, if possible, would do the trick.&lt;br&gt;
&lt;br&gt;
I like using the search box in Firefox.&lt;br&gt;
&lt;br&gt;
I like Google for most searches, but I want to use Yandex by default for any search that contains Cyrillic (Russian) characters.&lt;br&gt;
&lt;br&gt;
For example, if I&apos;m searching for &quot;keys wallet phone&quot;, Firefox should use Google, but if I&apos;m searching for &quot;&#1082;&#1083;&#1102;&#1095;&#1080; &#1073;&#1091;&#1084;&#1072;&#1078;&#1085;&#1080;&#1082; &#1090;&#1077;&#1083;&#1077;&#1092;&#1086;&#1085;&quot;, it should switch to Yandex. (Yandex should be used even if Latin characters are present, as long as at least one Cyrillic character is there.)&lt;br&gt;
&lt;br&gt;
How do I make Firefox switch search engines depending on the charset of the text I enter?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2008:site.98613</guid>
		<pubDate>Thu, 07 Aug 2008 13:35:13 -0800</pubDate>
		<dc:creator>qvtqht</dc:creator>
		
			<category>firefox</category>
		
			<category>language</category>
		
			<category>search</category>
		
			<category>google</category>
		
			<category>russian</category>
		
			<category>unicode</category>
		
			<category>regex</category>
		
	</item> <item>
		<title>By: le morte de bea arthur</title>
		<link>http://ask.metafilter.com/98613/Conditional-search-engine-selection-in-Firefox#1435673</link>	
		<description>One approach would be to write an html page of your own with some suitable javascript. The javascript would need to check the search text for Cyrillic characters and then pass the text as a parameter to the appropriate search page.&lt;br&gt;
&lt;a href=&quot;http://www.mediacollege.com/internet/javascript/form/multi-search.html&quot;&gt;&lt;br&gt;
Here&apos;s&lt;/a&gt; an example you could modify. Maybe someone else could help with some code for detecting Cyrillic characters...</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.98613-1435673</guid>
		<pubDate>Thu, 07 Aug 2008 14:12:04 -0800</pubDate>
		<dc:creator>le morte de bea arthur</dc:creator>
	</item><item>
		<title>By: wongcorgi</title>
		<link>http://ask.metafilter.com/98613/Conditional-search-engine-selection-in-Firefox#1435702</link>	
		<description>You could also create your own &quot;intermediate&quot; search engine, which would redirect based on the detected querystring, which would come from own custom search provider.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.98613-1435702</guid>
		<pubDate>Thu, 07 Aug 2008 14:34:52 -0800</pubDate>
		<dc:creator>wongcorgi</dc:creator>
	</item><item>
		<title>By: benzenedream</title>
		<link>http://ask.metafilter.com/98613/Conditional-search-engine-selection-in-Firefox#1435764</link>	
		<description>Write it in greasemonkey.  Intercept www.google.com requests, then rewrite the URL if cyrillic content is found in search terms (a regex should work fine).&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://userscripts.org/scripts/review/784&quot;&gt;Secure Gmail&lt;/a&gt; provides a good template to work from.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.98613-1435764</guid>
		<pubDate>Thu, 07 Aug 2008 15:51:56 -0800</pubDate>
		<dc:creator>benzenedream</dc:creator>
	</item><item>
		<title>By: disorder</title>
		<link>http://ask.metafilter.com/98613/Conditional-search-engine-selection-in-Firefox#1435779</link>	
		<description>How about Firefox&apos;s built-in special searches?&lt;br&gt;
&lt;br&gt;
I use these for near everything, and it saves the time of clicking back and forth, selecting the search engine, etc, and I always get the results from sites I want. &lt;a href=&quot;http://kb.mozillazine.org/Using_keyword_searches&quot;&gt;Here&lt;/a&gt; for a quick how-to. It&apos;s as easy as right clicking in the search box on a given page, and choosing &quot;Add a keyword for this search...&quot; &lt;br&gt;
&lt;br&gt;
Like it says in the walkthrough above, there are some built in searches by default so you can try those out and see if they help at all or are even a suitable solution for you.&lt;br&gt;
&lt;br&gt;
eg. typing &quot;wp astronomy&quot; into your location bar and then hitting enter should take you right to the astronomy page on The Wikis. You could essentially use a different &quot;term&quot; (in this case &apos;wp&apos;) for every language in the wikis, etc. A few I have set up on my machine at home are &quot;imdb&quot;, &quot;yt&quot; (youtube), &quot;cc&quot;  (creative commons) &quot;w3&quot;, etc. You can make the search terms whatever you want, so that they&apos;re easy for you to remember. The only downfall I&apos;ve found from using this method is that if you&apos;re ever at a computer that isn&apos;t yours, you may find yourself &quot;quick searching&quot; and failing. All the time.&lt;br&gt;
Otherwise I hope it helps.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.98613-1435779</guid>
		<pubDate>Thu, 07 Aug 2008 16:06:04 -0800</pubDate>
		<dc:creator>disorder</dc:creator>
	</item><item>
		<title>By: qvtqht</title>
		<link>http://ask.metafilter.com/98613/Conditional-search-engine-selection-in-Firefox#1435843</link>	
		<description>Thanks for everyone&apos;s suggestions. I ended up going the &quot;intermediate search engine&quot; route, and I&apos;ve posted the result at &lt;a href=&quot;http://yavista.com/&quot;&gt;yavista.com&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
Here is the key code snippet:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;preg_match(&apos;/[\x{0400}-\x{045f}]/u&apos;, $q)&lt;/code&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.98613-1435843</guid>
		<pubDate>Thu, 07 Aug 2008 17:02:26 -0800</pubDate>
		<dc:creator>qvtqht</dc:creator>
	</item>
	</channel>
</rss>
