News for hackers. Stuff that matters.
Re:Firefox 64 Released by kentosi on Tuesday December 11, 2018 @03:42PM (#18658660)
Good work guys.

For those using Firefox, I have one question. Is there any way to replicate Chrome's tab-to-search feature? It's literally the ONLY reason I'm still on Chrome.

Let me explain by showing how I would search for "apples" in youtube across both browsers.

Firefox:

1 - Ctrl+L (go to location bar) 2 - Type "you", press "down" to select youtube from history. 3 - Wait for site to load...... 4 - Click on search box 5 - Type in "apples" 6 - Press enter

Chrome:

1 - Ctrl+L (go to location bar) 2 - Type "you", and if youtube is first item in history, 3 - Press "tab" 4 - Type in "apples" 5 - Press enter.

Youtube opens up with my searched item. Nice and easy with far fewer key presses no waiting nor mouse clicking.

Works for youtube, hacker news, wiktionary, google images, and a heap of other sites I use daily.

Re:Firefox 64 Released by BoumTAC on Tuesday December 11, 2018 @03:53PM (#18658743)
Yes but it isn't as good as google.

Go to youtube.

Right click on the youtube search bar.

add a keyword for this search.

choose your keyword (ex: yt)

now you can type in the omnibar "yt my search" and it will do directly the search. It's not as good as chrome solution but it's the only thing for now.

Re:Firefox 64 Released by PuffinBlue on Tuesday December 11, 2018 @06:49PM (#18660103)
Wow, that's absolutely awesome. It respects container tabs too (search opens in YouTube container tab if launched from any other container).

This'll actually make a measurable difference to me on a daily basis with how much I search youtube for study at the moment. Thanks.

Re:Firefox 64 Released by ziftface on Tuesday December 11, 2018 @04:45PM (#18659220)
Wow I actually like this better. Didn't know about these features in either browser though.
Re:Firefox 64 Released by JensRex on Tuesday December 11, 2018 @09:16PM (#18660844)
I remember first using this feature in IE6 back when that browser was new, and I've used it since then. I have "i" for IMDb search, "w" for WikiPedia. "g" goes to DuckDuckGo now after Google became malicious and evil, because of years of muscle memory.
Re:Firefox 64 Released by ainar-g on Tuesday December 11, 2018 @05:37PM (#18659652)
You sir/mam have just revolutionised by browsing experience. I now love FF even more.
Re:Firefox 64 Released by cpeterso on Tuesday December 11, 2018 @06:54PM (#18660142)
Here is more detail about creating custom keyword searches. For example, I have a Bugzilla keyword search so the keyword "bug" will expand the URL "https://bugzilla.mozilla.org/show_bug.cgi?id=%s". Thus, entering "bug 1000000" in the address bar will expand to "https://bugzilla.mozilla.org/show_bug.cgi?id=1000000".

https://support.mozilla.org/en-US/kb/how-search-from-address...

Re:Firefox 64 Released by throwaway453405 on Tuesday December 11, 2018 @03:56PM (#18658770)
Create a Search Bookmark

1. Got to the Bookmark Library and Right Click > New Bookmark and fill it as follows: Name: YouTube Search Location: https://www.youtube.com/results?search_query=%s Keyword: you

2. Click Add

3. Now in the Location bar type "you apples" and apples will be searched on YouTube.

I use this for a lot of sites with search inputs. I often do searches using ddg of sites I visit with forums or other buried content. Any search that has a URL that you can input a set of terms into can be used. Just use %s in the location for where the terms are in the URL.

Example using DDG to search CarForum.com:https://duckduckgo.com/?q=site%3CarForum.com+%s&t=ffab&ia=we...

This does the query "site:CarForum.com %s" on DDG.

Re:Firefox 64 Released by aembleton on Tuesday December 11, 2018 @04:05PM (#18658873)
I even use it to quickly reach Jira tickets that I know the number of. Just modify the URL with a Bookmark.
Re:Firefox 64 Released by detaro on Tuesday December 11, 2018 @03:47PM (#18658699)
I think in Firefox the closest is to manually add them as search providers with a short code :/ Right-click in e.g. the search field on YouTube, there's an option to add it with a key word, e.g. "yt". You then can do "yt apples" in the address bar.

Maybe there's an extension that does the Chrome thing, but I searched in the past and didn't find one.

Re:Firefox 64 Released by andersha on Tuesday December 11, 2018 @03:46PM (#18658689)
Hi,

I am using firefox with duckduckgo.

Firefox + DDG = Ctrl+L - Type "!yt apples", press enter

https://duckduckgo.com/bang

Re:Firefox 64 Released by Perceptes on Tuesday December 11, 2018 @06:03PM (#18659820)
This is so cool! DDG is my default search engine but I only knew about !g for Google.
Re:Firefox 64 Released by camjohnson26 on Tuesday December 11, 2018 @05:25PM (#18659567)
!hn for hacker news, !gi for google images and !wt for wiktionary.
Re:Firefox 64 Released by kakaorka on Tuesday December 11, 2018 @06:10PM (#18659868)
Thanks for these. I always want to search in hn specifically. This will be so helpful.
Re:Firefox 64 Released by jgruen on Tuesday December 11, 2018 @10:49PM (#18661244)
There are a ton of these in DDG: https://duckduckgo.com/bang
Re:Firefox 64 Released by tripzilch on Tuesday December 11, 2018 @05:39PM (#18659663)
yeah, that's what I love most about DDG for my default search engine, it's just like having a zillion custom keyword searches preconfigured.
Re:Firefox 64 Released by meruru on Tuesday December 11, 2018 @06:01PM (#18659804)
It would be cool if Firefox itself had those keyword searches preconfigured. That way you wouldn't have to send all your queries through DDG.
Re:Firefox 64 Released by sorenjan on Tuesday December 11, 2018 @06:46PM (#18660088)
Firefox have a search bar for this purpose. Isn't Chrome sending everything you type in the omnibar, including urls and search queries, to Google?

To search for "apples" on Youtube, press Ctrl-E to focus on the search bar, type "apples", click on the Youtube icon or press Ctrl-down/up arrow to choose Youtube, then enter.

https://addons.mozilla.org/en-US/firefox/search/?type=search

Re:Firefox 64 Released by konart on Wednesday December 12, 2018 @08:17AM (#18663582)
Most people don't use search bar these days. Why have two fields when you can use one?

Also - too many actions in your example vs. very simple and effective tab-to-search or keyword search available in Firefox.

Re:Firefox 64 Released by AbuAssar on Tuesday December 11, 2018 @03:47PM (#18658701)
even simpler in firefox:

[1] open youtube.com

[2] right click on the search bar and select "Add a keyword for this search"

[3] in the dialog enter the character "y" as the keyword.

[4] done!

now to search youtube from the address bar just enter y followed by the search terms!

Re:Firefox 64 Released by detaro on Tuesday December 11, 2018 @03:49PM (#18658714)
I'd argue that manually adding each site individually is not "even simpler".
Re:Firefox 64 Released by oblio on Tuesday December 11, 2018 @05:03PM (#18659385)
Does Chrome do it for random site searches? Not for Google properties.
Re:Firefox 64 Released by 8_hours_ago on Tuesday December 11, 2018 @06:50PM (#18660116)
Chrome automatically adds sites if they have an OpenSearch description document: https://www.chromium.org/tab-to-search

Firefox requires the user to add the search engine manually: https://support.mozilla.org/en-US/kb/add-or-remove-search-en...

Re:Firefox 64 Released by owaislone on Wednesday December 12, 2018 @01:50AM (#18661865)
I use DuckDuckGo as my default search engine. Doing this is as simple as:

1 - Ctrl+L (go to location bar)

2 - Type "yt! apples"

3 - There is not step 3.

Re:Firefox 64 Released by erfgh on Wednesday December 12, 2018 @03:18AM (#18662237)
This needs to go to DDG first, which makes it slow.
Re:Firefox 64 Released by chocolatkey on Tuesday December 11, 2018 @03:48PM (#18658704)
I love that feature too. It uses the opensearch spec, and shouldn't be hard to implement
Re:Firefox 64 Released by ljoshua on Tuesday December 11, 2018 @03:59PM (#18658805)
Ah wow, I had always wondered what magic was behind this feature! Had no idea there was a spec about it, that makes tons of sense.
Re:Firefox 64 Released by 8_hours_ago on Tuesday December 11, 2018 @06:51PM (#18660123)
Here's a description of the spec, if you are interested: https://developer.mozilla.org/en-US/docs/Web/OpenSearch

Firefox uses it to populate the search bar drop down menu with the available search engines for a site, but it does not add them automatically like Chrome does.

Re:Firefox 64 Released by moosingin3space on Tuesday December 11, 2018 @03:47PM (#18658693)
It should be possible to build this with an extension, but I haven't tried.

That being said, there are a few alternatives. Firefox Top Sites supports search engines, as described in https://blog.mozilla.org/firefox/save-a-search-step/. Additionally, if you use DuckDuckGo as your default, you can use bang patterns, which I prefer as they are curated.

Re:Firefox 64 Released by jesse_m on Tuesday December 11, 2018 @03:44PM (#18658676)
If you use duck duck go as your search engine I think you can use their bang search functionality
Re:Firefox 64 Released by ender341341 on Tuesday December 11, 2018 @03:48PM (#18658713)
You have to bookmark the search URL replacing the query with %s then set a keyword on the bookmark

location: https://www.google.com/search?q=%s keyword: g

example search 'g test query'

Re:Firefox 64 Released by kentosi on Tuesday December 11, 2018 @03:52PM (#18658733)
See, this means that I need to do this for every site I want to search in advance. With Chrome I literally just have to visit the site. No creating bookmarks, nothing.
Re:Firefox 64 Released by AbuAssar on Wednesday December 12, 2018 @02:48AM (#18662113)
you can add it manually by clicking on the page options button (the three dots in the address bar)

then choose "Add Search Engine"