🧠Smart Block Duplicate : accept intentionally duplicated tabs !
For Chrome/Chromium ,
-
💥 Current bugged/issue:
Now, very inconvenient. completely impossible to open duplicate tab/page intentionally/manually, because open with Chrome/Chromium built-in itself, Instead of opening through the address bar. therefore, this problem can also be said to be a ''bug'' behavior.
-
❥ Expected behavior:
Can accept intentionally duplicated tabs. (change by default. or a ON/OFF option)
i.e. can accept open the following 2 behavior (built-in feature of Chrome/Chromium itself) .
- ❶: accept
Duplicateof Rclick contextMenu on the tab to manually/intentionally open a duplicate page. Yes, this is indeed a duplicate page, but it is manually and intentionally repeated by the user, so this behavior should be allowed by default! Will be very very smart/clever/convenient ❣💪

- ❷: Rclick
←or→button , show list of forward or backward history, right. then accept useMouse-middle-click(MButtonDown) orCtrl+Lclick(Ctrl+LButtonDown) to open page. In fact, for this case, the opened URL is definitely not a duplicate of the current URL. it is also manually and intentionally repeated by the user, so this behavior should be allowed by default! Will be very very smart/clever/convenient ❣💪

The above two built-in features of Chrome/Chromium will not work at all after enable DTC.
@dnknn Did you mean that DTC should block unexpectedly opened duplicated tabs (from links, url bar, or others) but accept intentionally duplicated tabs?
On Firefox, an addon can know a tab is intentionally duplicated or not. We can bundle any JSON-compatible value via the API browser.sessions.setTabValue(key, value) and duplicated tabs inherits bundled values from its original tab. So, if we set a "permanent id" for each tab and a newly opened tab has the value before we set it, it means that the tab is an intentionally duplicated tab. Here is an example:
https://github.com/piroor/aggregate-tabs-to-main-window/blob/566f2213127e754cf4fa984cf86d86ce2e2a09fe/background/background.js#L101
In addition, I(not developer) don't understand the API and javascript-code you mentioned, and I am not familiar with Firefox either.
but accept intentionally duplicated tabs?
👍👏💪 Yes, if can, that's great/perfect/Smart !
Hi~ @Peuj @piroor @yfdyh000 @perdolka Can you take a good look at this issue? Because now it is very inconvenient.
For Chrome, can you add this feature : accept intentionally duplicated tabs ❓
i.e. can accept open the following 2 behavior (built-in feature of Chrome/Chromium itself) .
- ❶: accept
Duplicateof Rclick contextMenu on the tab to manually/intentionally open a duplicate page. Yes, this is indeed a duplicate page, but it is manually and intentionally repeated by the user, so this behavior should be allowed by default! Will be very very smart/clever/convenient ❣💪

- ❷: Rclick
←or→button , show list of forward or backward history, right. then accept useMouse-middle-click(MButtonDown) orCtrl+Lclick(Ctrl+LButtonDown) to open page. In fact, for this case, the opened URL is definitely not a duplicate of the current URL. it is also manually and intentionally repeated by the user, so this behavior should be allowed by default! Will be very very smart/clever/convenient ❣💪

The above two built-in features of Chrome/Chromium will not work at all after enable DTC.
Now, very inconvenient. completely impossible to open duplicate tab/page intentionally/manually, because open with Chrome/Chromium built-in itself, Instead of opening through the address bar. therefore, this problem can also be said to be a ''bug'' behavior.
Can you let DTC to accept intentionally duplicated tabs (two built-in features of Chrome) ?
This is the only bad part of DTC expansion, i.e.
- Ø You can't open the ←backward/→forward history of the current page in a new tab at all.Ø
- Ø You can't open the "duplicate" of the tab-bar Right-click contextMenu at all.Ø
I'll add an option for this. Thanks @piroor for the example! I need to finish the refactoring first.