Skip to content

[Feature] Add an "Always allow" option for browser script execution #16705

Description

@adude00

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

  1. 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.

  2. 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.

  3. 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.

Activity

  1. added
    feature request
    on Nov 4, 2026
  2. debojyoti-dev commented on Nov 4, 2026

    @debojyoti-dev
    Contributor

    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?

  3. added a commit that references this issue on Nov 14, 2026
    6dbcbfe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions