Skip to content

Instantly share code, notes, and snippets.

@gsilvan
Created November 18, 2025 09:42
Show Gist options
  • Select an option

  • Save gsilvan/69c24ece8daa3aea1fd5dd9ea9fe4dc6 to your computer and use it in GitHub Desktop.

Select an option

Save gsilvan/69c24ece8daa3aea1fd5dd9ea9fe4dc6 to your computer and use it in GitHub Desktop.
hide github copilot
// ==UserScript==
// @name Hide Copilot
// @namespace Violentmonkey Scripts
// @match https://github.com/*
// @grant none
// @run-at document-start
// @version 1.0
// @author -
// @description 18.11.2025, 10:25:27
// ==/UserScript==
function hide() {
const selectors = [
".copilotPreview__container",
".AppHeader-CopilotChat",
];
selectors.forEach(selector => {
document.querySelectorAll(selector).forEach(element => element.remove())
});
}
new MutationObserver(hide).observe(document.body, { attributes: true, childList: true, subtree: true });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment