Permalink
Browse files

Added English Wiktionary as a search engine

  • Loading branch information...
1 parent 5a0c93f commit 4491effad9502517ebe659c7122c4ee78e0bacdf docgnome committed with retroj Jan 11, 2010
Showing with 16 additions and 0 deletions.
  1. +1 −0 modules/search-engine.js
  2. +15 −0 search-engines/wiktionary.xml
View
@@ -343,6 +343,7 @@ function define_search_engine_webjump(search_engine_name, key) {
define_search_engine_webjump("google.xml", "google");
define_search_engine_webjump("mozilla-bugzilla.xml", "bugzilla");
define_search_engine_webjump("wikipedia.xml", "wikipedia");
+define_search_engine_webjump("wiktionary.xml", "wiktionary");
define_search_engine_webjump("answers.xml", "answers");
define_search_engine_webjump("yahoo.xml", "yahoo");
define_search_engine_webjump("creativecommons.xml", "creativecommons");
@@ -0,0 +1,15 @@
+<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
+<ShortName>Wiktionary (en)</ShortName>
+<Description>Wiktionary, a wiki-based Open Content dictionary</Description>
+<InputEncoding>UTF-8</InputEncoding>
+<Image width="16" height="16">data:image/x-icon;base64,AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAEAgQAhIOEAMjHyABIR0gA6ejpAGlqaQCpqKkAKCgoAPz9%2FAAZGBkAmJiYANjZ2ABXWFcAent6ALm6uQA8OjwAiIiIiIiIiIiIiI4oiL6IiIiIgzuIV4iIiIhndo53KIiIiB%2FWvXoYiIiIfEZfWBSIiIEGi%2FfoqoiIgzuL84i9iIjpGIoMiEHoiMkos3FojmiLlUipYliEWIF%2BiDe0GoRa7D6GPbjcu1yIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</Image>
+<Url type="application/x-suggestions+json" method="GET" template="http://en.wiktionary.org/w/api.php">
+ <Param name="action" value="opensearch"/>
+ <Param name="search" value="{searchTerms}"/>
+</Url>
+<Url type="text/html" method="GET" template="http://en.wiktionary.org/wiki/Special:Search">
+ <Param name="search" value="{searchTerms}"/>
+ <Param name="sourceid" value="Mozilla-search"/>
+</Url>
+<SearchForm>http://en.wiktionary.org/wiki/Special:Search</SearchForm>
+</SearchPlugin>

0 comments on commit 4491eff

Please sign in to comment.