There is also another way, but it is not automatic ...
And it's through "developer tools" from Chrome or similar ones ...
For that you must open the page manually and by pressing "Ctrl + Shift + I" or F12 in Google Chrome and go to the "console" tab and there you can paste your Script, whatever the Script does only work for you every time that you do those steps (I do not think it can be done automatically) .......
But I think that's what you need (or needed), I'm also doing something similar ...
There is a certain page that does not allow or "import", or "iframe" as they said earlier for security issues, but when you run the script on your already loaded page I can insert the code I want and modify its appearance .... insert Some "iframe" s that is what I needed most and as I do in one of the pages of your domain I can freely use the "iframe".
I like how I'm staying, in case you want to see the page and the script let me know.