You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature] Add an "Always allow" option for browser script execution #16705
Feedback: Add an "Always allow" option for browser script execution
Area: Browser tools → "Run scripts" setting
Summary
The "Run scripts" setting currently only offers "Ask every time" or "Never".
Please add an "Always allow" option, ideally with finer-grained controls.
Requested options
Always allow (global) — for users comfortable with models running scripts
on pages without a per-script prompt. Right now "Never" is the only hands-off
choice, which forces users to give up browser_evaluate entirely — even though
it's the only way to do things like count table rows, read structured data,
or inspect page state.
Per-site / per-domain allowlist — the main safety concern is arbitrary
untrusted pages. Allowing one-time approval of scripts for trusted sites
(my own dashboards, docs sites, etc.) would remove the repeated friction
where most prompts happen, while keeping the human check on unknown sites.
Auto-allow read-only scripts — a middle ground: automatically approve
scripts that only read the DOM (no fetch, no writes, no storage access),
and still prompt for anything with side effects or network access.
Why it matters
Every browser_evaluate call currently requires manual approval, which makes
scripted web tasks (scraping tables, checking computed styles, verifying page
state) much slower — while clicks, typing, and scrolling already run
automatically. The risk profile of a one-line read-only query is very different
from a script that exfiltrates data, but the current UI treats them the same.
I tasked an LLM to write and format this, yet the sentiment is all mine: you provided the llm the most powerful tool (a browser) yet decided it to weaken it. It makes no sense.
Hi @shimmyshimmer@danielhanchen, I'd like to work on this. I know Run scripts left out an Allow option on purpose (#13529), so here's my plan before I write anything: add "Always allow" to Settings > Browser > Run scripts (default stays "Ask every time", and the description warns that scripts then skip every other check), plus a per-site "Scripts" rule in Agent permissions (Ask / Always allow), so trusted sites like your own dashboards can skip the prompt while unknown sites still ask. I'd leave out the "auto-allow read-only scripts" idea, since a script's source can't reliably prove it has no side effects. Would you accept a PR along these lines?
Activity
debojyoti-dev commentedon Nov 4, 2026
Hi @shimmyshimmer @danielhanchen, I'd like to work on this. I know Run scripts left out an Allow option on purpose (#13529), so here's my plan before I write anything: add "Always allow" to Settings > Browser > Run scripts (default stays "Ask every time", and the description warns that scripts then skip every other check), plus a per-site "Scripts" rule in Agent permissions (Ask / Always allow), so trusted sites like your own dashboards can skip the prompt while unknown sites still ask. I'd leave out the "auto-allow read-only scripts" idea, since a script's source can't reliably prove it has no side effects. Would you accept a PR along these lines?
Studio: Always allow for browser scripts, globally or per site (unslo…