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

Undo Close Tab Middle Click

Open zeroibis opened this issue 6 years ago • 5 comments

Need a way to undo close tab when you middle click rather than create new tab.

zeroibis avatar Apr 06 '18 14:04 zeroibis

Ctrl+Shift+T?

Smile4ever avatar Apr 07 '18 05:04 Smile4ever

I tried using the solution here: https://gist.github.com/Sporif/db6b3440fba0b1bcf5477afacf93f875 https://github.com/Endor8/userChrome.js/blob/master/Firefox-57/middle-click-undo-close-tab.uc.js

However, it is not working. Do I possibly need to edit something to make it compatible with tabcenter-redux?

zeroibis avatar Apr 12 '18 13:04 zeroibis

It specially mentions it's not compatible with Firefox 57. This is because the script uses gBrowser to work, which is not available anymore. What about Ctrl+Shift+T?

Smile4ever avatar Apr 12 '18 19:04 Smile4ever

This used to be part of an extension in tab mix plus I believe. Starting in 57 it broke and this the linked code was made to run on css instead.

See: https://github.com/Sporif/firefox-quantum-userchromejs

zeroibis avatar Apr 12 '18 19:04 zeroibis

Oh, I didn't know that you could run this kind of code using userChrome.js. (not CSS, that's only for markup)

To make it compatible, the following probably needs updating for compatiblity with Tab Center Redux:

if (e.target.localName != 'tabs' && e.target.localName != 'toolbarbutton') 

Smile4ever avatar Apr 12 '18 20:04 Smile4ever