brave / brave/adblock-rust

Is there any plan to support filter log or similar API?

Open
#397 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2.8k
Forks
250
Avg merge
1d 16h
Merged PRs (30d)
6

Description

When using multiple rule sets, it is difficult to know which rules are currently in effect when adjusting them. Consider supporting a filter log similar to `AdGuard` or `uBlock Origin`, as shown below:
![Image](https://github.com/user-attachments/assets/5bd92182-efd2-4714-ac1d-bca93b2b7449)

![Image](https://github.com/user-attachments/assets/6b750cee-041d-4740-949d-192144a5919f)

I found `adblock-rust` contains the information.
```
pub struct NetworkFilter {
...
pub hostname: Option,
pub(crate) tag: Option,
pub raw_line: Option>,
...
}
```
Can we provide a mechanism to extend BlockResult or have a completely new API implementation to support it?

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.