Skip to content

Instantly share code, notes, and snippets.

@jjeaton
Created February 23, 2023 01:48
Show Gist options
  • Save jjeaton/f4f7c4182cf3802432df5c9a52a008c1 to your computer and use it in GitHub Desktop.
Save jjeaton/f4f7c4182cf3802432df5c9a52a008c1 to your computer and use it in GitHub Desktop.
Arc boost to redirect to WordPress login using Option + Shift + A
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);
}
@jjeaton
Copy link
Author

jjeaton commented Feb 23, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment