tabcenter-redux icon indicating copy to clipboard operation
tabcenter-redux copied to clipboard

Add warning to Reload All Tabs / Close Other Tab

Open noscript opened this issue 7 years ago • 3 comments

By accident right clicking on the tab bar can initiate a destructive action, with no way to undo it. It would be great to incorporate some kind of confirmation dialog for actions that affect multiple tabs. IIRC Firefox has such for horizontal tabs.

noscript avatar Apr 24 '18 13:04 noscript

Related: #93

Seems like it's possible to add with only JavaScript: https://github.com/piroor/treestyletab/issues/1752#ref-commit-dbd7414

Keith94 avatar Apr 24 '18 15:04 Keith94

It's possible to remove such dangerous menu entries with CSS.

/* Remove "Reload All Tabs", "Close Tabs Underneath" and "Close Other Tabs" */
.contextmenu li:nth-child(8), .contextmenu li:nth-child(9), .contextmenu li:nth-child(10) {
    display: none;
}

Not the same as a warning, but since I never needed these anyway, it works for me.

haarp avatar Aug 14 '18 08:08 haarp

@haarp that's a good enough approach

noscript avatar Sep 10 '18 07:09 noscript