Skip to content

Add redirect resources for Optimizely and similar A/B testing scripts #588

Open

Description

@maximtop

uBlock Origin added an optimizely.js redirect resource: gorhill/uBlock@e68e05cde0 (gorhill/uBlock#3960).

It is a surrogate for the Optimizely Web Experimentation snippet, cdn.optimizely.com/js/<projectId>.js. Blocking the snippet breaks sites that use window.optimizely without guarding it: the TypeError aborts the rest of the inline script, and anti-flicker wrappers keep the page hidden until their timeout.

Add the same redirect resource, compatible with uBO's optimizely.js.

Similar products need redirect resources too:

Check which other A/B testing products break sites the same way when blocked, and add redirect resources for them as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions