We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gesturefy has "Remove left tabs" and "Remove right tabs", which will close all other tabs before or after the current tab.
Is it possible to add new actions like "Remove left tab" and "Remove right tab", which will close only one neighbour tab? Thanks.
The text was updated successfully, but these errors were encountered:
Once you received the update to version 3.0.3 you can use the following code as a user script.
Remove right tab:
const queryTabs = API.tabs.query({ hidden: false, currentWindow: true }); queryTabs.then((tabs) => { const activeTabIndex = tabs.findIndex(tab => tab.active === true); const nextTab = tabs[activeTabIndex + 1] if (nextTab) { API.tabs.remove(nextTab.id); } });
Remove left tab:
const queryTabs = API.tabs.query({ hidden: false, currentWindow: true }); queryTabs.then((tabs) => { const activeTabIndex = tabs.findIndex(tab => tab.active === true); const previousTab = tabs[activeTabIndex - 1] if (previousTab) { API.tabs.remove(previousTab.id); } });
Sorry, something went wrong.
No branches or pull requests
Gesturefy has "Remove left tabs" and "Remove right tabs", which will close all other tabs before or after the current tab.
Is it possible to add new actions like "Remove left tab" and "Remove right tab", which will close only one neighbour tab? Thanks.
The text was updated successfully, but these errors were encountered: