skeletonxf / duplicate-tab Goto Github PK
View Code? Open in Web Editor NEWDuplicates the current tab
License: GNU General Public License v3.0
Duplicates the current tab
License: GNU General Public License v3.0
async
/await
/??
/?.
executeScript
with history.back()
)Hello. I'm running the ESR release of Firefox (52.7.4) on Windows 10 and the keyboard shortcut simply does not seem to work. I first had to disable ALT-SHIFT-D in the "Web Developer" extension - that shortcut was bound to "Edit CSS". But even after doing that and restarting Firefox, ALT-SHIFT-D does not do anything at all. (and CTRL-SHIFT-D just brings up the "New Bookmarks" window. I have both the "Duplicate Tab 1" and "Duplicate Tab 2" boxes checked in the extension's options page.)
Thanks.
The interface for setting shortcuts via Firefox was a bit lacking in older versions of Firefox. In newer versions there's immediate feedback if you try to set a shortcut that is already taken and you can easily clear shortcuts.
The next release would probably be a good time to remove the shortcut setting UI from Duplicate Tab and replace it with a screenshot showing how to access the built in one. I don't want users to get confused about setting shortcuts for actions that are disabled, so I think the best choice is to remove the shortcut disabling code as well. Users can just remove the shortcuts keys directly now, and unlike Image Extract the shortcut actions aren't potentially destructive.
Feature request from reviews on amo
Would actually be really useful, I've found myself often wanting to get a container tab open of something I already clicked.
"
Shortcut does not work.
Windows 8.1x64, Fx 58.0x64, Defaults
"
https://addons.mozilla.org/en-GB/firefox/addon/duplicate_tab/reviews/
Most users have probably had the experience that they clicked on a link, but really wanted to control-click. So an undo method for this inadvertent action would be great addition, i.e. not just duplicate, but duplicate the tab, and direct the original tab back to the previous page, while bringing to foreground either the duplicate tab or the original (based on user preferences).
Possible?
PS: idea inspired by the Clone & Back and TabKeys Safari extensions by @canisbos
I would love a key that moves the current tab to a new window. True you could say it's not part of "duplicate-tab" but it's quite similar and I think many users would find it helpful.
Doesn't seem available yet
https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/commands
Appears that the only way to create commands to then register listeners to is to use the manifest.json at the moment.
Hi, first off, thanks for such a lovely and time-saving extension! Has saved me loads of time and keystrokes for my work testing needs.
I noticed an issue that, from what I can tell, seems to be resulting from loading a duplicated tab via this extension, since what I believe are native FF methods (e.g. right click on tab > "Duplicate Tab", or holding Option down while dragging a tab), don't seem to result in the problem.
When using this extension, YouTube video embeds don't seem to load. (Seem to happen regardless of using the "Duplicate tab" menu item in my FF toolbar overflow menu, or the keyboard shortcut I configured for this extension (Cmd+Shift+M).) For example, if I open https://developers.google.com/youtube/iframe_api_reference, then duplicate it via the extension, where the video originally was, there's now just an empty space. Even after hard-refreshing the page.
Just tried now with a Vimeo video, and it doesn't seem to be a problem with those, e.g. https://vimeo.zendesk.com/hc/en-us/articles/115007991707-Embeddable-playlists
I'm using Firefox 108.0.1 on MacOS Monterey 12.6 (apparently both of those wanting me to update them, heh, so I'll try to report back if things are different after doing so).
If you're having problems with Duplicate Tab please specify your operating system and Firefox version (Help -> About Firefox).
Firefox Version 1280.3 (64-bit)
Windows Version Windows 10 Home, 22H2
I'm not sure if the problem comes from Firefox, or perhaps this Extension. However, I am unable to Duplicate Tabs directly after the original. I've tested "Duplicate-Tab"'s options, and I've also gone through the suggested listed Firefox Flags, listed in the options, to make sure they were at "True" (browser.tabs.insertAfterCurrent, & browser.tabs.insertRelatedAfterCurrent).
This seems to be a recent phenomenon.
Can you add a tab context menuitem to perform the duplication so the toolbar button is not needed?
Hi - once again, this is a great extension and I appreciate your making it, Skeletonxf.
Would it be possible to make "Switch focus on duplicate" occur immediately? Otherwise, I click the button and then (if it's a slow page to load) wait a while, and then perhaps start working on a different tab. Then, maybe 10-30 seconds later (or more), suddenly I'm pulled back to the duplicated tab.
If the focus change happens immediately, I can decide whether to wait (if I see the duplicate tab is loading quickly) or else change focus back to another tab (and be assured that the focus won't be pulled away a few seconds later).
Thanks.
I would find it useful to be able to Duplicate Multiple Tabs, the Selected Tabs.
Thanks, Cheers!
It's very nice to be able to duplicate to a private window. However it is a shame that I have to press Alt-Shift-A then tab then enter. Please could we have a way to set a key to do it directly?
the last update has introduced a change in the extension's permissions. as you can see, firefox overflow menu indicates it with a green dot. yet, was unable to review the perms and take action upon it, which then keeps the green dot on screen. it seems that the permission tab of the extension does list the permissions that are needed like other extensions.
i am using firefox 119.0 (64-bit).
It would helpful if the duplicated tab honored the browser.tabs.insertRelatedAfterCurrent config setting. That is, put the new tab at the end of the tab list if the setting is "false", rather than placing it directly to the right of the original tab.
Thanks.
Firefox version: 95.0.2 (64-bit)
OS: MacOS Big Sur 11.6.2
When I right click on a tab and select "Duplicate Tab" it does nothing at all.
From the Firefox browser console, I'm seeing that just right clicking on a tab is raising an uncaught exception and when selecting "Duplicate Tab" another error is raised. I'm assuming that perhaps "Duplicate Tab" is a victim of the first exception here?
Here's the console output:
console-export-2022-1-5_9-31-0.txt
There's still about 25% of Duplicate Tab installations on older versions of Firefox than 77 at the time of writing, but in a year or so it should be possible to remove the legacy code for handling switch focus settings and instead use the duplicateProperties
which will prevent the motion caused by programmatically switching focus after the duplication in the current version of Duplicate Tab.
I have the last version of Firefox (110.0) and want use the new tab icon for duplicate the current tab, but there is not this option (only "Firefox Home (Default)" and "Black Page").
I remember this was possible some years ago with TabMixPlus extension: https://tabmixplus.org/support/viewtopic.php?t=3
I only found your extension for the new Firefox (with WebExtension).
Can you add the possibility of customize the icon used in toolbars? For example, I want use the icon "new tab" of my theme.
Great extension. I have been missing CloneWindow extension https://www.bigdropinc.com/resources/mozilla/. Would love to have the option in your DuplicateTab to use the default key action (CTRL-N, CTRL-T) to duplicate current tab into new tab or open new window with current tab.
I know you are not supposed to be able to remap the default FF keys in FF 60+ but Cadeyrn https://github.com/cadeyrn/newtaboverride was able to do it by hooking into builtin new tab routine.
This would make the extension much more flexible and conducive to my browsing habits.
With Firefox 66 providing a native UI to configure shortcut keyboard combinations, many users historically reporting that CTRL+SHIFT+D doesn't work, and now recently it seems to not even work on my Firefox on Ubuntu the keyboard shortcuts are going to need some changes.
The default shortcut for CTRL+SHIFT+D should be removed. This leaves the issue of migrating user shortcuts. Linux is only 12% of the WebExtension's userbase as of 2019/2/7 and therefore the remaining 86% of users already have ALT+SHIFT+D as the default key combination or are on Android where the APIs don't exist. I think the best course of action is to make the default shortcut ALT+SHIFT+D on all platforms by making the current CTRL+SHIFT+D shortcut unassigned by default and moving Linux's default over to ALT+SHIFT+D. From memory I believe this will leave any users with CTRL+SHIFT+D assigned manually with the keyboard shortcut staying assigned but I will ensure this remains working in a migration when I get around to coding.
The other issue that Firefox 66 introduces is users will be able to configure the keyboard shortcuts away from the addon's configuration UI - which means they will not see the buttons to enable keyboard shortcuts at all. I think the best course of action is to make all 3 keyboard shortcuts on by default (2 of which would be unassigned by default) and wait until the LTS version of Firefox supports native configuration before retiring disabling keyboard shortcuts. I do not want users to reassign a disabled keyboard shortcut and then get confused why it does not work.
The 3 keyboard shortcuts for the same action is becoming a bit useless now that shortcuts can be turned off by just making them unassigned and this will soon become a native feature of Firefox. I think once native reassigning of keyboard shortcuts is in the LTS Firefox I should remove the UI for assigning them from Duplicate Tab's settings page, and possibly delete the two redundant copies. I would like to know if any users actually make use of the ability to have multiple shortcuts for the same action but I do not want to add in phoning home code to find out programmatically for obvious privacy reasons. The safest option is obviously to leave in the redundancy but this may be confusing to new users. Ironically the fastest way to find out if users make use of the redundancy is to take away the feature and see if anyone drops a 1/5 review complaining, but I do not want to do this for obvious reasons. Perhaps I could add a survey link to the preferences page asking users if they do.
Edit: Removed CTRL+SHIFT+D and migrated settings in v1.9
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.