Created
July 10, 2014 16:17
-
-
Save austinpray/573159d8e05c4f06f05b to your computer and use it in GitHub Desktop.
And the value plugged into the search bar in the top right corner.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function () { | |
var searchEl = typeof document.querySelector !== 'undefined' ? document.querySelector('#search [name="keywords"]') : document.getElementsByName('keywords')[0]; | |
return searchEl.value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment