Skip to content

Instantly share code, notes, and snippets.

@Swyter
Last active December 13, 2025 01:31
Show Gist options
  • Select an option

  • Save Swyter/7b7da983f5dd025229d116b8468cea99 to your computer and use it in GitHub Desktop.

Select an option

Save Swyter/7b7da983f5dd025229d116b8468cea99 to your computer and use it in GitHub Desktop.
Remove the «Code with Copilot Agent Mode» / «Code with agent mode» / «Your Copilot» button spam from GitHub issues

Install uBlock Origin and add this rule to your filters, blocking this cruft even when Copilot has been technically fully-disabled site-wide in your GitHub account options:

github.com##button[data-testid='open-in-copilot-agent-button']:upward(div[data-testid='sidebar-development-section']) /* swy: 'Code with agent mode' button in every issue */
github.com##a[href='/settings/copilot'] svg.octicon-copilot:upward(li[class*='prc-ActionList-ActionListItem'])        /* swy: 'Your Copilot' option on sidebar */
@elelay
Copy link

elelay commented Oct 6, 2025

thanks

@mghenderson
Copy link

Seems the never ending war to force AI continues, the first rule was non-functional for me, I'm guessing they've updated the HTML in the last couple months.

github.com##button[data-testid='open-in-copilot-agent-button']:upward(div[data-testid='sidebar-development-section']) 

@Swyter
Copy link
Author

Swyter commented Dec 13, 2025

Yeah, thanks! Updated it. They've been overhauling and renaming the entire "agent" thing a couple of times to get rid of the Copilot branding.

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