Cura post-processing script that removes all G-code comments (full-line and inline) after a configurable marker line.
;--- Start G-code End ---
Copy StripCommentsAfterTag.py to:
~/.local/share/cura/5.xx/scripts/
Restart Cura.
Extensions → Post Processing → Modify G-code → Add script
→ Strip comments after tag