├── .github └── workflows │ └── ci.yml ├── 404.html ├── broken-features.csv ├── readme.md ├── strings.json └── style ├── 24.10.1.css ├── 24.11.12.css ├── 24.11.21.css ├── 24.12.20.css ├── 24.12.9.css ├── 24.2.8.css ├── 25.1.24.css ├── 25.2.26.css └── 25.4.8.css /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | on: [push] 4 | 5 | env: 6 | ESBUILD: esbuild --outdir=. --log-override:css-syntax-error=error 7 | 8 | jobs: 9 | strings: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: actions/checkout@v3 13 | - run: npx $ESBUILD strings.json 14 | 15 | broken-features: 16 | runs-on: ubuntu-latest 17 | steps: 18 | - uses: actions/checkout@v3 19 | - run: npx csval broken-features.csv 20 | 21 | style: 22 | runs-on: ubuntu-latest 23 | steps: 24 | - uses: actions/checkout@v3 25 | - run: npx $ESBUILD style/* 26 | -------------------------------------------------------------------------------- /404.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /broken-features.csv: -------------------------------------------------------------------------------- 1 | Feature name, Issue describing bug, Minimum working version 2 | table-input,7353,24.10.22 3 | toggle-files-button,7737,24.8.25 4 | linkify-code,7951,24.10.27 5 | submission-via-ctrl-enter-everywhere,8049, 6 | new-repo-disable-projects-and-wikis,7851, 7 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # yolo 2 | 3 | > Hotfixes for [Refined GitHub](https://github.com/refined-github/refined-github) fetched regularly 4 | 5 | In order to address severe issues as quickly as possible, Refined GitHub fetches hotfixes at most every 6 hours (while being used). These are limited to: 6 | 7 | - disabling broken features 8 | - adding some CSS 9 | - updating selectors and other strings (currently unused) 10 | 11 | The files are loaded under the address: https://refined-github.github.io/yolo/ 12 | 13 | ## broken-features.csv 14 | 15 | List of features to disable until _the current version_ is greater than or equal to the "fix date" 16 | 17 | ```csv 18 | Feature name, Issue, Fix date 19 | show-whitespace, 1234, 22.3.4 20 | ``` 21 | 22 | ## style 23 | 24 | Per-version CSS files containing style fixes. If an issue hasn't been fixed by the time the next release comes, the related style hotfix must be manually carried over to a new file. 25 | 26 | ## strings.json 27 | 28 | Generally used to replace troublesome selectors, it can replace any string that has been marked as "dynamic", e.g. 29 | 30 | ```js 31 | select(_`#title span`) 32 | ``` 33 | 34 | Will be replaced if `strings.json` contains: 35 | 36 | ```json 37 | { 38 | "#title span": "#new_title a" 39 | } 40 | ``` 41 | 42 | > **Note:** This file uses JSON because character-escaping logic is widely understood and already implemented natively. 43 | -------------------------------------------------------------------------------- /strings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Original": "Replacement" 3 | } 4 | -------------------------------------------------------------------------------- /style/24.10.1.css: -------------------------------------------------------------------------------- 1 | /* GHE hotfix https://github.com/refined-github/refined-github/issues/7857 */ 2 | button.rgh-highlight-non-default-branch, 3 | details.rgh-highlight-non-default-branch > summary { 4 | background-color: var( 5 | --bgColor-accent-muted, 6 | var(--color-accent-subtle, fuchsia) 7 | ) !important; 8 | color: var(--fgColor-accent, var(--color-accent-fg, fuchsia)) !important; 9 | border-color: var( 10 | --fgColor-accent, 11 | var(--color-accent-fg, fuchsia) 12 | ) !important; 13 | } 14 | 15 | button.rgh-highlight-non-default-branch svg, 16 | details.rgh-highlight-non-default-branch > summary svg { 17 | color: var(--fgColor-accent, var(--color-accent-fg, fuchsia)) !important; 18 | } 19 | 20 | /* Backported fix: Sponsor button in mobile view #7853 */ 21 | #dialog-show-responsive-sponsor-modal { 22 | width: var(--base-size-32); 23 | height: var(--base-size-32); 24 | padding: 0; 25 | } 26 | 27 | /* Backported fix: Notification buttons overlap on mobile */ 28 | #dialog-show-notifications-tabs-nav ~ action-menu { 29 | flex-shrink: 0; 30 | } 31 | -------------------------------------------------------------------------------- /style/24.11.12.css: -------------------------------------------------------------------------------- 1 | /* `mobile-tabs` - Further tighten spacing https://github.com/refined-github/refined-github/pull/8070 */ 2 | #partial-discussion-header + .tabnav .tabnav-tab .Counter { 3 | min-width: 0; 4 | } 5 | 6 | /* `clean-conversation-headers` - "fixed by" link dropped https://github.com/refined-github/refined-github/issues/8101 */ 7 | .rgh-clean-conversation-headers.rgh-hide-author a[data-hovercard-url]:not(.author) { 8 | display: inline !important; 9 | } 10 | -------------------------------------------------------------------------------- /style/24.11.21.css: -------------------------------------------------------------------------------- 1 | /* GHE lack of colors https://github.com/refined-github/refined-github/issues/8091#issuecomment-2494831593 */ 2 | 3 | .rgh-extend-diff-expander 4 | .js-expandable-line:hover 5 | :is( 6 | .blob-num:not(:hover) .directional-expander:first-child, 7 | .blob-num:not(:hover) + .blob-code 8 | ) { 9 | color: var( 10 | --control-checked-fgColor-rest, 11 | var(--color-state-hover-primary-text, var(--color-fg-on-emphasis, fuchsia)) 12 | ); 13 | cursor: pointer; 14 | background: var( 15 | --control-checked-bgColor-hover, 16 | var(--color-state-hover-primary-bg, var(--color-accent-emphasis, fuchsia)) 17 | ); 18 | border-color: var( 19 | --control-checked-borderColor-hover, 20 | var( 21 | --color-state-hover-primary-border, 22 | var(--color-accent-emphasis, fuchsia) 23 | ) 24 | ); 25 | } 26 | 27 | :root .rgh-non-default-branch { 28 | background-color: var( 29 | --control-checked-bgColor-hover, 30 | var(--color-state-hover-primary-bg, var(--color-accent-emphasis, fuchsia)) 31 | ); 32 | } 33 | 34 | :root .rgh-non-default-branch, 35 | :root .rgh-non-default-branch a { 36 | color: var( 37 | --control-checked-fgColor-rest, 38 | var(--color-state-hover-primary-text, var(--color-fg-on-emphasis, fuchsia)) 39 | ); 40 | } 41 | 42 | .thread-subscribe-form .btn.selected { 43 | border-color: var( 44 | --control-borderColor-emphasis, 45 | var(--color-accent-emphasis, fuchsia) 46 | ); 47 | } 48 | 49 | /* `scrollable-areas` - Remove from unrelated markdown documents */ 50 | /* Reverts https://github.com/refined-github/refined-github/pull/8089 */ 51 | /* Fixes https://github.com/refined-github/refined-github/issues/8099 */ 52 | html[rgh-scrollable-areas] .markdown-body :is(blockquote, pre) { 53 | max-height: none; 54 | } 55 | -------------------------------------------------------------------------------- /style/24.12.20.css: -------------------------------------------------------------------------------- 1 | /* https://github.com/refined-github/refined-github/pull/8208 */ 2 | @media (width >= 768px) { 3 | /* Pulls the alert container to the right when empty */ 4 | .gap-4.pl-3:not(:has(a.h6)):has( 5 | > .d-md-block 6 | > .js-socket-channel[data-url^='/notifications/beta/recent_notifications_alert'] 7 | ) { 8 | /* Substract 16px spacing from both .gap-3 and .ml-3 */ 9 | margin-right: -32px; 10 | } 11 | } 12 | 13 | 14 | /* https://github.com/refined-github/refined-github/issues/8257 */ 15 | body.copilotImmersive>div:first-of-type>.application-main>main>react-app>div { 16 | height: calc(100vh - 64px); 17 | } 18 | -------------------------------------------------------------------------------- /style/24.12.9.css: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /style/24.2.8.css: -------------------------------------------------------------------------------- 1 | /* https://github.com/refined-github/refined-github/issues/7305 */ 2 | :root { 3 | --rgh-green: var(--fgColor-success, var(--color-success-fg, #1a7f37)); 4 | --rgh-red: var(--fgColor-danger, var(--color-danger-fg, #cf222e)); 5 | --rgh-border-color: var( 6 | --borderColor-muted, 7 | var(--color-border-muted, #d8dee4) 8 | ); 9 | --rgh-background: var(--bgColor-default, var(--color-canvas-default, #fff)); 10 | } 11 | 12 | /* https://github.com/refined-github/refined-github/issues/7375 */ 13 | .BtnGroup:has(>[aria-label*="unreleased commit"]) { 14 | flex-shrink: 0; 15 | } 16 | 17 | /* https://github.com/refined-github/refined-github/pull/7313 */ 18 | @media (-webkit-min-device-pixel-ratio: 2) { 19 | [rgh-emphasize-draft-pr-label] .js-issue-row :is( 20 | [aria-label='Open draft pull request'], 21 | [aria-label='Draft Pull Request'] 22 | ) svg { 23 | stroke: var(--fgColor-muted, var(--color-fg-muted)); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /style/25.1.24.css: -------------------------------------------------------------------------------- 1 | /* https://github.com/refined-github/refined-github/issues/8257 */ 2 | body.copilotImmersive>div:first-of-type>.application-main>main>react-app>div { 3 | height: calc(100vh - 64px); 4 | } 5 | -------------------------------------------------------------------------------- /style/25.2.26.css: -------------------------------------------------------------------------------- 1 | /* https://github.com/refined-github/refined-github/issues/8320 */ 2 | .rgh-mention-avatar::before { 3 | width: 16px !important; 4 | margin-inline: .2em; 5 | } 6 | 7 | 8 | /* z-index fight https://github.com/refined-github/refined-github/issues/8445 */ 9 | .rgh-sticky-sidebar { 10 | z-index: unset !important; 11 | } 12 | -------------------------------------------------------------------------------- /style/25.4.8.css: -------------------------------------------------------------------------------- 1 | /* z-index fight https://github.com/refined-github/refined-github/issues/8445 */ 2 | .rgh-sticky-sidebar { 3 | z-index: unset !important; 4 | } 5 | --------------------------------------------------------------------------------