Skip to content

Bypass the new issue modal on Refined GitHub repositories - #9968

Open
shixi-li wants to merge 1 commit into
refined-github:mainfrom
shixi-li:codex/bypass-new-issue-modal
Open

Bypass the new issue modal on Refined GitHub repositories#9968
shixi-li wants to merge 1 commit into
refined-github:mainfrom
shixi-li:codex/bypass-new-issue-modal

Conversation

@shixi-li

@shixi-li shixi-li commented Aug 11, 2026

Copy link
Copy Markdown

Closes #9954

What changed

  • Intercept unmodified clicks on the global New issue action while browsing the Refined GitHub repository.
  • Navigate directly to /issues/new/choose so the full-page issue form and its Refined GitHub helpers can run.
  • Preserve modifier-key and middle-click behavior through the existing new-tab handling.

Why

GitHub's repository-and-template picker modal prevents rgh-improve-new-issue-form helpers from running. This keeps the behavior scoped to the Refined GitHub repository and leaves other repositories unchanged.

Validation

  • Added a DOM regression test covering both current GitHub selectors, event cancellation, navigation, and altered-click preservation.
  • Confirmed the test fails on the unchanged base and passes with this patch.
  • npm test: 567 passed, 28 skipped.
  • npm run format:check passed.

Test URLs

Screencast

A normal click on the global New issue action now bypasses GitHub's repository picker modal and opens /issues/new/choose directly, allowing rgh-improve-new-issue-form to run.

Screencast showing the New issue modal bypass and the enhanced bug-report form

The screencast also shows the helper converting the cache-refresh link into a button, auto-filling the local development version, and checking the configured-token confirmation.

Booger poem

A booger blocked the modal's way,
One plain click swept the goo away.

@github-actions github-actions Bot changed the title AI: Bypass the New issue modal on Refined GitHub repositories AI SPAM Aug 11, 2026
@github-actions github-actions Bot closed this Aug 11, 2026
@github-actions

Copy link
Copy Markdown

This looks like an AI-generated PR, so we're preemptively closing it. If you're human and tested it, include a screenshot/video/gif of the working PR and we can reopen the PR. Don't open more PRs until this one is resolved.

@github-actions github-actions Bot added enhancement meta Related to Refined GitHub itself labels Aug 11, 2026
@fregante

Copy link
Copy Markdown
Member

The code looks good. If you tested this please include a screencast or gif of this working. You can use LICEcap for example. Untested PRs are not entertained.

@shixi-li shixi-li changed the title AI SPAM Bypass the new issue modal on Refined GitHub repositories Aug 12, 2026
@shixi-li

Copy link
Copy Markdown
Author

I'm the human author and have now tested this locally on macOS with the unpacked extension built from this branch.

The screencast added to the PR description shows that a normal click on the global New issue action bypasses GitHub's repository picker modal and opens the full-page template chooser. It then opens the bug-report form, where rgh-improve-new-issue-form converts the cache-refresh link into a button, auto-fills the local development version, and checks the configured-token confirmation.

The automated test also covers both current selectors and preserves modifier-key/middle-click behavior.

Could you please reopen the PR?

@fregante fregante reopened this Aug 12, 2026
@shixi-li
shixi-li marked this pull request as ready for review August 12, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement meta Related to Refined GitHub itself

Development

Successfully merging this pull request may close these issues.

rgh-improve-new-issue-form should break the "New issue" modal on Refined GitHub repositories

2 participants