Skip to content

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

Description

@fregante

Description

Image

This code handles alt-clicks on the menu item:

function openNewIssuePageInNewTab(event: DelegateEvent<MouseEvent, HTMLElement>): void {
event.stopImmediatePropagation();
event.preventDefault();
window.open(buildRepoUrl('issues/new/choose'), '_blank');
}
function initNewIssueOnce(): void {
onAlteredClick(
[
'li[aria-keyshortcuts="n"]:has(.octicon-issue-opened)',
'button[class*="GlobalCreateMenu-module__actionMenuButton"]',
],
openNewIssuePageInNewTab,
);
}

but our features/helpers don't apply to that modal so we should disable the modal altogether for Refined GitHub repos.

Example URLs

Here

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wantedmetaRelated to Refined GitHub itselfsmallIssues that new contributors can pick up

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions