brcontainer / prevent-duplicate-tabs

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

FR: Exception list / Middle click #23

Open vendillah opened 1 year ago

vendillah commented 1 year ago

Is your feature request related to a problem? Please describe. Sometimes I need to have duplicates, because of the design of a website; it's when information is spread over multiple pages through some clicks often, without the url changing. (Which actually is a bad trend on the web, but well...) What I did before was just press middle click for place I had to visit, navigated to it and left it there. This saves me time from constantly navigating to the same pages if I'll be using these certain pages of the same url for hours.

Btw, now middle click is obviously a pointless functionality, so I don't think it makes much sense to allow a page to be opened and close it right after - maybe the middle click event can be caught so it doesn't even open a page? But then, it may be less visible this extension was responsible for that. Just some thought.

Describe the solution you'd like So it would be nice if we could blacklist certain domains or even urls from a page (if not with regex, but I'm fine with simple stuff).

Describe alternatives you've considered Alternatively, you could allow user to fully use middle-click reload as an exception, if not as a preference in the extension.

Additional context /

Disclaimer: I'm just started trying out your extension. If it turns out not to fit my workflow, I may as well not use it, but I felt it was useful reporting this limitation. To me, it seems useful for when I'm searching for a long time for a (solution to a) specific (programming) problem and end up opening the same page twice, from my bookmarks for example, or from a search page. Those would be sites/pages I'd maybe never visit again and having them not duplicate, would make it easier not to get too many tabs open, since I usually open every page in a new tab (again, with middle click :p) instead of clicking through.

brcontainer commented 1 year ago

Sometimes I need to have duplicates, because of the design of a website; it's when information is spread over multiple pages through some clicks often, without the url changing. (Which actually is a bad trend on the web, but well...) What I did before was just press middle click for place I had to visit, navigated to it and left it there. This saves me time from constantly navigating to the same pages if I'll be using these certain pages of the same url for hours.

You can ignore host or specific url:

image

Btw, now middle click is obviously a pointless functionality, so I don't think it makes much sense to allow a page to be opened and close it right after - maybe the middle click event can be caught so it doesn't even open a page? But then, it may be less visible this extension was responsible for that. Just some thought.

It's an interesting idea for the future, I'll add it to the backlog (to assess if in fact it won't conflict with different browsers, systems or configurations of different environments).