202

Is there a way I can add a custom search URL to the Firefox search bar? e.g. I'd like to provide a URL such as http://blahblah.com?search=%s, where Firefox replaces the %s with the content of the search box.

Both IE and Opera can do this, but I can't figure out how to set it up in Firefox.

Mateen Ulhaq
  • 3,452
  • 6
  • 35
  • 56
Andrew Grant
  • 2,424
  • 4
  • 18
  • 12
  • 2
    adding a bookmark pointing to its query (with a shortcut on it) was the easiest (eg: bookmark https://www.youtube.com/results?search_query= ) – JinSnow Dec 07 '15 at 07:41
  • 2
    See also: https://stackoverflow.com/q/9963256/712526 – jpaugh Jan 30 '18 at 15:49

19 Answers19

191

I'd like to provide a URL such as http://blahblah.com?search=%s where Firefox replaces the %s with the content of the search box.

You can do this with Firefox! Add a bookmark with that URL, where %s is the search query, then simply set a keyword for the bookmark. You can then search using <key> <search term> in the address bar. For example, the bookmark http://www.google.com/search?q=%s with keyword g means you can type g stack overflow in the address bar to search Google for "stack overflow".

Alternatively, go to the site you want to search, right click in the search box and click "Add a keyword for this search".

Michael
  • 999
  • 10
  • 16
DisgruntledGoat
  • 5,562
  • 9
  • 36
  • 45
  • I momentarily thought this doesn't work anymore, but then I noticed I had put the keyword in the "Tags" field. It's working now! – Ed Brannin Jun 26 '15 at 14:25
  • 10
    And what if I don't want a bookmark? What if I only want a search engine without bookmarking it? – Synetech Jul 13 '17 at 18:55
  • @Synetech why would you be opposed to bookmarks? – DisgruntledGoat Jul 15 '17 at 00:28
  • 8
    Best answer IMO, as it depends only on URLs, not website-specific search boxes. – ThomasH Mar 02 '18 at 10:25
  • 6
    Apparently putting the %s in the domain part of the URL is now deprecated/broken in FF67 and up. See https://bugzilla.mozilla.org/show_bug.cgi?id=1553377 – kmarsh Jul 09 '19 at 14:50
  • 5
    Although it's very counter-intuitive, it works (v69.0) – Seu Madruga Sep 30 '19 at 04:56
  • 1
    @Synetech Put it anywhere that is not "bookmarks toolbar" or a subfolder of that. I have never seen those bookmarks showing up anywhere except in menu→library→bookmarks→show all bookmarks, which is hidden enough in my opinion. I honestly have no idea what the difference between "bookmarks menu" and "other bookmarks" is. – Fabian Röling Feb 29 '20 at 00:31
  • @FabianRöling, the bookmark still exists. That might work "well enough", but (1) it's just sweeping it under the rug, and (2) shouldn't be necessary since there is a system that doesn't involve bookmarks. (I usually use the `Add custom search engine` add-on, but do have some bookmarks as well which I keep in a dedicated `Search Engines` folder. :-|) – Synetech Mar 01 '20 at 01:14
  • 5
    @qed: it's not awesome at all. This functionality should be exposed in Preferences -> Search, but it's not - https://bugzilla.mozilla.org/show_bug.cgi?id=1683969 – Dan Dascalescu Dec 22 '20 at 23:04
  • Doesn't work for Internet Archive's Wayback Machine (`wayback `) because the `:` is url-encoded. Otherwise, this method works great in my 2-year experience with it. – Michael Mar 16 '21 at 13:31
  • For German Users: keyword = Schlüsselwort, not Schlagwort (tag) – henning Aug 12 '22 at 09:31
  • Using Firefox `105.0.1` (64-bit) on Linux Mint 21. I can confirm this works! – Avneesh Mishra Oct 02 '22 at 10:31
133

The method to do this has changed - this answer is how to do it in 2018. Read further down to see more recent answers


Add keywords to the address bar:

For example, you can set up your browser to search for bread at stackoverflow.com by simply typing so bread into the omnibar.

Do this by right-clicking on the search bar on the website you commonly search. You can do this for the Search field on any website.

Right click on the search bar

Specifically:

  1. Go to the site you want to use to search
  2. Right-Click on the search box you fill out on their page (not Firefox's)
  3. Select "Add a keyword"
  4. Enter the keyword to use when you want to search in that site (eg: "so")
Greenonline
  • 2,235
  • 11
  • 24
  • 30
Javier
  • 3,761
  • 11
  • 44
  • 49
  • I wish chrome had this. – Jed Daniels Sep 13 '10 at 20:53
  • 7
    @Jed Daniels Chrome does have it in the form of custom search engines - Options -> Manage Search Engines – Dan H Jul 03 '11 at 07:12
  • @DanH, yes, but the chrome functionality is frustratingly lacking compared to the firefox ability. For example, it only works with search engines that have the search terms in the URL, and you have no control over which searches get added. – Jed Daniels Jul 03 '11 at 23:01
  • @Jed Daniels You can add searches manually, but I agree, in Chrome they aren't nearly as user friendly or featureful as in Firefox. Chrome's weak support was one of the reasons I created an alternative to built-in custom search engines - it's at http://shortmarks.com if you want to check it out. – Dan H Jul 04 '11 at 04:04
  • It is not possible to create search keywords on all websites (at least through the context menu), for instance www.gog.com. – user198350 Nov 09 '17 at 10:49
  • A downside to this method is that it is not possible to enter an empty keyword, therefore keyword search can't replace a search engine. – user198350 Nov 09 '17 at 10:50
  • 9
    Is there more updated info on this maybe? Just downloaded latest Firefox on macOS and this doesn't work. :-( – user24601 Mar 16 '18 at 13:39
  • 4
    This is not working now – Giulio Caccin Mar 31 '18 at 19:27
  • 1
    This still works, at least on some machines (Firefox 68, Windows 10) – Qw3ry Aug 27 '19 at 06:49
  • 1
    Working on Firefox 70 on MacOS. Remember to perform the search in the URL bar and *not* the search bar. – TenLeftFingers Nov 17 '19 at 01:11
  • 10
    Of course, this only works if there is a search-box available to click on, and worse, it doesn't let you customize the actual query. I can't believe Firefox still doesn't let you natively add customize search engines which Chrome has let you do since it first came out. :-| – Synetech Mar 01 '20 at 01:10
  • @Synetech I shared a solution to customize "One-Click Search Engines", a search box is not needed and it is possible to customize the query by adding additional HTTP GET parameters if needed: https://superuser.com/questions/7327/how-to-add-a-custom-search-engine-to-firefox/1566328#1566328 – baptx Jul 06 '20 at 14:51
  • @user598527 The empty `""` keyword *does* use your usual search engine, with or without the quotes. :-) – jpaugh Jul 06 '20 at 15:19
  • @baptx, that's great, but you shouldn't have to do so much manual work. For all of its (_many_) faults, at least Chrome let you easily add any kind of custom search engines with two clicks. :-| – Synetech Jul 07 '20 at 12:08
  • 3
    @baptx: What would be better is for Firefox to fix this - https://bugzilla.mozilla.org/show_bug.cgi?id=1683969 – Dan Dascalescu Dec 22 '20 at 23:04
37

The actual, no-bookmark solution for this task:

  1. Open a web page that has a search on it (e.g. SuperUser: superuser.com).

  2. In the address bar, expand the address bar by clicking on it.

  3. If the website supports searching, it will show up in the bottom area of the expanded address bar. Click the plus icon that is enclosed in a green circle. This adds the web page’s search to the search engines in your preferences.

Screenshot of the bottom of Firefox's expanded addressbar when on superuser.com

If you want to set a keyword (e.g. su) for this search, follow these steps:

  1. Open the search preferences (or type the following URI in your address bar: about:preferences#search)
  2. In the table under the column for “Keyword”, double-click in order to set your own keyword.
Tim
  • 103
  • 3
kleinfreund
  • 2,331
  • 4
  • 17
  • 20
  • 11
    It's sad that FF allows to do that only for web sites which explicitly provide this feature. – Monsignor Oct 07 '19 at 12:16
  • 12
    @Monsignor It's amazing how impossible it is it add a search engine in Firefox, compared to Chrome. I filed a bug against this at https://bugzilla.mozilla.org/show_bug.cgi?id=1683969 – Dan Dascalescu Dec 22 '20 at 23:02
  • Thank you so much for that reminder! I did this in the past, but browsers changed so much and it was said that using addons.mozilla.org would be the easiest way. But I end up with installing extensions, which is so painfully terrible getting served results that you know are bad. I did create xml or rdf or what ever files by hand 15 years ago, things were said to improve with every product generation. It's not the case, it's just driving "customers" to big corporations. :-( – LiveWireBT Mar 03 '21 at 22:43
  • @LiveWireBT I assume this is how they earn money - by making sure that the search-engines that don't pay to have their name in the list will be locked out for most Firefox users. – zombiesauce Oct 13 '21 at 09:53
  • Except, it doesn't work for Searx pages :/ – xeruf Dec 07 '21 at 00:05
  • How do we remove search engines added in this way? When I click on the search engine name that I added in this fashion in settings, the "Remove" button is disabled / grayed out. – Collin Barrett Jan 26 '23 at 11:50
  • @CollinBarrett That’s strange. The "Remove" button for a search engine added this way is working for me. I’ve just added the search engine for superuser.com and removed it again without issue. – kleinfreund Jan 26 '23 at 11:53
  • @kleinfreund ah, weird. maybe it's a bug in the version I'm using. I am on the latest Developer Edition for macOS which isn't guaranteed to be a stable channel. – Collin Barrett Jan 26 '23 at 15:10
  • In Firefox Android you can add a custom search engine with the %s thing again: https://www.findfind.it/n/de.deu?query=%s – erik May 27 '23 at 07:14
  • You add search a custom search engine for any website in Firefox, even if doesn't explicitly support this feature, but it's hidden behind a feature flag. See: https://superuser.com/a/1756774/481524 – mark.monteiro Jul 07 '23 at 14:21
33

Actual answer: @kleinfrund's answer is valid but Firefox doesn't always recognize sites that support search. If the website doesn't show up using his method continue reading.

  1. Open a new tab and type about:config in the address bar
  2. In the search box type: browser.urlbar.update2.engineAliasRefresh
  3. Click on the little plus symbol on the right. This is what it should look like after you pressed it. boolean true value after pressing plug sign
  4. Go to firefox Settings -> Search.
  5. In the Search shortcuts section you should notice a new "add" button. search add button
  6. Fill in the name, search engine url and a keyword(optional).
  7. Go to Default Search Engine and select the engine you just added.
  8. Enjoy.

(Please note that the engine url should contain a "%s" in the url. Firefox replaces the %s with your search terms. An example of this is https://www.google.com/search?q=%s)

PS: This does not work for search engines that use POST requests.

DevShot
  • 783
  • 1
  • 8
  • 13
29

The Add custom search engine extension lets you create a new search engine and customize it.

Synetech
  • 68,243
  • 36
  • 223
  • 356
spaetzel
  • 539
  • 1
  • 5
  • 11
  • I use this for my custom Google Search Engine. – Leigh Riffel Jul 17 '09 at 19:18
  • Nice. Needed to use this to search using Duckduckgo's POST mode. – user1338062 Jan 02 '17 at 05:13
  • 11
    You have to install an add-on to be able to add a custom search engine. It's little things like this that make it so hard to leave Chrome. :-( – Synetech Jul 13 '17 at 18:57
  • 5
    doesn't exist anymore. found another one: https://addons.mozilla.org/en-US/firefox/addon/add-custom-search-engine/ – skywinder Aug 22 '19 at 15:58
  • 2
    See this other answer for an extension that is active: https://superuser.com/questions/7327/how-to-add-a-custom-search-engine-to-firefox/1474187#1474187 – wisbucky Sep 24 '19 at 20:53
  • 3
    An extension should not be needed for such basic functionality. Chrome doesn't need one. If you think Firefox should step up, comment on this bug - https://bugzilla.mozilla.org/show_bug.cgi?id=1683969 – Dan Dascalescu Dec 22 '20 at 23:03
  • No need for any extension, this is supported in Firefox, but hidden behind a feature flag. See: https://superuser.com/a/1756774/481524 – mark.monteiro Jul 07 '23 at 14:18
19

Your best bet is to go to the Mycroft Project and search for an already made search engine plugin.

If you can't find one you can create your own on the submissions page. Full instructions are available.

geekley
  • 226
  • 2
  • 8
Dalvenjia
  • 191
  • 1
  • 2
  • Wow this saved the day for me! This answer should be much higher upvoted. If you want to modify one of your default search engines, you may need to change the plugin name slightly – Pluto Mar 16 '18 at 22:12
  • I was able to add duckduckgo POST to my firefox using the Mycroft search engine. – user674669 Jul 14 '18 at 06:08
  • I thought @Pluto was exaggerating ... I simply wanted `hub.docker.com` and it was there. I would add this answer should be a lot more specific. You click on the search to add and THEN click the URL bar to see the "add to search" at the bottom – Ari Aug 29 '22 at 02:11
9

Ready2Search is also an available free service that helps you do this for any site. It makes search plug-in for Internet Explorer, Firefox, Chrome, and Google Toolbar with great customization options (icons, query parameters, etc.).

Screenshot of Ready2Search

warmth
  • 1,026
  • 3
  • 13
  • 16
7

Alternative way for custom search

For an example Google Translate string: https://translate.google.com/m/translate#auto/en/%s so top answer here doesn't work. So I found a workaround with the plugin: add-custom-search-engine

And here we go:

enter image description here

Goes to :

enter image description here

skywinder
  • 313
  • 4
  • 14
  • 5
    This extension works perfectly to add a custom search engine. It should be a core part of Firefox, not an extension! – wisbucky Sep 24 '19 at 20:49
  • Thanks for this. This works great and is one of the more user-friendly solutions. I'd rather not use the bookmarks solution as I mirror my Firefox bookmarks from another browser. This solution ensures that my custom search engines don't get messed up when I do a mirror or syncing of bookmarks. – galacticninja Jan 15 '20 at 03:12
  • @galacticninja plus the "bookmark search engines" are just just straight up castrated. They show way fewer suggestions, and when I do wanna select a suggestion it just searches using the default engine. – gargoylebident Dec 29 '21 at 17:30
  • Does this approach URL encode the search term? – Sera H Aug 28 '22 at 15:38
  • Perfect. If you need two (or more) keywords in separate positions of a URL, make a webpage like `mysite.com/search.php` with the code below, then use `mysite.com/search.php?query=%s` in the plugin. ` "/>` Searching `this that` with the custom search will get you to `http://www.website.com?kwd1=this&kwd2=that`. – Jānis Lazovskis Nov 16 '22 at 22:07
6

New solution (since the previous one does not work anymore):

Now if you visit a website like Twitter, Firefox will let you add the Twitter search easily (https://support.mozilla.org/en-US/kb/add-or-remove-search-engine-firefox). But in case you want to add another website that is not supported, you will need a web server like Apache. Below would be the solution for Twitter in case they don't use the search engine file opensearch.xml anymore.

Create a file, for example twitter_search.htm (this HTML source code is used on twitter.com, I just removed the / before opensearch.xml):

<link rel="search" type="application/opensearchdescription+xml" href="opensearch.xml" title="Twitter">

Then create another file, with the same name used in the href parameter of the previous HTML code, for example opensearch.xml with this content (this XML source code is used at https://twitter.com/opensearch.xml):

<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
  <ShortName>Twitter</ShortName>
  <Description>Twitter Search</Description>
  <Url type="text/html" method="get" template="https://twitter.com/search?q={searchTerms}"/>
  <Image width="16" height="16">https://abs.twimg.com/favicons/favicon.ico</Image>
  <InputEncoding>UTF-8</InputEncoding>
  <moz:SearchForm>https://twitter.com/search-home</moz:SearchForm>
</OpenSearchDescription>

If needed, customize these files to replace the search URL, search form URL, name, description and icon. Put these 2 files in a folder of your web server and open the HTML file that you can find by visiting http://localhost in your web browser. You will be able to add your custom search engine to Firefox.

Previous solution (not working anymore):

Here is how I restored the Twitter search engine for Firefox, which seems to have been removed in Firefox 78 (you could create a search for other websites also based on this answer):

I tested with the Linux version of Firefox (Ubuntu package) but it should work with any operating system by creating the distribution folder / subfolders and search plugin file (https://wiki.mozilla.org/Mobile/Distribution_Files).

In my profile folder .mozilla/firefox/xxx.default/, there was a file search-metadata.json that contained a link to a non-existing file /usr/lib/firefox/distribution/searchplugins/locale/en-US/twitter.xml.

So I created this file with the following content (based on the documentation https://developer.mozilla.org/en-US/docs/Mozilla/Creating_MozSearch_plugins and search plugins already present https://packages.ubuntu.com/focal/amd64/firefox/filelist):

<?xml version="1.0" encoding="utf-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
  <ShortName>Twitter</ShortName>
  <Description>Twitter Search</Description>
  <InputEncoding>UTF-8</InputEncoding>
  <Image height="16" width="16">data:image/x-icon;base64,
AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAAAAAAAAAAAAAAAAA
AAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A
////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD/
//8A////AP///wD///8A////AP///wD///8A////AP///wz///8f////H////x////8Y////B///
/wD///8A////AP///wD///8A////AP///wD///8A////A////yj7789g9tV+ofbVfqH21X6h+N+e
ifz03lf///8o////A////wD///8A////AP///wD///8A////APr37g/PsGCftogQ7r2JAP/bnwD/
7qwA/+6sAP/urAD/9Mtftv357z////8D////AP///wD///8A////AP///wD///8A////AP///w/5
7c5a88VQwu6sAP/urAD/7qwA/+6sAP/xvDDb/fnvP////wD///8A////AP///wD///8A////AP//
/wDz5L5X7bgv2+6sAP/urAD/7qwA/+6sAP/urAD/7qwA//G8MNv///8Y////AP///wD///8A////
AP///wD///8M9NN+n+6wD/PurAD/7qwA/+6sAP/urAD/7qwA/+6sAP/urAD/9Nyegf///wD///8A
////AP///wD///8A+O3PVu6wD/PurAD/7qwA/+6sAP/urAD/7qwA/+6sAP/urAD/7qwA//G8MNv/
//8A////AP///wD///8A////ANasQMXurAD/7qwA/+qpAP/YnAD/1JkA/+6sAP/urAD/7qwA/+6s
AP/urAD/////FP///wD///8A////AP///wDz255+7qwA/9icAP+6ixDuz7Bgn9m8b5TurAD/7qwA
/+6sAP/urAD/7qwA//jkr3j///8M////AP///wD///8A47Y/ysmRAP/PsGCf+vfuD////wDw584w
46QA/+6sAP/urAD/7qwA/9+hAP/orA/z9OrPQv///wD///8A////AMypT7Hhz55g////AP///wD/
//8A////AMOaL9DMlAD/0JYA/8mRAP/FoEC/vpIf4OPQnmL///8A////AP///wD69+4P////AP//
/wD///8A////AP///wD69+4P3ceOcNi/foHhz55g////APr37g/69+4P////AP///wD///8A////
AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A
////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD/
//8A//8AAP//AAD//wAA8P8AAMA/AAD4HwAA8A8AAOAHAADgBwAAwAcAAOAHAADHAwAA3wMAAP/f
AAD//wAA//8AAA==</Image>
  <Url type="text/html" method="get" template="https://twitter.com/search?q={searchTerms}"/>
</OpenSearchDescription>

To get the Base64 of the latest Twitter icon that you can see above, I downloaded https://twitter.com/favicon.ico and used the Linux command base64 favicon.ico.

The following files were present in my profile folder but were not needed anymore so I removed them to avoid potential conflicts (you can backup files in case you want to reuse them): search-metadata.json, search.json, search.json.mozlz4.

The following answers did not work for me but contained useful information:

https://stackoverflow.com/questions/9963256/adding-a-custom-search-engine-to-firefox/10034461#10034461

https://stackoverflow.com/questions/9963256/adding-a-custom-search-engine-to-firefox/40651019#40651019

Michael
  • 999
  • 10
  • 16
baptx
  • 234
  • 2
  • 6
  • Speaking of search engines, there are many websites which will let the reader [store the icon as a data url](https://duckduckgo.com/?t=ffab&q=convert+image+to+data+url&ia=web) without knowing about base64. – jpaugh Jul 06 '20 at 15:12
  • 1
    @jpaugh indeed there are other ways to convert the image. The Linux base64 command has the advantage to not depend on an online third-party tool. There should be similar offline tools for other operating systems also. – baptx Jul 07 '20 at 20:37
  • Quite! JavaScript's [btoa](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/btoa) function might be the most available method. I'm imagining that your instructions are almost capable of being carried out by someone who knows nothing of XML or data urls, which is why I added an alternative. – jpaugh Jul 08 '20 at 20:00
  • I couldn't make this work. [This statement from a Firefox developer](https://bugzilla.mozilla.org/show_bug.cgi?id=1649971) says they've removed support for defining search engines with XML. Does this answer still work for any of you? – aude Jan 22 '21 at 01:03
  • 1
    @aude I noticed a few months ago that my custom Twitter search engine was gone, even if the file is still present. So it looks like it is not working anymore. I used the official web search instead, for example https://twitter.com/search for Twitter. When I have a moment, I will try to find another way to add a custom search engine to Firefox. – baptx Jan 24 '21 at 14:18
  • @aude I updated the answer with a new solution. – baptx Mar 30 '21 at 15:22
  • @baptx, nice, it's the same method [Mycroft Project](https://mycroftproject.com/) uses now. I personally ended up using the [WebExtension method](https://blog.mozilla.org/addons/2019/10/15/search-engine-add-ons-to-be-removed-from-addons-mozilla-org/), it works too. – aude Apr 01 '21 at 21:54
4

Update 2022: Now you can just right-click the URL on the address bar and click Add <name of the site>. It will show up in about:preferences > Search Shortcuts, from where you can assign a keyword.

enter image description here

Ron
  • 141
  • 2
3

You can also make complex searches with multiple parameters, and here’s how.

For instance, imagine you have a two field search like this fictitious example:

http:// mymusic.com/search?artist=david+bowie&album=ziggy+stardust

You can make a new mm search like:

javascript:q="%s";if(q.indexOf(",")>0){q=q.split(",");location.href="http://mymusic.com/search?artist="+q[0]+"&album="+q[1]}

(in Firefox it would be a bookmark with keyword mm)

Then you can directly search for: mm david bowie,ziggy startdust (directly in the address bar)

I choose “,” as the separator, but it’s just an example. It’s perfectible, but you get the idea, and anything is possible.

※ Notice that some browsers (including Opera 12) may not execute your JavaScript in a new tab with no preloaded page.

jesus2099
  • 31
  • 5
2

For ESR, you can add (and set default) a new search engine using policies.json. E.g. use the following:

{
  "policies": {
    "SearchEngines": {
      "Default": "DuckDuckGo",
      "Add": [
        {
          "Name": "DuckDuckGo",
          "URLTemplate": "https://duckduckgo.com/?q={searchTerms}&t=h_&kp=1&ia=web",
          "Method": "GET",
          "IconURL": "https://duckduckgo.com/favicon.ico",
          "Alias": "Ducky",
          "Description": "Duck Duck Goose"
        }
      ]
    }
  }
}

The location of the policies file is described e.g. in this post.

serv-inc
  • 518
  • 1
  • 4
  • 18
1

As of FF100, for the website searches that cannot be added with Green plus, a solution is to use the mozlz4-edit plugin.

FF stores all the search engines within a file search.json.mozlz4 that cannot be edited in a regular text editor.

With that plugin, one can directly (but guided) add search engines.

E.g. Adding "AllMusic" as search engine: enter image description here

If you want a icon, you can dowload an icon from the website and add it too.

Rem: you have first to locate that search.json.mozlz4 file. On Win10 it is in %appdata%\Mozilla\Firefox\Profiles\xx_profile_id_xx.default-release\

lvr123
  • 211
  • 1
  • 3
  • 9
0

A bit late to the party, but for those finding this thread now you can click the search icon in the search bar when on the site you want if it has a green + icon on it.

0

To mimic chrome's "site search" feature: https://www.reddit.com/r/firefox/comments/ob8ffw/question_custom_url_for_duckduckgo_search_when/h3mcfh7/

worked exactly as expected and super easy to config

Jason
  • 1
  • 1
    Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community May 18 '22 at 16:29
0

[As of August 2022]

If you happen to have Duck Duck Go set as your search engine, !Bangs are another option.

Drazisil
  • 227
  • 2
  • 10
0

I've created an online web app that lets you add custom search engines to Firefox, simply enter the info then click add and corner click in the URL bar:

https://svelte.dev/repl/8b4c3b768f4041888bd64cbaffbb8135?version=4.1.1

Explosion
  • 121
  • 1
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/late-answers/1207031) – Destroy666 Jul 27 '23 at 20:19
0

It's as simple as right clicking in a search field.

The other advantage is that this process creates a bookmark for you. If you use something like XMarks to synchronize your bookmarks, you can access the same search functionality across all synchronised computers.

Peter Mortensen
  • 12,090
  • 23
  • 70
  • 90
brack
  • 262
  • 1
  • 6
-2

I believe he's referring to keyword.URL in Firefox's about:config page.

In Firefox's address bar type about:config, then search for keyword.URL and replace its contents with "https://blahblah.com/search?q=", for example.

Sam P
  • 1