Created
February 23, 2023 01:48
-
-
Save jjeaton/f4f7c4182cf3802432df5c9a52a008c1 to your computer and use it in GitHub Desktop.
Arc boost to redirect to WordPress login using Option + Shift + A
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
document | |
.body | |
.addEventListener("keydown", function(event) { | |
// Å = option + shift + A | |
if (event.key === "Å") { | |
redirectToAdmin(); | |
} | |
}); | |
function redirectToAdmin() { | |
var wpAdmin = location.protocol + '//' + location.hostname + '/wp-admin'; | |
window.location.replace(wpAdmin); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Create a new boost in Arc, and copy/paste this into the content.js file. Set it to run on all websites. You can change the keyboard shortcut to whatever you want.