Last active
January 29, 2019 01:52
-
-
Save cmargroff/084a6dcbfe263d57449bcbd8e77d2389 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // ==UserScript== | |
| // @name PkmnCards Random Hotkey | |
| // @namespace https://pkmncards.com/ | |
| // @version 0.1.3 | |
| // @description Adds a keyboard hotkey to jump to a random card. | |
| // @author Chris Margroff | |
| // @match https://pkmncards.com/* | |
| // @grant none | |
| // ==/UserScript== | |
| (function(w) { | |
| w.addEventListener('keydown', function(e){ | |
| if(e.keyCode == 191){ | |
| //if key is ? | |
| w.location = w.location.origin+'/?random'; | |
| } | |
| }, false); | |
| })(window); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment