News for hackers. Stuff that matters.
Re:Ask HN: Who's switched from Chrome to Firefox 57? by joshka on Wednesday November 15, 2017 @04:39PM (#15708081)
I switched about a week ago to FF57-beta (and now stable).

The biggest thing I miss that doesn't seem possible to automatically add search urls to the tab completion like chrome does. E.g. if I go to e.g some-service.example.com/search?q=foo, in future, Chrome allows me to search that service again by typing `some<TAB>my-search-terms`. No massive setup needed. Firefox seems to only allow these from the extensions on the dev store.

Re:Ask HN: Who's switched from Chrome to Firefox 57? by forapurpose on Wednesday November 15, 2017 @07:40PM (#15709372)
You could use bookmark keywords in Firefox, which provide a similar function:

1. Create a bookmark for some-service.example.com/search?q=foo

2. Open the properties for the bookmark. Replace "foo" with "%s" (the universal string for bookmark keyword variables). In the keyword field, type some letter or string you'll remember; I'll use "q". Close the properties dialog.

3. In the URL field, type "q my-search-terms".

(At least that worked in older versions of FF.) It requires more setup, but works permanently.

Re:Ask HN: Who's switched from Chrome to Firefox 57? by ospfer on Thursday November 16, 2017 @03:31PM (#15716323)
It appears that this process has been streamlined a bit. If you right-click in a search field on any site, the context menu has an option to "Add a keyword for this search." The new bookmark will then be created with the "%s" string in the appropriate position in the URL to make this work.

I've set it up for a number of sites since converting over to Firefox yesterday and have yet to find a site that this method doesn't work for.

Re:Ask HN: Who's switched from Chrome to Firefox 57? by joshka on Wednesday November 15, 2017 @09:38PM (#15709895)
Thanks
Re:Ask HN: Who's switched from Chrome to Firefox 57? by jraph on Wednesday November 15, 2017 @08:27PM (#15709611)
The keyword trick given by others is nice. If like me you are lazy, use the autocomplete feature.

First manually type the URL with the search terms and validate. Then for your second search type some unique part of the base URL and it appears because it is in your history, press down and modify the URL for your new search.

When you have done this several times, it seems firefox understands what you are trying to do and autocompletes the URL with the common parts.

Works Weil with wiktionary, wikipedia and WordReference for instance. Special mention to WordReference with its friendly URL scheme.

Works on firefox mobile too.

I canot remember how to validate autocompletion, my fingers do it themeselves. It must be something like Right or CTRL+Right. On mobile, it is a touch.

Re:Ask HN: Who's switched from Chrome to Firefox 57? by joshka on Wednesday November 15, 2017 @09:38PM (#15709893)
Tried this a few times, didn't seem to trigger. Thanks for the suggestion though. I have enough specific searches that switching to the keyword trick works well enough for me.
Re:Ask HN: Who's switched from Chrome to Firefox 57? by jraph on Friday November 17, 2017 @03:40PM (#15725779)
I wonder why it works for me and not for you. I guess I'll have to guess what in my usage pattern allows that :-)

Maybe I accessed the base URL without the query parameters.

Re:Ask HN: Who's switched from Chrome to Firefox 57? by rene_bg on Wednesday November 15, 2017 @06:06PM (#15708868)
Probably an alternative: you can configure a keyword to a stored search engine. Then you can search like `a lean startup`, where `a` is a keyword followed by a blank for amazon.com.

I found this to be very fast. It's also handy for translations, etc..

Re:Ask HN: Who's switched from Chrome to Firefox 57? by joshka on Wednesday November 15, 2017 @09:36PM (#15709886)
Thanks. This was exactly what I was looking for.