if tabGUID does not match then more than one tab and GUID Window.addEventListener("storage", storage_Handler, false) If (sessionStorage = null) sessionStorage = tab_GUID() get (set if not) tab GUID and store in tab session Here's the JS I have in master page, plus in the login page I have a localStorage.Clear to clear last tab from previous session. I haven't yet got to fixing it so the last tab used get's notification, work in progress. So if I have three tabs A,B,C then click something in tab C, tab A and B detect another tab is open and warn user of this. The listener then compares the tabs GUID to the one written to site storage and if they differ then it knows more than one tab is open. The using an event listener on the storage area I write the tab GUID to the sites localStorage area. The master page layout creates a tab GUID and stores it in sessionStorage area of the tab. The feature is not as elegant as that of the Vivaldi web browser, but is useful nevertheless as it makes it easier to display multiple tabs side-by-side on the screen.I've created a simple solution for this. Tile Tabs WE adds tab splitting functionality to Firefox, Google Chrome and most Chromium-based web browsers. You may also resize tiles while keeping the layout intact. The feature can be useful to compare two pages or sites, or two versions of an article to find differences. When you use the scrollbar in one tab, all other tabs are scrolled as well provided that this is possible. Scroll sync synchronizes scrolling between all tabs of the layout. You can use it to add or remove tiles, change the layout, bookmark it, or enable scroll sync. If there are not enough tabs, blank tabs are created.Ī small extension icon is displayed in the top left corner on each tab used in the layout. If there are not enough tabs on the right, tabs on the left will be selected as well. Otherwise, it is the active tab and tabs to its right that are selected.by holding Ctrl and left-clicking on tabs, these are tiled. The extension selects tabs based on the following logic: A second click returns the tiles to their parent window. It uses the "default" tile layout for the operation. To invoke the functionality, click on the extension icon. The number of tiles depends on the screen size to a large degree. The extension will place the tiles in the location of the original browser window. The default is two tabs, but you can go as high as displaying all tabs in windows side-by-side on the screen. Custom layouts can be saved, and exported and imported. The layout determines the number of tabs that the extension will split in windows on the screen. Here you may switch the layout and even create layouts of your own. Once installed, right-click on the extension icon to display its menu. The extension adds a single icon to the browser's toolbar, but you may control it with keyboard shortcuts or context menus as well. Vivaldi browser users don't need it as the browser supports tab tiling functionality natively. The extension should work in other Chromium-based browsers such as Microsoft Edge or Brave as well. The very first thing you do is install the extension in the Firefox or Google Chrome web browser. The change impacts the display, as windows do come with window controls that take up space. WebExtensions APIs don't provide options to display multiple sites in a tab, and that is the reason why Tile Tabs WE uses the next best thing, windows, for its operations. Tile Tabs WE is the successor of the extension, and since it is based on WebExtensions, compatible with all recent versions of Mozilla Firefox and Google Chrome.
0 Comments
Leave a Reply. |