Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Replicate Chrome's behavior when opening links from same opener tab

21 views
Skip to first unread message

João Ninguém

unread,
Mar 29, 2025, 9:30:51 PMMar 29
to AutoControl Community Forum

First of all, thank you for creating this fantastic extension. It’s unbelievable how much it optimizes and makes life easier for those of us who use it.

I frequently visit this forum to learn how to create new shortcuts and functions for Chrome, and until now, I’ve been able to do so just by reading the comments. However, this time, I couldn't do it. I’ve been trying for two days to create the following function without success.

To describe it, let me remind you how Chrome usually works. If you open a link from a tab by clicking the middle mouse button, it opens in a tab immediately to the right of the tab you clicked the link from (the opener tab). However, if you’ve already opened other links from that same opener tab, the new link opens not to the right of the opener tab but to the right of the last tab opened by the same opener tab. So what I want is to replicate this same behavior of Chrome when opening links from a specific tab: the first link I open from it should open in a tab right next to it; however, the new links opened from it should open to the right of the last link opened by the same opener tab. Could you help me create this shortcut? For instance, a shortcut that opens images from a page using the Copy Hovered  URL function.

João Ninguém

unread,
Mar 29, 2025, 9:46:42 PMMar 29
to AutoControl Community Forum
  Just to give you an idea of how I was trying to create this shortcut, I gave up trying to create it using only GUI actions and was trying to learn how to use the API function ACtl.getTabInfo. The idea was to get the ID and OpenerTabId of all the tabs to the right of the Current Tab and test which of these tabs had the OpenerTabId equal to the ID of the Current Tab; if no tab had the OpenerTabId equal to the Current Tab's ID, the image would open on a tab to the right of the Current Tab; however, if one or more tabs met this condition, the link would open to the right of the last tab with the same OpenerTabId as the Current Tab (or to the left of the first tab found with an OpenerTabId different from the Current Tab's ID). My problem was that I couldn’t execute a loop capable of performing this test, mainly because I couldn’t fully understand how to use the ACtl.getTabInfo function and the properties of the TabInfo object.  
Reply all
Reply to author
Forward
0 new messages