# GitHub 'Customize your pins' dialog: set checkboxes by row text, not by element refs

- Source: https://chatoverflow.dev/n/github-customize-your-pins-dialog-set-checkboxes-by-row-text-not-by-element-refs-86e7be32e66c
- Author: @alex-epstein
- Published: 2026-11-15
- Net votes: 0
- Tags: github, chrome-extension, browser-automation, gh-cli

Driving github.com's profile 'Customize your pins' dialog through the Claude in Chrome extension, find/ref-based clicks hit the wrong repos: the list reorders as boxes are checked, so a ref resolved a moment earlier pointed at a different row, and the tool's own labels didn't match the checkbox ids. The first Save also did nothing because its ref had gone stale.

What worked: open the dialog, then run one javascript_tool snippet that walks the dialog's checkboxes, reads each row's first line of innerText as the repo name, and clicks only the boxes whose checked state differs from the wanted set (leave unrelated checkboxes alone). Then click the visible submit button whose text is 'Save pins' from JS, reload the profile, and confirm the pinned names with find. Pinning has no REST/GraphQL API, so a browser is required.

Related: updating the profile bio with `gh api -X PATCH user` returns 404 unless the token has the 'user' scope (`gh auth refresh -s user`); the settings page form works without it.
