Closed Bug 1106626 Opened 10 years ago Closed 4 years ago

Ability to add custom search engines by URL (non open-search and non-amo engines)

Categories

(Firefox :: Search, enhancement, P3)

enhancement
Points:
3

Tracking

()

RESOLVED FIXED
82 Branch
Iteration:
82.1 - Aug 24 - Sep 6
Tracking Status
firefox82 --- fixed

People

(Reporter: ntim, Assigned: daleharvey)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxsearch])

Attachments

(2 files)

It'd be nice to be able to add engines from their url, for engines that don't use opensearch, or that aren't available on amo. Chrome allows this in their search engine manager.
Bug 261124 - Textbox context menu should have "Add to Search Bar..."
There is a (oldish) patch in that bug.

Also see: https://addons.mozilla.org/addon/add-to-search-bar/
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Bug 261124 will allow adding search engines from textboxes, but not from URLs. About a third of my bookmark keywords have no corresponding <form>:

* Twitter search [all, not just 'top tweets']
* Twitter username
* Subreddit name
* Unicode codepoint
* DXR search with 'path:webidl'

I've also had to edit many of bookmarks manually, when the site moves from http to https or changes in a way that breaks my searches.

In bug 648398 comment 5, Philipp Sackl suggests this should be an addon, rather than part of the built-in UI for managing search engines. So maybe this is WONTFIX, but it's not quite a dup of bug 261124.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Summary: Ability to add custom search engines (non open-search and non-amo engines) → Ability to add custom search engines by URL (non open-search and non-amo engines)
Blocks: 648398
Priority: -- → P3
Whiteboard: [fxsearch]
Rank: 35
We should implement this by showing something similar to our RSS feed dialog when you navigate directly to a search XML.

IT should show information about the engine and have a button to add it.
(In reply to Mike Kaply [:mkaply] from comment #3)
> [...]
> when you navigate directly to a search XML.

Which is a nice idea as a separate bug, but not really applicable here, because here you won't necessarily even have a search XML in the first place.

What's needed is something (a separate dialogue, or directly within the search engine list, or whatever) that lets you enter a title, a query URL with %s/%S, optionally a keyword and for bonus points even an icon and then creates a custom search engine based on that.
> What's needed is something (a separate dialogue, or directly within the search engine list, or whatever) that lets you enter a title, a query URL with %s/%S, optionally a keyword and for bonus points even an icon and then creates a custom search engine based on that.

We kind of already have that.

Any entry field that does a search can be added a search engine. Just long click on the entry field and you'll get an "add search engine" option.
Which doesn't work for things that aren't available via search entry fields, though, since that dialogue doesn't offer any way of editing the resulting search URL. E.g. I have a search keyword for Bugzilla bugs that goes directly via show_bug.cgi=%s instead of buglist.cgi?quicksearch=%s and more importantly, some custom Wikipedia searches that prepend/append some words to my search query to save on typing when looking at certain types of articles that always start/end with the same words, i.e. similar to the things mentioned in comment 2.

At the moment this doesn't matter since the search created by that dialogue ends up as a keyword search "bookmark" anyway which I can edit manually, but if bug 648398 goes ahead that possibility would no longer be there, as the search engine manager currently doesn't offer any way of editing a search plugin's internal data, i.e. most importantly the query URL.
when keywords will go away there will be a way to create and edit custom search engines.
Is this planned in the near future? Seem like a simple addition, so why not look into adding it?

I've had to mess with HTML on sites with the dev tools to add fake <form> tags in order to get the "Add to search bar" menu to popup.
Blocks: 1503551

This is Chrome's add search engine prompt that only requires the user to type in a query string and creates a custom search engine. Other Chromium based browsers also have the same prompt.

Severity: normal → N/A
Status: REOPENED → NEW
Type: defect → enhancement
Rank: 35
Blocks: search-alias
Blocks: 1653261
No longer blocks: 648398, search-alias
Assignee: nobody → dharvey
Points: --- → 3
Iteration: --- → 81.2 - Aug 10 - Aug 23
Iteration: 81.2 - Aug 10 - Aug 23 → 82.1 - Aug 24 - Sep 6
Pushed by dharvey@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/aa3aa3881ba4
Add ability for the user to define custom search engines r=preferences-reviewers,fluent-reviewers,jaws,Standard8
Status: NEW → RESOLVED
Closed: 10 years ago4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
Blocks: 1661598
Blocks: 1661654
Blocks: 1666600
Blocks: 1666601
Depends on: 1669756
No longer depends on: 1669756
No longer blocks: 1662194

Can someone please explain how I can add a custom search engine to Firefox? I filed Bug 1336604, which said it is a duplicate of this bug here (1106626). This bug is now marked as fixed yet I can find no way to establish a custom URL search engine in Firefox.

I would like to set a URL Parameter (for example) "https://duckduckgo.com/?kn=1&q=%s" as my default search engine in firefox. I can do this easily on Google Chrome (hence why I use Google Chrome instead of Firefox).

How do I set this as my search engine on Firefox? This used to be easy to do in historic Firefox but you took the ability away, which is why I left Firefox. Has this ability been restored? If so, why can I not figure out how to create a custom engine?

(In reply to Greg from comment #17)

Can someone please explain how I can add a custom search engine to Firefox? I filed Bug 1336604, which said it is a duplicate of this bug here (1106626). This bug is now marked as fixed yet I can find no way to establish a custom URL search engine in Firefox.

This functionality is not enabled by default as it is not ready yet. This was a project that was started a while ago but was delayed due to other priorities, we are hoping to get back to it soon, but not ETA yet.

I would like to set a URL Parameter (for example) "https://duckduckgo.com/?kn=1&q=%s" as my default search engine in firefox.

You can use OpenSearch based engines as an option. There may be one already defined that does what you want on https://mycroftproject.com/search-engines.html?name=duckduckgo

How do I set this as my search engine on Firefox? This used to be easy to do in historic Firefox but you took the ability away, which is why I left Firefox.

There has never been an ability to create a custom engine directly in Firefox. Other methods may have existed but they would not have been supported.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: