darkreader / darkreader/darkreader

[BUG] does not work if the query string contains the site name from the exclude list

Open
#4,675 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
22.4k
Forks
2.7k
Avg merge
21h 11m
Merged PRs (30d)
78

Description

### **Describe the bug**

Dark Reader does not work if the query string contains the site name from the exclude list.

### **Steps to reproduce**

- Add `example.com` to the exclude list
- Ensure that there is not `google.com` in the exclude list
- Go to 'https://www.google.com/search?q=site:https://www.example.com/'

### **Expected behavior**

Dark Reader works on `https://www.google.com/search?q=site:https://www.example.com/`

### **Actual behavior**

Dark Reader does not work on `https://www.google.com/search?q=site:https://www.example.com/`

### **Screenshots**

![image](https://user-images.githubusercontent.com/36765595/103722303-b3a2ed80-4fe0-11eb-9018-d2add58ab3cd.png)

### **System Information:**

- OS: Ubuntu 20.10
- Browser: Chrome 87.0.4280.88 (Official Build) (64-bit)
- Dark Reader version: 4.9.26

### **Additional context**
does not work too if the site name in the middle of the query string, for example: 'https://www.google.com/search?q=site:https://www.example.com/&something=test'

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.