GitHub Red Issues

Turns the issue color of closed issues from purple back to red - back reddish color icon for closed github issues.

Tính đến 18-08-2022. Xem phiên bản mới nhất.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

Bạn sẽ cần cài đặt một tiện ích mở rộng như Tampermonkey hoặc Violentmonkey để cài đặt kịch bản này.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

/* ==UserStyle==
@name           GitHub Red Issues
@namespace      github.com/openstyles/stylus
@version        1.0.23
@description    Turns the issue color of closed issues from purple back to red - back reddish color icon for closed github issues.
@author         Katsute, kidonng, krystian3w, iam-py-test, obfuscatedgenerated
@license        CC BY-NC-SA 4.0 https://creativecommons.org/licenses/by-nc-sa/4.0/
==/UserStyle== */
@-moz-document domain("github.com"), domain("github-com.translate.goog"), regexp("^https?:\\/\\/translated\\.turbopages\\.org\\/proxy_u\\/.*/https\\/github\\.com\\/.*") {
/* https://raw.githubusercontent.com/Katsute/GitHub-Red-Issues/main/src/style.css */
/* Copyright (C) 2022 Katsute <https://github.com/Katsute> */

:root {
    --rissue-pull-merged     : var(--color-done-emphasis, #8957e5);
    --rissue-pull-merged-fg  : var(--color-done-fg, #a371f7);
    --rissue-issue-closed    : var(--color-danger-emphasis, #da3633);
    --rissue-issue-closed-fg : var(--color-danger-fg, #f85149);
    --rissue-white-fg        : var(--color-fg-on-emphasis, #F0F6Fc);
}

/* issue icon */
:not(.State.State--merged):not(.TimelineItem-badge) > svg.octicon-issue-closed,
/* projects beta icon */
div[data-hovercard-subject-tag^="issue:"] path[d="M11.28 6.78a.75.75 0 00-1.06-1.06L7.25 8.69 5.78 7.22a.75.75 0 00-1.06 1.06l2 2a.75.75 0 001.06 0l3.5-3.5z"],
div[data-hovercard-subject-tag^="issue:"] path[d="M16 8A8 8 0 110 8a8 8 0 0116 0zm-1.5 0a6.5 6.5 0 11-13 0 6.5 6.5 0 0113 0z"]
{
    color: var(--rissue-issue-closed-fg) !important;
}

/* issue badge */
#show_issue .gh-header-meta .State.State--merged,
#show_issue .gh-header-sticky .State.State--merged,
/* issue timeline icon */
#show_issue .TimelineItem > .TimelineItem-badge.color-bg-done-emphasis,
/* timeline mention closed issue label */
.TimelineItem > .TimelineItem-body div[id^="ref-issue-"] ~ div > span.State.State--merged,
/* pull timeline closed label */
.pull-discussion-timeline .TimelineItem > .TimelineItem-body div span.State.State--merged
{
    background-color: var(--rissue-issue-closed) !important;
}

/* pull timeline closed mention label override */
.pull-discussion-timeline .TimelineItem > .TimelineItem-body div[id^="ref-pullrequest-"] ~ div span.State.State--merged {
    background-color: var(--rissue-pull-merged) !important;
}

/* js overrides */

.rissue-closed-fg {
    color: var(--rissue-issue-closed-fg) !important;
}

.rissue-closed-bg {
    background-color: var(--rissue-issue-closed) !important;
}

/* end of js overrides */

/* print */
@media print {
    /* issue badge */
    #show_issue .gh-header-meta .State.State--merged,
    #show_issue .gh-header-sticky .State.State--merged,
    /* timeline mention closed issue label */
    .TimelineItem > .TimelineItem-body div[id^="ref-issue-"] ~ div > span.State.State--merged,
    /* pull timeline closed label */
    .pull-discussion-timeline .TimelineItem > .TimelineItem-body div span.State.State--merged {
        background: none !important;
        color: var(--rissue-issue-closed-fg) !important;
        border-color: var(--rissue-issue-closed) !important;
    }
}