// ==UserScript== // @name Hide GitHub Copilot reviews // @description Declutter GitHub pull requests by hiding reviews from Copilot // @version 1 // @namespace https://github.com/*/*/pull/* // @include https://github.com/*/*/pull/* // ==/UserScript== function css(input) { return input.replace(/\s+/g, ' ') } const COPILOT_HIDDEN_REVIEW_CSS = css(` display: flex; align-items: center; gap: 7px; padding: 10px; `) const COPILOT_HIDDEN_REVIEW_TEXT_CSS = css(` opacity: 0.85 `) const SHOW_ANYWAY_BUTTON_CSS = css(` border-radius: 5px; border: none; padding: 5px; `) const SHOW_COPILOT_REVIEWS_QUERY = 'show_copilot_reviews=true' const COPILOT_REVIEW_HIDDEN_DIV = `