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

Regex presets to block scripts #58

Open
over-engineer opened this issue Mar 27, 2024 · 0 comments
Open

Regex presets to block scripts #58

over-engineer opened this issue Mar 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@over-engineer
Copy link
Member

One potential feature to consider is to include presets for commonly used regular expressions (for Google Analytics, Google Tag Manager, Facebook Pixel, etc.)

We could also include presets formatted to match a domain (with or without www.), a subdomain, etc.

For example,

Main domain regex:
^(?:https?:)?\/\/(?:www\.)?website\.com

Subdomain regex:
^(?:https?:)?\/\/(?:www\.)?sub\.website\.com

Example:
^(?:https?:)?\/\/(?:www\.)?google-analytics\.com

(originally suggested by @nikodemsky on the WordPress.org support forum)

@over-engineer over-engineer added the enhancement New feature or request label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant