draft feature suggestions

BahamutZEROBahamutZERO Registered User regular
While the draft system is useful sometimes, I find myself spending a lot of effort going into the saved drafts page to delete the unwanted autosaves, or posting new replies with unnoticed old drafts in front of what I actually meant to post. It would be a lot better if there were:
-an option in the user profile settings or on the saved drafts page to disable automatic draft saving, and/or...
-a button to delete the saved draft for a particular thread while viewing that thread, somewhere around the post reply/save draft/preview buttons

e: I should have done a search first, there was a request for these features back in 2011 but I guess tube said no back then. It's been long enough since then though that I thinks it's worth bringing up again.

BahamutZERO on


  • TubeTube Administrator, ClubPA admin
    Feature upgrades are done through our software vendor, so when I say that it's not going to happen it doesn't mean that I'm denying you, it means that I know the vendor doesn't have it roadmapped. I'd like there to be a disable feature on the user level for drafts, but it's unlikely to happen in the near future.

    Hobnail wrote: »
    This forum has taken everything from me
    This hurts but I deserve it

  • BahamutZEROBahamutZERO Registered User regular
    I see, thank you for the clarification.

  • BarrakkethBarrakketh Registered User regular
    edited April 2015
    I only tested this in Chrome (through Tampermonkey), but you could try this as a userscript:
    // ==UserScript==
    // @name         Delete Draft
    // @namespace    http://forums.penny-arcade.com/profile/8153/Barrakketh
    // @version      0.1
    // @description  Lets you delete drafts from the post box
    // @author       Barrakketh
    // @match        http://forums.penny-arcade.com/discussion/**
    // @grant        none
    // ==/UserScript==
    (function () {
        String.prototype.format = function() {
            var args = arguments;
            return this.replace(/{(\d+)}/g, function(match, number) {
                return typeof args[number] != 'undefined'
                ? args[number]
                : '{' + number + '}'
        function insertAfter(newNode, referenceNode) {
            referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling);
        var delete_button = document.createElement("a");
        delete_button.textContent = "Delete Draft";
        delete_button.className = "Button";
        delete_button.style.margin = "0px 6 px";
        delete_button.addEventListener("click", function (e) {
            var textarea = document.querySelector('textarea[id^=Form_Body]');
            var draft_id = document.querySelector('#Form_DraftID').getAttribute('value');
            var trans_key = document.querySelector('#Form_TransientKey').getAttribute('value');
            if (draft_id) {
                var uri = '/vanilla/drafts/delete/{0}/{1}?Target=drafts'.format(draft_id, trans_key);
                var fd = new FormData();
                fd.append("DeliveryType", "BOOL");
                var xhr = new XMLHttpRequest();
                xhr.open("GET", uri);
            textarea.value = "";
        insertAfter(delete_button, document.querySelector('div.Buttons > a.DraftButton'));

    It adds a delete draft button.

    Barrakketh on
    Rollers are red, chargers are blue....omae wa mou shindeiru
Sign In or Register to comment.