tabcenter-redux
tabcenter-redux copied to clipboard
Undo Close Tab Middle Click
Need a way to undo close tab when you middle click rather than create new tab.
Ctrl+Shift+T?
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?
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?
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
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')