Comments (6)
@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.
I'll add an option for this.
Thanks @piroor for the example!
I need to finish the refactoring first.
from duplicate-tabs-closer.
but accept intentionally duplicated tabs?
👍👏💪 Yes, if can, that's great/perfect/Smart !
from duplicate-tabs-closer.
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.
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
←
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.
from duplicate-tabs-closer.
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.Ø
from duplicate-tabs-closer.
Related Issues (20)
- Whitelist or Blacklist Domains
- Feature Request: show that a link is already open in a tab
- Make the list of duplicates deeper – allow appearance of more than two HOT 1
- Don't close duplicate tab special cases (ctrl + k, or other manual override) HOT 1
- Containers disappeared from scope setting
- View page source tab is seen as a duplicate (again?)
- Feature request: Show URL in tooltip on hover
- support for firefox sync
- It doesn't close loopback address, `127.0.0.1`
- Duplicate tabs list should update after clicking Close all
- All browser dialogs immidiately auto-close when clicked HOT 1
- Option to exclude duplicates that are manually opened
- addon doesn't closes duplicate "about:blank" tabs
- Is Duplicate Tabs Closer extension still being maintained and updated? HOT 3
- Does not detect duplicate unloaded tabs.
- New tabs. HOT 2
- Close duplicates matching any site/url on user-provided list HOT 1
- Serious performance issues if user is crazy enough to have a LOT of tabs open. HOT 3
- Closed all tabs that were not loaded across all tab groups
- Fork Duplicate Tabs Closer and update to manifest v3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duplicate-tabs-closer.