HistoryBlock icon indicating copy to clipboard operation
HistoryBlock copied to clipboard

Feature request: Partial URL match

Open waldyrious opened this issue 3 months ago • 0 comments

Context: Currently, the matching mode is defined as the same for all entries of the blacklist. This means that if I need an item that requires the Full URL matching mode (e.g., say I want to block www.google.com/search but allow other google.com URLs), then I am unable to fully block another domain; and instead need to add individual blacklist entries for each page in the domain that I want to fully block. For example, instead of simply youtube.com (which would work in Domain matching mode), I have to add www.youtube.com, www.youtube.com/watch, www.youtube.com/results, www.youtube.com/playlist, and so on, because I am now using Full URL matching mode.

Request: One way to address this need would be to add a new matching mode (e.g. "Partial URL") that would match the full subdomain, domain, TLD and (optional) provided path, as well as any path following that (except query strings and anchors/fragment identifiers). This way, one would be able have entries in the blocklist that cover entire domain or subdomain (like youtube.com) while others in the same list could limit to only specific paths within a domain (like www.google.com/search).

(I suppose an alternative solution might be to allow the matching mode to be specified per-entry, but I suspect that would require deeper restructuring of the extension than simply adding a new matching mode.)

waldyrious avatar Oct 19 '25 09:10 waldyrious