Conditional search engine selection in Firefox?
August 7, 2008 1:35 PM
Subscribe
Conditional search engine selection in Firefox search box based on contents (in particular, character set) of the search query?
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.
I like using the search box in Firefox.
I like Google for most searches, but I want to use Yandex by default for any search that contains Cyrillic (Russian) characters.
For example, if I'm searching for "keys wallet phone", Firefox should use Google, but if I'm searching for "ключи бумажник телефон", 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.)
How do I make Firefox switch search engines depending on the charset of the text I enter?
posted by qvtqht to computers & internet (5 comments total)
Here's an example you could modify. Maybe someone else could help with some code for detecting Cyrillic characters...
posted by le morte de bea arthur at 2:12 PM on August 7, 2008