Tag: search engine

  • my!bangs, custom bangs in any browser with any search engine

    Early this year, I talked a bit about how I set up my browser to use custom !bangs. It all started with DuckDuckGo, many years of usage until it turned into muscle memory, and then I moved to my local setup.

    While it is easy to set up Firefox for this, I had to replicate it into multiple devices. And since I don’t always use the same browser, this got a bit more complicated.

    So, in my most recent weekend project, I decided to turn this into its dedicated web service, “my!bangs.”

    In addition to the default set of bangs, it allows the user to:

    • Define his own custom bangs.
    • Use the bangs with any browser.
    • Use the bangs with many search engines, even those that don’t support them.
    • Use the bangs in all your devices.

    The user only has to define it as the browser search engine, and he should be ready to go.

    You might wonder how it works. In fact, it is very simple: I just take the user’s search term, check if it has a bang, if it has, I redirect to that site, and if it doesn’t, I redirect to the user’s default search engine.

    A couple of lines of code, no logs, no records (apart from the custom bangs), no personal information. Any developer should be able to build something similar in a couple of hours (nowadays you don’t even need to be a developer).

    Feel free to test and let me know what you think.

    Fediverse Reactions
  • Using !bangs without the duck

    Since I started using DuckDuckGo in the early 2010s, one of my favorite features that made me stay around to this day was the !bangs.

    Essentially, if you want to search on a particular website, you don’t need to open that page before starting to search. With bangs, you just use the appropriate 2 or 3 character code in your search box (browser, home page, etc.), together with your search query, and you are promptly redirected to that website.

    Over time this becomes muscle memory and is pretty damn useful. Today there are more than 10,000 of them, and several other search engines copied the feature.

    Last year, I decided to switch my search provider to a European one. The only thing I missed during the transition was the bangs feature. Ecosia supports a few, but the offering is very limited, and the “codes” are not necessarily the same. Just to give you a glimpse, I’m missing !pypi, !deb, !ub,!gh and a few others.

    Another problem

    Although I am a heavy user of this feature, it always felt wasteful, given we are including an intermediary on a functionality that could easily be done locally.

    Browser --> *Search Engine* --> Website Search --> Results

    But you know, convenience and habits are mighty forces.

    Anyway, recently I found out that Firefox can do this for us, and even better, you can add “unlimited” custom bangs to your setup. Even after decades, Firefox keeps surprising me occasionally with features that were there right in front of my eyes, but I never noticed them.

    Setting up keyword searches in Firefox

    So allow me to explain. This wonderful browser empowers the user to create a similar experience to the bangs in two ways:

    Both work the same way; the only practical difference I’ve noticed so far is that the former gives you a nice visual indicator:

    And the second doesn’t:

    But on the other hand, the latter might be easier to export and move around.

    It doesn’t matter the approach that you pick; ultimately, it allows you to add any number of custom !bangs and removes the middlemen.

    Fediverse Reactions