| Website | https://kzar.co.uk |
| GitHub | https://github.com/kzar |
| Website | https://kzar.co.uk |
| GitHub | https://github.com/kzar |

Version 1.54.2 Steps to reproduce Clone https://github.com/duckduckgo/duckduckgo-privacy-extension/ Run npm install to install the dependencies. Run npm run playwright -- integration-test/navigator...
I found Gemini 3 was compulsively stripping HTML comments from the file I was trying to get it to process, but it turns out a pretty effective workaround is to replace the comments with tags beforehand, then restore them again afterwards. E.g. by doing something like this:
```bash
# Preserve
perl -i -pe 's/<!--(.*?)-->/<preserve>$1<\/preserve>/g' file.html
# Restore
perl -i -pe 's/<preserve>(.*?)<\/preserve>/<\!--$1-->/g' file.html
```