Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Banger–A Firefox extension to extend DDG's bangs (github.com/whistlingzephyr)
5 points by WhistlingZephyr on Jan 2, 2023 | hide | past | favorite | 4 comments
Hello HN! I made this Firefox extension to extend upon DuckDuckGo's idea of bangs (check https://duckduckgo.com/bangs if you aren't familiar with them) and also allow the use of any search engine with them.

I found DuckDuckGo's bangs fascinating, but was disappointed by how little search engines inherit that feature. And on top of it, DuckDuckGo has the "!" bang that jumps to the first search result but other search engines offering bangs like Brave Search, searx, You.com don't seem to have that. I also thought that the "!" bang could be extended with the ability to jump to the first search result of a specific site, so I added the "!!" bangs in my extension that allow you to do just that (e.g. typing "!!mdn flatMap" will bring up the MDN page for flatMap). I also added a bunch of extra features like the ability to add custom bangs, ability to search in a search engine with the "site:" parameter using "!@r" (r for Reddit), or "!ddg@r" (specify any other bang as the search engine to use), and the ability to chain multiple bangs together with ";" to open them up in different tabs; it also allows you to use multiple "site:" parameters combined with the OR ("|") operator with "," (e.g. "!@r,yt"). Feel free to mix and match! Also, for those who use it, it supports sync. There's also an option to import/export any settings including custom bangs. I've also added custom handling to fix a few bangs which are usually broken such as "!archived" and "!imgops" (They require unescaped URL as part of the path. However, DDG and other search engines always escape the URL. Banger only escapes the URL if it's part of an URL parameter).

I've been working on it for around 2 months now, and I'm pretty satisfied with the result so far. Let me know if you have any comments/feature suggestions/bug reports/anything else!



This is phenomenal! Sounds like you evolved/elevated the feature, and I'm here for it. Thank you.


that is super awesome that someone is focussing on firefox rather than the now convention of chrome only "because that is what everyone uses anyway". thank you


I'm happy you like it! I've been primarily using Firefox for years now mainly due to multi-account containers being only supported there as far as I'm aware (also I prefer open-source programs). I'm hoping Manifest v3 will gain Firefox more users, since it heavily limits adblockers on Chromium browsers.


yes. i have been building a browser extension myself and i made a point to develop a full functioning firefox version because i dont want to disadvantage those users.

it is still in private beta but i am thinking of giving incentive to users to prefer to use firefox version. my 2 cents in helping the browser wars but yeah




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: