Larger, wider and taller default WYSIWYG description area in the XML item editor - Archive.org

By default the description area is tiny, and resizing it every time is a bit of a pain.

  1. // ==UserScript==
  2. // @name Larger, wider and taller default WYSIWYG description area in the XML item editor - Archive.org
  3. // @description By default the description area is tiny, and resizing it every time is a bit of a pain.
  4. // @namespace Violentmonkey Scripts
  5. // @match https://archive.org/editxml/*
  6. // @grant none
  7. // @run-at document-start
  8. // @version 2020.03.27
  9. // @author Swyter
  10. // ==/UserScript==
  11.  
  12. /* swy: quick and dirty override; but it seems to work */
  13. window.addEventListener('DOMContentLoaded', function(e)
  14. {
  15. document.querySelector("textarea#id_description").style="width: 905px; height: 406px; display:none;";
  16. document.querySelector("div.wysiwyg").style="width: 910px; height: 500px;";
  17. document.querySelector("div.resizer.ui-resizable").style="height: 473px; width: 910px;";
  18. })