// ==UserScript== // @name academyFIVE::ResizeFilebar // @namespace dakp/academyfive // @version 2026.09.001 // @description Setzt die Höhe des Dateibaums (.Files) in der text_edit.php4 auf mindestens 200px // @author Dims Akpan // @match https://a5.fhdw-hannover.de/newsletter/text_edit.php4* // @match https://a5.fhdw.de/newsletter/text_edit.php4* // @match https://fhdw.academyfive-preview.net/newsletter/text_edit.php4* // @match https://fhdw-hannover.academyfive-preview.net/newsletter/text_edit.php4* // @grant none // @icon https://www.academyfive.com/typo3conf/ext/sitepackage/Resources/Public/build/assets/images/favicon-academyfive.ico // ==/UserScript== (function() { 'use strict'; const MIN_HEIGHT = 200; function resizeFiles() { const el = document.querySelector('.Files'); if (!el || el.dataset.a5Resized) return; const currentHeight = el.offsetHeight; if (currentHeight < MIN_HEIGHT) { el.style.minHeight = MIN_HEIGHT + 'px'; el.style.height = MIN_HEIGHT + 'px'; el.dataset.a5Resized = 'true'; } } if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', resizeFiles); } else { resizeFiles(); } // Observer für dynamische Inhalte const observer = new MutationObserver(() => { const el = document.querySelector('.Files'); if (el && !el.dataset.a5Resized) resizeFiles(); }); observer.observe(document.documentElement, { childList: true, subtree: true }); })();