Skip to content

Extract subdomains #8

Description

@max-len

Would it be possible to show subdomains, i.e. extract them from the hostname or just extract arbitrary regex from the variables?

The tab title format could look like {subdomain[x]} which could then be parsed and used with document.location.hostname.match(/[^\.]+/g).reverse()[x], where {subdomain[0]} would represent the TLD.

Alternatively a tab title format could look like {hostname:<regex>} which would return the matches / matching groups.

Using multiple tags is already possible.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions