1.3.2
Key performance improvements:
- Process all scripts in a single pass rather than modifying HTML multiple times
- Handle script removals in reverse order to avoid offset recalculations
- Only modify the response body when necessary with proper validation
- Early exit conditions to avoid unnecessary processing
- More efficient JSON handling with validation
- Single string manipulation for removing scripts and another for adding content