Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Exclude Matching #756

Open
erosman opened this issue Jan 31, 2025 · 0 comments
Open

Proposal: Exclude Matching #756

erosman opened this issue Jan 31, 2025 · 0 comments
Labels
needs-triage: chrome Chrome needs to assess this issue for the first time needs-triage: firefox Firefox needs to assess this issue for the first time needs-triage: safari Safari needs to assess this issue for the first time

Comments

@erosman
Copy link

erosman commented Jan 31, 2025

Proposal: Exclude Matching

Background

While some APIs such as Content scripts or scripting support excludeMatches, there are others that don't have such option.

menus/contextMenus is a commonly used example where documentUrlPatterns is insufficient for this purpose.
Other examples include: webRequest.RequestFilter urls

Proposal

Provide a method to exclude match in APIs the don't have them

Suggestions

A few possibilities:

  1. Consider negative matching in Match patterns
    As once suggested in Exclude in Match patterns, a negative match pattern that would simply translate to excludeMatches
    e.g. ["*://*.example.org/*", "!*://*.example.org/support/*"]
  2. Add additional matching property (e.g. similar to scripting) to APIs that don't have it
@github-actions github-actions bot added needs-triage: chrome Chrome needs to assess this issue for the first time needs-triage: firefox Firefox needs to assess this issue for the first time needs-triage: safari Safari needs to assess this issue for the first time labels Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage: chrome Chrome needs to assess this issue for the first time needs-triage: firefox Firefox needs to assess this issue for the first time needs-triage: safari Safari needs to assess this issue for the first time
Projects
None yet
Development

No branches or pull requests

1 participant