Skip to content

Instantly share code, notes, and snippets.

Created December 27, 2012 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/4392373 to your computer and use it in GitHub Desktop.
Save anonymous/4392373 to your computer and use it in GitHub Desktop.
Simple bookmarklet to activate two keyboard shortcuts on http://my.deviantart.com/messages/#view=deviations single deviation view. First is to 'a' to "Add to Favorites", second is 'k' to remove from messages. (kill is mnemonic for 'k'). Instructions: add bookmark with contents of this file. When on dA single deviation view click on bookmark.
javascript: document.onkeypress = function(event) {switch(event.keyCode){case 107: document.getElementsByClassName('remove-message-button')[0].click(); break; case 97: document.getElementById('gmi-ResourceViewFaveButton').click(); break; }};
@Spoygg
Copy link

Spoygg commented Dec 27, 2012

I was not logged in while submitting Gist, lol.

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