Live data from Hacker News

All DuckDuckGo bang operators on one page

mosermichael.github.io

71–80 of 140 posts

Re: All DuckDuckGo bang operators on one page

#71
post #48

For ages I've wanted DuckDuckGo to add a "!copy" bang, which acts like the "!" operator (automatically navigates to the first search result) but instead of going to the page, it copies the link to my clipboard. There are plenty of projects I'm familiar with but don't know the canonical URL off the top of my head - when I link someone else to them I have to look up their homepage. This would make this process much fas…

I built a simple node JS server to use as my default search engine. What you describe could be a 2-line change to my code. My motivation was using Google "I'm Feeling Lucky" without JS. The node app detects the "!lucky" bang, downloads the search results, finds the first link, and redirects to it. Let me know if it interests you.

Hi jchook, i would love to play with it and might try to port it to cloudflare worker for personal use :) I was thinking of exact same thing before bed last night when someone at work commented on how much revenue from Ad Google loses from "Im feeling lucky" feature which bypass all Ads

Re: All DuckDuckGo bang operators on one page

#72
post #56

!02faq = BMW 2002 FAQ first thing that caught my eye how can we have a such a specific car FAQ for vintage BMW and not have a corresponding bang for https://www.tdiclub.com/ - the bible in diesel VW.

Most bangs are user submitted. Feel free to make one yourself:

https://duckduckgo.com/newbang

Re: All DuckDuckGo bang operators on one page

#75

For ages I've wanted DuckDuckGo to add a "!copy" bang, which acts like the "!" operator (automatically navigates to the first search result) but instead of going to the page, it copies the link to my clipboard. There are plenty of projects I'm familiar with but don't know the canonical URL off the top of my head - when I link someone else to them I have to look up their homepage. This would make this process much fas…

I just realized I need this for myself and quickly cooked up a solution using tridactyl, ddgr, and jq that fits perfectly in my workflow. Everything is reduced to just typing `:cp ` without moving to a new tab or losing flow. The entire function is basically this (requires Tridactyl native messenger). command cp js -p tri.native.run('cd ~ && ddgr --json -n 1 ' +JS_ARG + '| jq -r ".[0].url" | xclip -sel clip') [1] htt…

Is this dangerous if the link is able to inject Bash commands as the value of JS_ARG? If so, that's RCE and that's bad.

Is it possible to do this using the HTML5 clipboard functions instead?

Re: All DuckDuckGo bang operators on one page

#76
post #67

Earlier quoted context omitted.

The ones that I find myself using a lot !gm - google maps !sr/!sro - type in subreddit (add o for old reddit) !so - stack overflow (i usually use it with [tag])

> !gm - google maps !m will save you over 33% of typing... :-)

Well now I feel like an idiot. Thanks!

Re: All DuckDuckGo bang operators on one page

#77

For ages I've wanted DuckDuckGo to add a "!copy" bang, which acts like the "!" operator (automatically navigates to the first search result) but instead of going to the page, it copies the link to my clipboard. There are plenty of projects I'm familiar with but don't know the canonical URL off the top of my head - when I link someone else to them I have to look up their homepage. This would make this process much fas…

I just realized I need this for myself and quickly cooked up a solution using tridactyl, ddgr, and jq that fits perfectly in my workflow. Everything is reduced to just typing `:cp ` without moving to a new tab or losing flow. The entire function is basically this (requires Tridactyl native messenger). command cp js -p tri.native.run('cd ~ && ddgr --json -n 1 ' +JS_ARG + '| jq -r ".[0].url" | xclip -sel clip') [1] htt…

Didn't know about Tridactyl, thanks! This is a really cool extension!

Re: All DuckDuckGo bang operators on one page

#79
These bangs have honestly changed the way I browse. With Ctrl+T, Ctrl+L, Ctrl+W, and tab-switching, the browser feels like vim in a small way. Without my mouse, I can open a new tab or switch to a new tab and immediately search Wikipedia, Amazon, IMDB, etc. All of this helps me not need Google if I know the best domain to look in, and it saves time.

Re: All DuckDuckGo bang operators on one page

#80
post #48

For ages I've wanted DuckDuckGo to add a "!copy" bang, which acts like the "!" operator (automatically navigates to the first search result) but instead of going to the page, it copies the link to my clipboard. There are plenty of projects I'm familiar with but don't know the canonical URL off the top of my head - when I link someone else to them I have to look up their homepage. This would make this process much fas…

I built a simple node JS server to use as my default search engine. What you describe could be a 2-line change to my code. My motivation was using Google "I'm Feeling Lucky" without JS. The node app detects the "!lucky" bang, downloads the search results, finds the first link, and redirects to it. Let me know if it interests you.

I too use a custom "search engine", because I want to use a different provider depending on language of query.
Post reply on HN