7 lines
499 B
Python
7 lines
499 B
Python
import json, re; d=json.load(open(r'C:\Users\Variet-Worker\.gemini\antigravity\bridge\deep-inspect-result.json', encoding='utf-8', errors='ignore'))
|
|
approveRe=[re.compile(r'^(?:Always\s*)?Run\b', re.IGNORECASE), re.compile(r'^(?:Always\s*)?Accept\b', re.IGNORECASE)]
|
|
for b in d['nodes'][0]['buttons']:
|
|
t = b['text'].strip()
|
|
t = re.sub(r'(?:keyboard_arrow_up|keyboard_arrow_down)$', '', t, flags=re.IGNORECASE).strip()
|
|
if any(p.match(t) for p in approveRe): print(f"MATCH: {b['text']} -> {t}")
|