Greasy Fork is available in English.

Amenitiz - Fix textarea

Fixes textarea that are not resizable

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Amenitiz - Fix textarea
// @namespace    http://amenitiz.io
// @version      1.0
// @description  Fixes textarea that are not resizable
// @author       Laurent Chervet
// @license      MIT
// @match        https://*.amenitiz.io/fr/admin/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=microsoft.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    console.log('ℹ️ Init Amenitiz - Fix textarea')

    const scripty_fixTextarea_doFix = function() {
        document.querySelectorAll('textarea').forEach(element => {
            element.style.maxWidth = '100%'
            element.style.minHeight = '400px'
        })
    }

    const scripty_fixTextarea_observer = new MutationObserver(mutations => {
        mutations.forEach(() => {
            scripty_fixTextarea_doFix()
        })
    })

    const scripty_fixTextarea_container = document.querySelector('body')
    if (scripty_fixTextarea_container) {
        scripty_fixTextarea_observer.observe(scripty_fixTextarea_container, {childList: true, subtree: false})
    }

    scripty_fixTextarea_doFix()

})();