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

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.