Skip to content

Disable addons entirely by URL pattern #472

Open
@bollwyvl

Description

First off: really love the new features enabled by these addons for the general case. Thanks!

proposal

Add the ability for a site administrator to specify some regex/glob/gitignore patterns for which no extra scripts would be injected, at all, ever, on any version, to avoid any current or future problems.

motivation

On JupyterLite (and other sites that use it), inside highly interactive demos, the default hot key bindings are rather invasive. This leaves us having to disable some addons (especially docdiff and its claiming of d) for the whole site. Further, things like the version flyout visually overlap with other things shown in that region.

design ideas

As a quick mockup, this could be a textarea under the Advanced tab.

image

While not as slick as some dynamic form, this would make it easy to document how to copy and paste a known list of patterns.

alternatives

Some of these could be fixed, probably, by sniffing for event.currentTarget.contenteditable. But as a runtime-injected library, it's hard to reason about these things, as we'll never be able to anticipate which version will be served.

Thanks again!

Activity

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

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions