AdguardTeam / AdguardTeam/AdguardBrowserExtension
Any cosmetic user rule next to any of $replace rule is incorrectly colored
- Dominant language
- TypeScript
- Stars
- 4.4k
- Forks
- 449
- PR merge metrics
- No merged PRs in 30d
Description
### Please answer the following questions for yourself before submitting an issue
- [X] Filters were updated before reproducing an issue
- [X] I checked the [knowledge base](https://adguard.com/kb/) and found no answer
- [X] I checked to make sure that this issue has not already been filed
### AdGuard Extension version
5.0.171/4.4.41
### Browser version
Chrome 131.0.6778.86/Firefox 132.0.2
### OS version
Windows 10
### Ad Blocking
AdGuard Base filter
### Privacy
_No response_
### Social
_No response_
### Annoyances
_No response_
### Security
_No response_
### Other
_No response_
### Language-specific
_No response_
### What Tracking protection options do you have enabled?
_No response_
### Issue Details
Steps to reproduce:
1. Add any sort of $replace rule
2. Add any cosmetic or scriptlet rule to the next line
3. See the new rule is incorrectly colored
### Expected Behavior
The second rule should be correctly colored.
### Actual Behavior
The second rule is all black.
### Screenshots
Screenshot 1

Screenshot 2

### Additional Information
Happens both with MV2 and MV3 extension.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.