Skip to content

Instantly share code, notes, and snippets.

@Spoygg
Forked from anonymous/deviant-art-bookmarklet.js
Last active December 10, 2015 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Spoygg/4392391 to your computer and use it in GitHub Desktop.
Save Spoygg/4392391 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.

Unfortunately below link does not work.

Drag on bookmarks toolbar

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; }};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment