Created
December 16, 2018 19:12
-
-
Save ttscoff/4e96825d4ac1ec947a108e606696a554 to your computer and use it in GitHub Desktop.
A snippet for use with a browser shortcut manager to focus the amazon search field and set the department to all departments. Because it's got dam annoying that there's no keyboard shortcut for that.
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
if (document.location.href.match(/amazon.com/)) { | |
document.querySelector("#searchDropdownBox").selectedIndex = 0; | |
document.querySelector("#twotabsearchtextbox").select(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use this if statement along with SearchFocus, performing just the above if I'm on Amazon. Triggered with Shortcut Manager for Chrome.