Skip to content

Instantly share code, notes, and snippets.

@ctcherry
Created October 11, 2010 22:41
Show Gist options
  • Save ctcherry/621358 to your computer and use it in GitHub Desktop.
Save ctcherry/621358 to your computer and use it in GitHub Desktop.
// Oneliner JS to add project search to any public github project
$($('.title-actions-bar')[0]).after('Search In Project: <input type="text" onKeyUp="if (event.keyCode == 13) { window.location.href=$($(\'.title-actions-bar h1 strong a\')[0]).attr(\'href\') + \'/search?q=\' + this.value; }">');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment