Exemplo n.º 1
0
def option_focus(args):
    if args['ID'][0] == 'LAST':
        li = ff.get_tab_list()
        n = len(li) - 1
    else:
        n = int(args['ID'][0])
    ff.put_focus_on_tab(n)
Exemplo n.º 2
0
def option_all():
    li = ff.get_tab_list()
    width = len(str(len(li)))
    for d in li:
        print("{index}: {url} ({title})".format(index=str(
            d['index']).rjust(width),
                                                url=d['url'],
                                                title=d['title']))
Exemplo n.º 3
0
def option_title():
    li = ff.get_tab_list()
    width = len(str(len(li)))
    for d in li:
        print("{index}: {title}".format(index=str(d['index']).rjust(width),
                                        title=d['title']))
Exemplo n.º 4
0
def option_list():
    li = ff.get_tab_list()
    for d in li:
        print(d['url'])
Exemplo n.º 5
0
def option_raw():
    for e in ff.get_tab_list():
        print(e)