Last active
March 31, 2021 22:01
-
-
Save alan-andrade/31e4d2cacb5436e33a97e1d3e424c8c7 to your computer and use it in GitHub Desktop.
Jump to next hotkey
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
| javascript:(function() { | |
| document.onkeypress = (e) => { | |
| if (e.key !== "n" || e.key !== "f") { return } | |
| const xpath = "//button[contains(text(),'Save + Next Class')]"; | |
| const element = document.evaluate(xpath, window.document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; | |
| element.click(); | |
| }; | |
| alert("Hotkeys enabled. Press F or N to move forward."); | |
| })() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment