_OwNeD.YoU_ Posted October 10, 2009 Share Posted October 10, 2009 Guys im trying to create a gmail shortcut key for clicking a focusing on the cc button but gmail is not accepting it at all // ==UserScript== // @name gmail2 // @include https://mail.google.com/mail/contacts/ui/ContactManager* // @include http://mail.google.com/a/audiogeer.com/contacts/ui/ContactManager* // ==/UserScript== window.addEventListener("keypress",function(e){ isSignOut(e); }, false); function ProcessKeyClick(event) { switch(event.keyCode) { case 83 : { // enter window.frames[1].document.getElementById(":lt.").click(); } break; } } window.addEventListener("keyup", ProcessKeyClick, false); Link to comment https://forums.phpfreaks.com/topic/177226-javascript-greasemonkey-gmail-keyboard-shortcut-key/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.