I got a website (Typo3 9.5) already configured with existing typoscript and a bunch of pages.
Now I want to create an extension which simply adds one line of code to every page when a checkbox in the backend for this specific page is set. Like a "Show Editor [x]" checkbox which then adds a simple fixed to this exact page.
I know there must be an easy way to get this to work but I have no idea how to do it. Right now I'm thinking about manipulating the PAGE object in Typoscript and just add a on 10000000 with all the needed variables inside. But there must be a better way.