NOTE (2nd April, 2012): After an e-mail correspondence with DuckDuckGo's Gabriel W. I decided to take down this project (and remove it from GitHub) due to Terms of Service issues with aggregating search results. The short story: DDG aren't allowed to syndicate search results from external providers in other ways.
I will try to implement the "autocompleter" functionality some other way in the future, so I'll keep this page for now. But until then hang tight. ;-)
Sorry for the inconvenience.
#DuckDuckStack - The Stack Exchange API Doc Autocompleter
DuckDuckStack - The Stack Exchange API Doc Autocompleter
DuckDuckStack is a user-script that extends the Stack Exchange with an API docs autocompleter, powered by DuckDuckGo. It is a Greasemonkey user-script and should run on Firefox and Chrome.
In Chrome you will need to also install the Tampermonkey extension as the script uses features that native user-scripts can't (more specifically @require
and GM_xmlhttpRequest
).
##Usage
Usage
To use the autocompleter do the following:
- Start writing an answer on a Stack Exchange answer. To start using the autocompleter you type in
api:
which will open a list of available search tags should appear that will filter as you continue typing. You can move the selection with up/down arrow keys and select with the enter key. The search tags will group in related and unrelated tags. - When you've selected the search tag it will auto-insert it into the text like this:
api:[search tag]:
. After this you can write a search term which will let the user-script do a relevant site search in DuckDuckGo and list them. - When you've selected the search result you want it will auto-insert the link into your post.
The screenshots below shows this three step flow:
The token that the script reacts on looks like this: api:[search tag]:[search term]
.
###Supported Search Tags
Supported Search Tags
The following tags are currently supported in the user-script:
css
,html
, andjavascript
- Searches in Mozilla Developer Networkman
for man-pages - Searches in linux.die.netmsdn
- Searches in Microsoft Developer Networkjquery
- Searches in JQuery API docs
I'll add more if there are any requests for such.
##Download
Download
Download link removed for now. See note above.
##Feedback and bug reports
Feedback and bug reports
Feel free to drop some comments below and bugs are great if you enter them into the bug tracker at GitHub.
##License and Credits
License and Credits
The user-script is licensed under the MIT License.
It requires jQuery and the jQuery Caret Plugin which is loaded by the user-script. The logo is DuckDuckGo's.