Skip to content

Instantly share code, notes, and snippets.

@danielrotaermel
Created November 5, 2020 13:24
Show Gist options
  • Save danielrotaermel/54b92c99f2b26641f4e8f15f74267314 to your computer and use it in GitHub Desktop.
Save danielrotaermel/54b92c99f2b26641f4e8f15f74267314 to your computer and use it in GitHub Desktop.
PiPer keyboard shortcut UserScript (ctrl+p)
// ==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