RubyRoid / RT radio 1

// ==UserScript==
// @name         RT radio 1
// @namespace    https://rtpowered.com/
// @version      0.1
// @description  enter something useful
// @match        https://rtpowered.com/Ticket/Update.html*
// @copyright    2012+, You
// @license      MIT
// ==/UserScript==

function getCommentBox() {
    return window.document.getElementsByName("Status")[0];
}


var box = getCommentBox();
var group = document.createElement('div');
for (var i = 0, option; option = box[i]; i++) {
    var radio = document.createElement('input');
    var label = document.createElement('label');
    radio.type = 'radio';
    radio.name = box.name;
    radio.value = option.value;
    radio.checked = option.selected;
    label.appendChild(radio);
    label.appendChild(document.createTextNode(option.text));
    group.appendChild(label);
    group.appendChild(document.createElement('br'));
}
box.parentNode.replaceChild(group, box);