Automatically removes empty lines and beginning spaces or tabs from clipboard text. A GPAI-prompted version as a GNOME Shell extension (45,46,47,48) The scripts are copied to a folder named clipboard-line-cleaner@example.com and this folder is then placed in /home/user/.local/share/gnome-shell/extensions. There is an installation script for the Clipboard Line Cleaner GNOME Extension in the folder clipboard-line-cleaner-extension, which does all the aforementioned. Sorry for any faults and unorthodoxies; don't use the scripts, they might be faulty. A running version is to be found here: https://extensions.gnome.org/extension/8385/clipboard-line-cleaner/.
However, I immediately canceled a 40,000-word text copy with an inadvertently active extension. Maybe add a limit for the text clip size. The tool, which at first glance seems rather nonsensical, arose from my desire not to always want to rework the outlay of the text copies manually. Of course I am also thinking of an extension to this interesting extension. Conversion option continuous text, two input fields for search and replace, output options ... no, I should see some need first. Help is welcome!