Skip to content

Unwrap "Contribute" (compare, open PR) popup #9566

Closed

Description

@fregante

Description

Useless dropdown, both options point to the same page, except "create pull request" pre-clicks/expands the "create PR" form. Also the "compare" link is exactly the same as "1 commit ahead" 🤦‍♂️

Image

We can replace the dropdown with a "Open pull request" button. Not sure where to place this though since unwrap-unnecessary-dropdowns doesn't exist anymore. Maybe just unwrap-contribute and call it a day.

Example URLs

https://github.com/refined-github/sandbox/tree/restore-file-edge-cases

Note that sometimes there are no buttons inside, so this should be skipped:

https://github.com/refined-github/sandbox/tree/behind

Image

Activity

  1. added
    small
    and removed on Jun 1, 2026
  2. fregante commented on Jun 1, 2026

    @fregante
    MemberAuthor

    The feature is pretty straightforward, PR welcome to add unwrap-contribute:

    1. observe('[class*="BranchInfoBar-module__branchInfoBarBase"] button[aria-haspopup="true"]')
    2. look for "commits ahead" link and check for .textContent
    3. replaceWith(<button some JSX inline with link from "commits ahead">)
  3. fregante commented on Jun 8, 2026

    @fregante
    MemberAuthor

    Not worth it.

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

    acceptedenhancementsmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions