Is it possible to make the enter key submit a tweet automatically on Twitter?

If so, how?

  • It would be very simple to create a browser extension to do this. Tell me what browser you use and I'll start in a few hours
    – JJJollyjim
    Commented Apr 3, 2012 at 5:30
  • @JJ56 - I primarily run Chrome and Firefox .. and an extension would be very cool :)
    – warren
    Commented Apr 3, 2012 at 13:32
  • @JJ56 - were you able to get an extension made that would do this? I could see that being hyper-useful in the community :)
    – warren
    Commented Apr 16, 2012 at 13:51
  • Sorry. I didn't get around to it, forgot about it, and have been on holiday for the last week. I will do it, I promise :)
    – JJJollyjim
    Commented Apr 17, 2012 at 6:35

2 Answers 2


It is not possible to use enter to submit the new tweet on Twitter.com. By default it creates a line break, even if line breaks are not displayed by Twitter.com and most apps.

The fastest way to post a tweet using your keyboard is the following:

  1. Press n for new tweet on your Twitter home page
  2. Write your tweet content
  3. Press tab and then enter to post it
  • <alt> then <enter> is not working in Chrome :\
    – warren
    Commented Mar 28, 2012 at 14:04
  • 1
    Sorry @warren, my fault. I was thinking to tab and wrote alt, don't know why. Press TAB and then ENTER to post the tweet you are composing.
    – Drake
    Commented Mar 28, 2012 at 14:09
  • 1
    Would Control+Enter work? Enter and Control+Enter often interchangeably share the submit/new line functionality. I don't use Twitter so I can't check myself.
    – user13779
    Commented Mar 30, 2012 at 17:48
  • 3
    @Phong No that doesn't work. Commented Mar 30, 2012 at 18:20

Here's the solution I came up with (thanks to this post). You can download the full Greasemonkey script here.

setInterval (function() { checkForTweetbox (); }, 500);

function checkForTweetbox () {
    var tweetbox = document.querySelector ('div.tweet-box textarea');   //check for new tweet window
    if (tweetbox) {
        if (! tweetbox.weHaveProcessed) {
            tweetbox.weHaveProcessed    = true;
//          alert ('New tweet-box found!');
    tweetbox.onkeydown = function(event){
        if(event.keyCode == 13){                                        //13 = Enter keycode
            document.querySelector ('a.primary-btn').click();           //there must be at least one character in the textarea  

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.