Skip to content

Instantly share code, notes, and snippets.

@bryanbuchanan
Last active December 18, 2025 16:57
Show Gist options
  • Select an option

  • Save bryanbuchanan/699ffb000117167f899318f4719084f9 to your computer and use it in GitHub Desktop.

Select an option

Save bryanbuchanan/699ffb000117167f899318f4719084f9 to your computer and use it in GitHub Desktop.
Basecamp Keyboard Shortcuts
/* BASECAMP KEYBOARD SHORTCUTS
This is a quick and dirty hack to add Edit (cmd+e) and Save (cmd+s) keyboard shortcuts to Basecamp.
Requires Google Chrome and the 'User JavaScript and CSS' Chrome extension (https://chromewebstore.google.com/detail/user-javascript-and-css/nbhcbdghjpllgmfilhnhkllmkecfmpld)
1. With the extension installed and while viewing Basecamp, click the User JavaScript and CSS item from the extensions menu.
2. Click 'New Rule...'
3. In the field labelled 'Start typing JavaScript here...", paste the following code and Save.
4. Return to your Basecamp tab and refresh. Shortcuts should then work!
*/
document.addEventListener('keydown', e => {
const { ctrlKey, metaKey, key } = e
if ((ctrlKey || metaKey)) {
if (key === 'e') {
e.preventDefault()
document.querySelector('[href$="/edit"]')?.click()
}
if (key === 's') {
e.preventDefault()
document.querySelector('input[name="commit"]')?.click()
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment