pressidium-cookie-consent icon indicating copy to clipboard operation
pressidium-cookie-consent copied to clipboard

Regex presets to block scripts

Open over-engineer opened this issue 10 months ago • 0 comments

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 avatar Mar 27 '24 10:03 over-engineer