brcontainer / prevent-duplicate-tabs

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

Ignore Hash Per Domain #42

Open johnaweiss opened 3 weeks ago

johnaweiss commented 3 weeks ago

Does it depend on a specific browser?

No response

Related to a problem?

You have option to disable all dupe-prevention per domain. But you don't offer ability to ignore Hash per domain. With most sites, i need to treat some urls with different hash as a dupe. But on a couple of sites, i need to treat same url with different hash as a not a dupe.

Describe the solution you'd like

Ability to enable hash per domain (or per base url).

Describe alternatives you've considered

No response

Additional context

This affects Azure cloud, in which all pages are just a different hash.

Will the API support this feature?

brcontainer commented 2 weeks ago

Will the API support this feature?

* [x]  I don't know what this means

New features require the webextension API, which is similar for all browsers (with some variations) to support the request for such a new feature. Sometimes people ask for features that go beyond the API, and most of them become impossible, so it is requested that before requesting a new feature, understand this. Exactly as explained in the instruction:

I confirm that the suggested feature requested is within the possibilities of what the Chrome extensions API allows (https://developer.chrome.com/docs/extensions/reference/).


Regarding specific URL behaviors, I'm working on it, according to the task list:

Thanks

johnaweiss commented 2 weeks ago

Thanks!

On Fri, Jun 21, 2024, 10:38 AM Guilherme Nascimento < @.***> wrote:

Will the API support this feature?

  • [x] I don't know what this means

New features require the webextension API, which is similar for all browsers (with some variations) to support the request for such a new feature. Sometimes people ask for features that go beyond the API, and most of them become impossible, so it is requested that before requesting a new feature, understand this. Exactly as explained in the instruction:

I confirm that the suggested feature requested is within the possibilities of what the Chrome extensions API allows ( https://developer.chrome.com/docs/extensions/reference/).


Regarding specific URL behaviors, I'm working on it, according to the task list:

Thanks

— Reply to this email directly, view it on GitHub https://github.com/brcontainer/prevent-duplicate-tabs/issues/42#issuecomment-2183169606, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMV6UUKOX3BS3UPLGES5YJ3ZIRQKJAVCNFSM6AAAAABJHIDZQWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBTGE3DSNRQGY . You are receiving this because you authored the thread.Message ID: @.***>

brcontainer commented 2 weeks ago

Note that for now you can enable the option HASH:

If disabled (default) it's ignore hash in URLs, then this http://foo/bar#baz will be equivalent to this http://foo/bar, If enabled, http://foo/bar#baz will be different from http://foo/bar and therefore will not consider it a duplicate, and will not close the tab

image