您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Makes "good" icons green and "bad" ones red. Closed issue is good, unresolved is bad.
当前为
- /* ==UserStyle==
- @name GitHub - swap icon colors (open=red, closed=green)
- @description Makes "good" icons green and "bad" ones red. Closed issue is good, unresolved is bad.
- @namespace myfonj
- @version 0.0.2
- @license CC0 - Public Domain
- ==/UserStyle== */
- @-moz-document domain("github.com") {
- /*
- GitHub - swap colors (open=red, closed=green)
- */
- .octicon.open,
- .octicon.octicon-issue-opened path
- { color: #cb2431; /* original is green */
- }
- .octicon.closed,
- .octicon.octicon-issue-closed path
- { color: #28a745; /* original is red */
- }
- .reponav-item .octicon path,
- .table-list-header-toggle .btn-link path,
- .State--green .octicon.octicon-issue-opened path,
- .State--red .octicon.octicon-issue-closed path
- { color: inherit
- }
- .State--green
- { background-color: #cb2431; /* original is green */
- }
- .State--red
- { background-color: #28a745; /* original is red */
- }
- .type-icon-state-closed .octicon-git-pull-request
- { /* leaving original red, as for "closed not merged" */
- }
- .octicon.octicon-git-pull-request.open
- { color: orange; /* original is green */
- }
- .octicon.octicon-git-pull-request.open.text-green
- { color: orange !important; /* text-green is !important; ghis appears in tooltip */
- }
- .octicon.octicon-git-merge.merged , /* does not seem to be needed anymore */
- .type-icon-state-merged .octicon-git-merge
- { color: #28a745; /* original violet seems quite ok-ish as well, but to be consistent let's make it green. merged PR = OK*/
- }
- .octicon-git-pull-request.closed
- { color: #cb2431; /* original is green; closed not merged - not error, not OK */
- }
- .octicon-git-pull-request.text-gray-light
- { /* "draft" PR is gray */
- }
- /* user closed this issue ... */
- .TimelineItem-badge.text-white.bg-red > .octicon.octicon-circle-slash
- { background-color: #28a745;
- outline: .4rem solid #28a745;
- color: rgba(255,255,255,.2); /* icon shape is like "🚫" here */
- }
- /* user reopened this issue ... */
- .TimelineItem-badge.text-white.bg-green > .octicon.octicon-dot-fill
- { background-color: #cb2431;
- outline: .4rem solid #cb2431;
- color: rgba(255,255,255,.2); /* icon shape is "•" here */
- }
- /*
- END: GitHub - swap colors (open=red, closed=green)
- */
- }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址