fix(extension): restore AI Response Content capture by patching DOM extraction, CSP connect-src, and TS regex literal serialization
This commit is contained in:
6
scratch_btn2.py
Normal file
6
scratch_btn2.py
Normal file
@@ -0,0 +1,6 @@
|
||||
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}")
|
||||
Reference in New Issue
Block a user