Skip to content

[ Feature request: userscript support (Tampermonkey-style) in the embedded browser]: #45648

Description

Problem or use case

▎
▎ I use Orca's embedded browser to view and test local web pages and external sites. Extension pages (chrome-extension://…/options.html) can be opened in a tab, but userscripts are not executed in web pages. For example, GM_info is undefined on any page, and a Tampermonkey script that adds buttons to a site never runs.
▎
▎ Request: either support for userscript managers (Tampermonkey/Violentmonkey) in the embedded browser, or a built-in way to register scripts per URL pattern that run at document-idle with GM_xmlhttpRequest and @connect rules.
▎
▎ Use case: small personal helper scripts for sites I open next to my agent sessions. Today I have to inject the script by hand via orca eval after every reload.
▎
▎ Environment: Orca on macOS, embedded browser, default profile.

Proposed solution

Support userscript managers (Tampermonkey/Violentmonkey) in the embedded browser, or add a built-in feature to register userscripts per URL pattern. Scripts should run at document-idle and support GM_xmlhttpRequest with @connect rules, so a script can call a local service (127.0.0.1).

Alternatives or additional context

Currently extension pages (chrome-extension://…/options.html) can be opened in a tab, but no script runs in web pages: GM_info is undefined and a Tampermonkey script that adds buttons to a site never executes.

Workaround today: inject the script manually with orca eval after every page load. It is lost on reload and has to be repeated.

Use case: small personal helper scripts for sites opened next to agent sessions (adding buttons to a TV-guide site that talk to a local service).

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

    enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions