Skip to content

Only handle target="_blank" links in the page script - #1

Merged
3vcloud merged 2 commits into
mainfrom
graphics-and-link-handling
Nov 7, 2026
Merged

3vcloud merged 2 commits into
mainfrom
graphics-and-link-handling

Conversation

@3vcloud

@3vcloud 3vcloud commented Nov 7, 2026

Copy link
Copy Markdown
Member

Summary

  • The page script now intercepts only links with target="_blank". Other links are left to the page.
  • _blank links to other sites still open in the default browser, and same-site _blank links still stay in the window.

Behaviour change

Plain links to other sites (no target="_blank") now navigate this window away from Discord instead of opening in the browser. This was a deliberate choice.

Testing

  • The page script parses (checked with node --check).
  • Clicking links on the rebuilt Linux binary is not yet tested.

🤖 Generated with Claude Code

The web process loaded Mesa's EGL next to NVIDIA's, which pulled Mesa's gallium and LLVM in, about 50 MB of resident memory.
configureGraphics() points EGL at the NVIDIA vendor when its driver loads, and leaves the setting alone when the user has set one.

configureMemoryPressure() sets WebKit's memory-pressure thresholds when DW_MEMORY_LIMIT_MB is set. It is off by default and was
only used for measurement: it did not change the footprint at startup.

The page script now intercepts only links with target="_blank". Every other link is left to the page, so external links that
are not new windows navigate this window.
Keeps the link handling from the previous commit. The NVIDIA EGL selection and the DW_MEMORY_LIMIT_MB hook are taken out:
the hook did not change the startup footprint, and the EGL change is not in this branch.
@3vcloud
3vcloud merged commit 469e5d8 into main Nov 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant