brcontainer / prevent-duplicate-tabs

Simple add-on/extension for prevent duplicate tabs
MIT License
62 stars 7 forks source link

Domain-level blacklist of duplicate tabs #9

Open turing opened 3 years ago

turing commented 3 years ago

In general, considering and even parsing the URI is useful when deciding whether to treat a tab as a duplicate. In web development, one might have 20 tabs open with similar URL structures that have only small URI differences.

But for some sites I would like to treat a domain match as a duplicate.

Facebook is a fantastic example. I don't want 16 facebook tabs open just because I happened to be viewing a group and wasn't on the base URL. Any time I enter a facebook.com I want that to direct me to the open facebook window. For a new tab (say, a link) that has a complex URL that matches the domain, I would want the new tab to be closed, and the old tab redirected to the incoming new URL.

This would be incredibly useful.

brcontainer commented 3 years ago

@turing A good suggestion is more specific than the idea of the addon itself, but it is reachable. I will take the time to work on it and let you know when I do.

Thanks!