Skip to content

Instantly share code, notes, and snippets.

@jvns
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jvns/9127606 to your computer and use it in GitHub Desktop.
Save jvns/9127606 to your computer and use it in GitHub Desktop.
gmane.js
var text = $('pre')[0].innerText.substr(0, 100);
text = text.replace(/ \w+$/, '').replace("\n", " ");
var search = '"' + text + '"' + ' site:comments.gmane.org';
console.log(search);
window.location = "http://duckduckgo.com/?q=! " + search;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment