Skip to content

Copilot removal #8004

Closed as not planned
Closed as not planned

Description

@GrahamCampbell

Description

Remove all copilot buttons from the UI, including the explain on actions logs.

Example URLs

https://github.com/

Activity

  1. fregante commented on Nov 4, 2024

    @fregante
    Member

    It's annoying to me too, but unfortunately we can't just hide a whole feature that presumably is good/useful.

    I was actually thinking about introducing this as an "opt-in" feature just for myself, but ended up just using Safari's "hide distracting elements" feature to hide each button.

    If you write a userstyle or uBlock-style selector list, please post it below so it can be useful to others.

  2. GrahamCampbell commented on Nov 4, 2024

    @GrahamCampbell
    Author

    Yeh, I've adblocked it too, but I think it may be useful to have this as part of this, for those who want an easy way to block it, and future additional copilot things.

  3. fregante commented on Nov 6, 2024

    @fregante
    Member

    Opt-in features don't belong to Refined GitHub. You can use this snippet for now, feel free to add more selectors below

    .AppHeader-CopilotChat,
    [partial-name="copilot-code-chat"],
    #copilot-floating-button {
    	display: none !important;
    }
  4. cyb3rko commented on Dec 25, 2024

    @cyb3rko

    To also remove the chat on the homepage the following worked for me:

    .AppHeader-CopilotChat, .copilotPreview__container, #copilot-floating-button {
        display: none !important;
    }
  5. mschae23 commented on Dec 28, 2024

    @mschae23

    If you have uBlock Origin, you can hide the Copilot elements and block the JS scripts used for them with this:

    github.com##.copilotPreview__container
    github.com##.AppHeader-CopilotChat
    github.com##.react-code-size-details-in-header > :matches-attr(data-testid="copilot-popover-button"):upward(1)
    ||github.com/github-copilot/
    ||github.githubassets.com/assets/*copilot$script
    github.com##.feed-content:style(margin-top: 0 !important;)
  6. kidonng commented on Jan 7, 2025

    @kidonng
    Member

    To also remove the chat on the homepage

    Since it has not been mentioned here, the dashboard/homepage one can be disabled in GitHub's settings:

    https://github.com/settings/copilot#:~:text=Dashboard%20entry%20point

    CleanShot 2025-01-07 at 23 01 53@2x

  7. dario-piotrowicz commented on Jan 21, 2025

    @dario-piotrowicz
  8. fregante commented on Jan 23, 2025

    @fregante
  9. lishaduck commented on Nov 14, 2025

    @lishaduck

    I made these filters to get rid of the banner hanging out on PRs & the agent sessions on the homepage (which the dashboard entry point setting doesn't fix).

    ! Nov 14, 2025 https://github.com
    github.com##.js-discussion > div:has(div > div:has-text("Mention @copilot in a comment to make changes to this pull request."))
    ! Nov 14, 2025 https://github.com
    github.com##react-partial[partial-name="dashboard-lists"] > div > div:has(div > div > h3 > div:has-text("Agent sessions") )
  10. SunsetTechuila commented on Mar 25, 2026

    @SunsetTechuila
    Contributor

    unfortunately we can't just hide a whole feature that presumably is good/useful.

    What if we hide only duplicates? There are a lot of them

    Image

    And some very distracting and not very useful elements?

    Image
  11. kidonng commented on Mar 25, 2026

    @kidonng
    Member

    For the duplicate agent button, I would approve adding it into clean-repo-filelist-actions (which BTW seems broken)

  12. Insprill commented on Mar 26, 2026

    @Insprill

    For anyone finding this who wants to block everything Copilot-related, there's a UBlock filter list you can use instead: https://codeberg.org/rossabaker/github-copilot-filters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions