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

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -