Close Left/Right Tab Noté 5 sur 5 étoiles

This is very good add on.
in this add on itself has scripts for "Close Left/Right TabS" that close all left/Right tabs, and I liked to have just close One Left/Right tab.
so as I can't find script for this issue, and I'm not expert but I write some Script:

Close Just One Left Tab:

Close Just One Right Tab:
var index = gBrowser.tabContainer.childNodes.length;
if(tab < (index-1)){

this code works but if you can make it better and place it on ur website ;)

Cette critique concerne une version précédente du module (