Replace input with textarea - Bitcointalk Report

-

As of 2017-11-18. See the latest version.

  1. // ==UserScript==
  2. // @name Replace input with textarea - Bitcointalk Report
  3. // @namespace http://minifrij.com
  4. // @version 1
  5. // @description -
  6. // @author Minifrij
  7. // @match https://bitcointalk.org/index.php?action=reporttm*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. //Create the new textarea element
  15. var reportArea = document.createElement('textarea');
  16. reportArea.name = 'comment';
  17. reportArea.rows = '7';
  18. reportArea.cols = '50';
  19. reportArea.style = 'display:block;';
  20.  
  21. //Get old element
  22. var reportInput = document.getElementsByName('comment')[0];
  23. //Replace
  24. reportInput.parentNode.replaceChild(reportArea, reportInput);
  25. })();