I uploaded a modification to the extension proposed above. It uses org.inkscape.output.svg.inkscape instead or org.inkscape.output.svg.plain. I do not claim to understand how this whole thing works, but I can see that the "plain" format has stores much less information in the file and I wanted to keep that information.
My uploads are called svg_viewBox_output2.inx and svg_viewBox_output2.py so they can be installed without interfering with the other one.
I uploaded a modification to the extension proposed above. It uses org.inkscape. output. svg.inkscape instead or org.inkscape. output. svg.plain. I do not claim to understand how this whole thing works, but I can see that the "plain" format has stores much less information in the file and I wanted to keep that information.
My uploads are called svg_viewBox_ output2. inx and svg_viewBox_ output2. py so they can be installed without interfering with the other one.