regex for disabling (or just programmatic disabling on the page) #63

Closed
WuTheFWasThat opened this Issue May 27, 2016 · 5 comments

Comments

Projects
None yet
4 participants
@WuTheFWasThat

I just found this extension and it's great! there's one thing I miss, though, which is being able to specify a domain to disable on, rather than a page.

I think I'd like a function which sets/toggles whether surfingKeys is active. i.e. when called, it disables everything in surfingkeys except the hotkey to re-enable it. It should be more or less whatever Alt-s is mapping to.

ideally i could then write stuff in the configuration like

if (document.domain is in my whitelist of regexes) {
   disableSurfingKeys();
}
@brookhong

This comment has been minimized.

Show comment
Hide comment
@brookhong

brookhong May 30, 2016

Owner

Added it in ca4220c

Please add setting as below

settings.blacklistPattern = /.*somethingtobeexcluded/i;

To delete the pattern:

settings.blacklistPattern = undefined;
Owner

brookhong commented May 30, 2016

Added it in ca4220c

Please add setting as below

settings.blacklistPattern = /.*somethingtobeexcluded/i;

To delete the pattern:

settings.blacklistPattern = undefined;
@WuTheFWasThat

This comment has been minimized.

Show comment
Hide comment
@WuTheFWasThat

WuTheFWasThat May 30, 2016

thanks! this is good enough for my problem, which was wildcard subdomains. but i do still think a list/function would be a bit nicer!

thanks! this is good enough for my problem, which was wildcard subdomains. but i do still think a list/function would be a bit nicer!

@HaleTom

This comment has been minimized.

Show comment
Hide comment
@HaleTom

HaleTom Dec 15, 2017

Is there a smart way to split this regex over multiple lines to blacklist more than one site?

HaleTom commented Dec 15, 2017

Is there a smart way to split this regex over multiple lines to blacklist more than one site?

@jaekyeom

This comment has been minimized.

Show comment
Hide comment
@jaekyeom

jaekyeom Mar 1, 2018

I agree with @HaleTom. We need settings.blacklistPatterns.

jaekyeom commented Mar 1, 2018

I agree with @HaleTom. We need settings.blacklistPatterns.

@HaleTom

This comment has been minimized.

Show comment
Hide comment
@HaleTom

HaleTom May 26, 2018

I'm using:

unmapAllExcept([], /\/todoist.com\//);

This can be used multiple times.

HaleTom commented May 26, 2018

I'm using:

unmapAllExcept([], /\/todoist.com\//);

This can be used multiple times.

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