Skip to content

Custom URL patterns

yayuyokitano edited this page Sep 21, 2023 · 7 revisions

The extension allows to define custom URL patterns for connectors. For example, this feature can be useful for Bandcamp custom domains, that are not defined in the extension by default.

How to configure custom URL patterns

  1. Open the extension settings and expand Options section.
  2. Find the connector you want to add custom URL pattern to.
  3. Click the connector label to expand the connector settings.
  4. Click "Add pattern" and enter the custom URL pattern.

Format of URL pattern

The format of patterns is similar to match patterns that is used in Chrome. You can read here about match patterns.

The URL pattern is just a string that represents the URL of service. The pattern can contain * character that means any string.

For example, http://example.com/ does match http://example.com/, but does not match https://example.com/. To make the pattern match both URLs, let's use * character: *://example.com/. Now the updated pattern match the second URL as well, as the first one.