duplicate-tabs-closer icon indicating copy to clipboard operation
duplicate-tabs-closer copied to clipboard

🧠Smart Block Duplicate : accept intentionally duplicated tabs !

Open dnknn opened this issue 5 years ago • 6 comments

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 Duplicate of 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-Duplicate

  • ❷: Rclick or button , show list of forward or backward history, right. then accept use Mouse-middle-click(MButtonDown) or Ctrl+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 ❣💪

history


The above two built-in features of Chrome/Chromium will not work at all after enable DTC.

dnknn avatar Aug 18 '20 17:08 dnknn

@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

piroor avatar Sep 06 '20 17:09 piroor

In addition, I(not developer) don't understand the API and javascript-code you mentioned, and I am not familiar with Firefox either.

dnknn avatar Sep 07 '20 09:09 dnknn

but accept intentionally duplicated tabs?

👍👏💪 Yes, if can, that's great/perfect/Smart !

dnknn avatar Sep 07 '20 19:09 dnknn

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 Duplicate of 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-Duplicate

  • ❷: Rclick or button , show list of forward or backward history, right. then accept use Mouse-middle-click(MButtonDown) or Ctrl+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 ❣💪

history


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.

dnknn avatar Nov 06 '20 18:11 dnknn

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.

  1. Ø You can't open the ←backward/→forward history of the current page in a new tab at all.Ø
  2. Ø You can't open the "duplicate" of the tab-bar Right-click contextMenu at all.Ø

dnknn avatar Jan 14 '21 22:01 dnknn

I'll add an option for this. Thanks @piroor for the example! I need to finish the refactoring first.

Peuj avatar Jan 15 '21 12:01 Peuj