Created
November 18, 2025 09:42
-
-
Save gsilvan/69c24ece8daa3aea1fd5dd9ea9fe4dc6 to your computer and use it in GitHub Desktop.
hide github copilot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==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