6 db = sqlite3.connect(".config/chromium/Default/Local Storage/https_ingress.com_0.localstorage")
8 c.execute('select value from ItemTable where key="plugin-uniques-data"')
11 data = json.loads(row.decode('utf-16le'))
14 visited = {k: v for k, v in data.items() if v['visited'] }
15 captured = {k: v for k, v in data.items() if v['captured'] }
16 print("portals: "+str(len(data))+" - visited: "+str(len(visited))+" - captured: "+str(len(captured)))
19 wtf = {k: v for k, v in data.items() if not v['visited'] }
20 print(json.dumps(wtf))
23 for k, v in wtf.items():
24 print('j=JSON.parse(localStorage[\\"plugin-uniques-data\\"]);delete j[\\"'+k+'\\"];localStorage[\\"plugin-uniques-data\\"]=JSON.stringify(j);')