GitHub PR Hide Commits

Hide commit and timeline noise in GitHub PRs

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

Advertisement:

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

Advertisement:

// ==UserScript==
// @name         GitHub PR Hide Commits
// @version      2026-06-10.1
// @description  Hide commit and timeline noise in GitHub PRs
// @match        https://github.com/*/*/pull/*
// @source       https://github.com/orgs/community/discussions/12985
// @license      MIT
// @namespace https://greasyfork.org/users/1611379
// ==/UserScript==

(function () {
    'use strict';

    const style = document.createElement('style');
    style.id = 'timeline-css';

    style.textContent = `
        /* Hide commit-related timeline events (GitHub internal event IDs) */
        .js-timeline-item[data-gid^="C_"],
        .js-timeline-item[data-gid^="CRE_"],
        .js-timeline-item[data-gid^="RRE_"],
        .js-timeline-item[data-gid^="RDE_"],
        .js-timeline-item[data-gid^="CTDE_"],
        .js-timeline-item[data-gid^="DEE_"],
        .js-timeline-item[data-gid^="DEME_"],
        .js-timeline-item[data-gid^="LE_"],
        .js-timeline-item[data-gid^="MIE_"] {
            display: none !important;
        }

        /* Hide commit push entries via URL pattern */
        .js-timeline-item:has(a[href*="/commit/"]) {
            display: none !important;
        }

        /* Hide "force pushed" noise */
        .js-timeline-item:has(svg[aria-label*="force"]) {
            display: none !important;
        }
    `;

    document.head.appendChild(style);
})();