Replace input with textarea - Bitcointalk Report

-

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         Replace input with textarea - Bitcointalk Report
// @namespace    http://minifrij.com
// @version      1
// @description  -
// @author       Minifrij
// @match        https://bitcointalk.org/index.php?action=reporttm*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    //Create the new textarea element
    var reportArea = document.createElement('textarea');
    reportArea.name = 'comment';
    reportArea.rows = '7';
    reportArea.cols = '50';
    reportArea.style = 'display:block;';

    //Get old element
    var reportInput = document.getElementsByName('comment')[0];
    //Replace
    reportInput.parentNode.replaceChild(reportArea, reportInput);
})();