The select-after-closing-current addon is a way to pullout a random tab out of a window, which will not change the tab that was visible in that window.

However, what it does is any closed tab, it will select the previously seen tab no matter what.

The reason for my question, I would like to know if it is possible for the add-on to have a different behaviour for closed tabs from pulled out tabs.

I wish, when I close a tab, to always select the tab to the right. But when I pullout a tab, I wish to always see the tab that was visible before the pullout.