Created
November 5, 2020 13:24
-
-
Save danielrotaermel/54b92c99f2b26641f4e8f15f74267314 to your computer and use it in GitHub Desktop.
PiPer keyboard shortcut UserScript (ctrl+p)
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 PiPer Shortcut | |
// @description This is your new userscript, start writing code | |
// @match *://*.* | |
// ==/UserScript== | |
document.onkeyup = function(e) { | |
// console.log(e) | |
// ctrl + p | |
if (e.ctrlKey && e.key == "p") { | |
document.querySelector("#PiPer_button").click(); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment