kintesh / containerise

Firefox extension to automatically open websites in a container
MIT License
408 stars 54 forks source link

Help with Syntax #187

Open jkozlow3 opened 11 months ago

jkozlow3 commented 11 months ago

Hi there. I created 2 bookmarks to the same site (different logins for each person) and I added a hashtag to the URL of each bookmark followed by each person's name, thinking I could use Containerise to open each bookmark in a separate container. For example:

https://app.composer.trade/portfolio#vera https://app.composer.trade/portfolio#jason

Am I able to use Containerise to open bookmark 1 in the "Vera" container and bookmark 2 in the "Jason" container? If so, can you please assist me with the correct syntax? Or is there a better approach vs. the hashtag in the bookmark URL?

Thanks!

AlexVallat commented 11 months ago

To match on a whole url like that it needs to be regex syntax, so start with an @, and add a \before any . (or other regex character like * or ? for example)

So you want:

@https://app\.composer\.trade/portfolio#jason , Jason
@https://app\.composer\.trade/portfolio#vera , Vera
jkozlow3 commented 11 months ago

To match on a whole url like that it needs to be regex syntax, so start with an @, and add a \before any . (or other regex character like * or ? for example)

So you want:

@https://app\.composer\.trade/portfolio#jason , Jason
@https://app\.composer\.trade/portfolio#vera , Vera

Thank you so much Alex...this worked perfectly! Now I can manage multiple accounts easily!

tsbertalan commented 9 months ago

What is the difference between !*.domain.com and *.domain.com?

AlexVallat commented 9 months ago

Basically, !*.domain.com works, and *.domain.com doesn't.

The ! prefix means use patterns (ref), so without it just `.domain.comwould match a theoretical domain that was literallyhttps://*.domain.com`, which I'm pretty sure can't exist.