Kaspersky insertion is made - as I found out - at places (or 1st place) where "
<script" is found. I changed in minimized jquery following to fix this issue:
* this:
... replace(/
<script(.|\s)*?\/script>/g,"") ...
* replaced by:
... replace(/
\x3Cscript(.|\s)*?\/script>/g,"") ...
I.e. smaller sign by it's hexadecimal escape.
For me this fixed Kaspersky injection into jquery.js, that was a really annoying thing (lost few hours...)