(Userscript) Confirm Before Discard Post

  • boxmein
    26th Sep 2015 Former Staff 3 Permalink
    Hi!

    I made a userscript you can install via TamperMonkey or GreaseMonkey onto your browsers to save you from those times when you've typed out a really meaningful and thoroughly argumented Powder Toy forum rantpost and accidentally deleted it because you closed the tab. It adds a tiny popup before you leave the tab if your forum post box has a bit too much content in it to not be a rant, therefore saving your precious writing and your time. Feel free to install it here:

    https://greasyfork.org/en/scripts/12671-powdertoy-co-uk-confirm-discarding-a-long-post
    Edited once by boxmein. Last: 26th Sep 2015
  • jacob1
    27th Sep 2015 Developer 0 Permalink
    Yay. Too bad I didn't have this before I made this thread ):

    Well, I guess this script wouldn't exist if I hadn't accidentally deleted that post anyway :P
  • Mrprocom
    27th Sep 2015 Moderator 0 Permalink
    @boxmein (View Post)
    script.setAttribute("type", "application/javascript");
    You don't really need that, javascript is the default scripting language for all (at least all modern) browsers.
    Unless you want to support old browsers too (*cough* IE doesn't have GreaseMonkey afaik *cough*).
  • boxmein
    27th Sep 2015 Former Staff 0 Permalink
    @Mrprocom (View Post)
    The
    contentEval
    snippet is just a really common copy-pasted script to make content scripts with. I didn't really give it the attention to remove it I guess :P
  • fuckyoujacob1
    16th Nov 2015 Banned 0 Permalink
    This post is hidden because the user is banned