51

When asking a new question, I have pasted a huge block of code mistakenly. Now, when I open stackoverflow.com/questions/ask, I cannot clean the question body, because the page never ends loading. That draft is always loaded.

How can I solve this problem? I have cleaned the browser history, opened StackOverflow in other browser, but the site is the responsible for maintaining the draft for me. PS. I cannot click the discard button.

15
  • 6
    I just made a question larger than the 30,000 characters permitted, no problem with discarding it. What language? Was it just code, or does it contain links? The coloured highlighting stuff? Or what? If you stop the loading, can you edit the question? Commented Jun 19, 2015 at 15:47
  • 9
    The code I have pasted has 502913 characters. It is a img tag with a data:url.
    – felipe.zkn
    Commented Jun 19, 2015 at 15:51
  • 3
    Wow. Perhaps you'll need an SE Developer to assist you. Someone may know a good chatroom or something. Commented Jun 19, 2015 at 15:54
  • 1
    Firefox shows a warning of an unresponsive script. If I choose 'Stop script', the question textarea options turn disabled and even if I erase that content, it has no effect.
    – felipe.zkn
    Commented Jun 19, 2015 at 15:56
  • have you tried going through the dev tools and clearing the data from there? (that is, if stopping the page loading allows you to go that far)
    – jbutler483
    Commented Jun 19, 2015 at 15:58
  • @jbutler483 I'm trying to do what you mentioned too, but the browser gets totally blocked after some seconds.
    – felipe.zkn
    Commented Jun 19, 2015 at 16:07
  • The draft will be discarded after a few days, so you could just wait a while.
    – Servy
    Commented Jun 19, 2015 at 16:16
  • 2
    @Servy I suppose setting the clock forward is less of a workaround these days... Commented Jun 19, 2015 at 16:17
  • 21
    @BillWoodger Of course, it's SE's sever clock that needs to be set forward, not your local clock, so unless you get admin access to their servers or have a time machine, you'll need to use the old fashioned method of time travel: waiting.
    – Servy
    Commented Jun 19, 2015 at 16:20
  • 1
    @Servy at least that's the great thing about time travel. It doesn't matter how many years it takes me to perfect it, I'll always be there on time... Commented Jun 19, 2015 at 16:38
  • 4
    But when will then be now? Soon. Commented Jun 19, 2015 at 16:40
  • 3
    @NathanOliver Obviously now. Just another now. Commented Jun 19, 2015 at 16:41
  • 1
    @Servy How many days do I need to wait?
    – felipe.zkn
    Commented Jun 19, 2015 at 22:49
  • 1
    @felipe.zkn If you want a faster response, contact the team directly.
    – AStopher
    Commented Jun 20, 2015 at 12:06
  • 3
    I once did this by creating a test post that was about 100 blockquotes (actually probably way more). Same kind of issue (though that resolved itself).
    – Pokechu22
    Commented Jun 21, 2015 at 16:30

1 Answer 1

78

Open the JavaScript console of your favourite browser, go to the Stack Overflow homepage, and execute the following code:

jQuery.post('/post/discard-draft', {
    fkey: StackExchange.options.user.fkey,
    postType: 'ask',
});
1
  • 13
    Great solution!
    – felipe.zkn
    Commented Jun 20, 2015 at 16:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .