AdguardTeam / AdguardTeam/AdguardBrowserExtension

Any cosmetic user rule next to any of $replace rule is incorrectly colored

Open
#3,051 0 comments 2 reactions 1 assignee Assigned to @maximtop View on GitHub
Bug MV3 Priority: P4
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

![color1](https://github.com/user-attachments/assets/57ca2f60-6d4a-4d64-ab3d-e9c1571039a9)

Screenshot 2

![color2](https://github.com/user-attachments/assets/c2b235a5-0ce0-43cd-b903-43ed4853386d)

### 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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.