{"id":2328,"date":"2013-10-30T11:32:29","date_gmt":"2013-10-30T02:32:29","guid":{"rendered":"https:\/\/regex.info\/blog\/2013-10-30\/2328"},"modified":"2013-10-30T11:32:29","modified_gmt":"2013-10-30T02:32:29","slug":"setting-a-custom-search-engine-in-firefox","status":"publish","type":"post","link":"https:\/\/regex.info\/blog\/2013-10-30\/2328","title":{"rendered":"Setting a Custom Search Engine in Firefox"},"content":{"rendered":"\n\n<p>Recent versions of Firefox inexplicably removed the ability to set <span class='nobr'>a\ncustom<\/span> search engine, which one used to be able to do easily via the\n<b>keyword.URL<\/b> configuration. However, you can accomplish pretty much\nthe same thing by installing <span class='nobr'>a new<\/span> search-engine profile that you craft yourself in an XML file.<\/p>\n\n<style type=\"text\/css\">\nspan.x2328 { color:#F88 }\n<\/style>\n\n<p>Here's a sample profile file, for <span class='nobr'>a custom<\/span> Google search...<\/p>\n\n<pre style='margin-left:2em; color:#888'>\n&lt;SearchPlugin xmlns=\"http:\/\/www.mozilla.org\/2006\/browser\/search\/\"\n              xmlns:os=\"http:\/\/a9.com\/-\/spec\/opensearch\/1.1\/\"&gt;\n&lt;os:ShortName&gt;<span class='x2328'>Google Today<\/span>&lt;\/os:ShortName&gt;\n&lt;os:Description&gt;<span class='x2328'>Search Google for items added\/updated in the last 24 hours<\/span>&lt;\/os:Description&gt;\n&lt;os:InputEncoding&gt;UTF-8&lt;\/os:InputEncoding&gt;\n&lt;os:Url type=\"text\/html\" method=\"GET\" template=\"<span class='x2328'>https:\/\/www.google.com\/search<\/span>\"&gt;\n  &lt;os:Param name=\"<span class='x2328'>q<\/span>\" value=\"<b>{searchTerms<\/b>}\"\/&gt;\n  &lt;os:Param name=\"<span class='x2328'>tbs<\/span>\" value=\"<span class='x2328'>qdr:d<\/span>\"\/&gt;\n&lt;\/os:Url&gt;\n&lt;\/SearchPlugin&gt;\n<\/pre>\n\n<p>You'd copy this to an <b>*.xml<\/b> file and update the highlighted areas\nfor your needs, adding\/removing <span class='QO'>&#8220;<\/span>Param<span\nclass='QC'>&#82 21;<\/span> tags as appropriate for your search. (The\n<span class='QO'>&#8220;<\/span>tbs<span class='QC'>&#8221;<\/span> parameter in the example is the one that limits results to\nthose updated in the last day.)<\/p>\n\n<p>Place the file in the <span class='QO'>&#8220;<\/span>searchplugins<span\nclass='QC'>&#8221;<\/span> folder of the Firefox profile, restart Firefox,\nand you can then select it as the search target. <span class='nobr'>On my\nOSX<\/span> system, this sample might be named<\/p>\n\n<pre style='margin-left:2em'>~\/Library\/Application Support\/Firefox\/Profiles\/<i>profilefolder<\/i>\/searchplugins\/googletoday.xml<\/pre>\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>Recent versions of Firefox inexplicably removed the ability to set a custom search engine, which one used to be able to do easily via the <b>keyword.URL<\/b> configuration. However, you can accomplish pretty much the same thing by installing a new search-engine profile that you craft yourself in an XML file.<\/p> <p>Here's a sample profile file, for a custom Google search...<\/p> <p>You'd copy this to an <b>*.xml<\/b> file and update the highlighted areas for your needs, adding\/removing \"Param&#82 21; tags as appropriate for your search. (The \"tbs\" parameter in the example is the one that limits results to those updated in [...]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/posts\/2328"}],"collection":[{"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/comments?post=2328"}],"version-history":[{"count":0,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/posts\/2328\/revisions"}],"wp:attachment":[{"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/media?parent=2328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/categories?post=2328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/tags?post=2328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}