Code Monkey home page Code Monkey logo

Comments (6)

piroor avatar piroor commented on July 18, 2024 4

@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

from duplicate-tabs-closer.

Peuj avatar Peuj commented on July 18, 2024 4

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

from duplicate-tabs-closer.

dnknn avatar dnknn commented on July 18, 2024 1

but accept intentionally duplicated tabs?

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

from duplicate-tabs-closer.

dnknn avatar dnknn commented on July 18, 2024

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

from duplicate-tabs-closer.

dnknn avatar dnknn commented on July 18, 2024

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.

from duplicate-tabs-closer.

dnknn avatar dnknn commented on July 18, 2024

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.Ø

from duplicate-tabs-closer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.