Changing firefox tab index -
i'm working on addon , change index of tab. possible in xul, know how make jetpack have work xul. idea ? thanks
it absolutely is.
const {classes: cc, interfaces: ci, utils: cu} = components; cu.import('resource://gre/modules/services.jsm'); var mostrecentchromebrowserwin = services.wm.getmostrecentwindow('navigator:browser'); if (mostrecentchromebrowserwin.gbrowser && mostrecentchromebrowserwin.gbrowser.tabcontainer) { mostrecentchromebrowserwin.gbrowser.selectedtab = mostrecentchromebrowserwin.gbrowser.tabcontainer.childnodes[0]; //make 0 here there number, starts 0 }
Comments
Post a Comment