Last active
December 5, 2019 15:12
-
-
Save emersonlaurentino/1b515f632a04fcb0cb8df9702485173c to your computer and use it in GitHub Desktop.
send message by pressing enter on instagram web
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// script | |
function sendMessageInstagram (e) { | |
if (e.keyCode === 13) { | |
document.querySelector('.X3a-9 button').click(); | |
} | |
}; | |
// execute | |
addEventListener("keyup", sendMessageInstagram); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment