Skip to content

Commit e2b1943

Browse files
committed
Update README
1 parent faf7f72 commit e2b1943

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgreasyfork.org%2Fscripts%2F478687-github-custom-global-navigation.json&query=total_installs&suffix=%20installs&label=greasy%20fork&color=%23670000&link=https%3A%2F%2Fgreasyfork.org%2Fen%2Fscripts%2F478687-github-custom-global-navigation)
2121
![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fopenuserjs.org%2Fmeta%2Fblakegearin%2FGitHub_Custom_Global_Navigation.meta.json&query=%24.OpenUserJS.installs%5B0%5D.value&suffix=%20installs&label=openuserjs&color=%23202d3b&link=https%3A%2F%2Fopenuserjs.org%2Fscripts%2Fblakegearin%2FGitHub_Custom_Global_Navigation)
22-
[![MIT License](https://img.shields.io/badge/license-MIT%20License-blue)](LICENSE)
22+
[![MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
2323

2424
This is a [userscript](https://openuserjs.org/about/Userscript-Beginners-HOWTO) to customize the global navigation of GitHub.
2525

@@ -37,7 +37,7 @@ This is a [userscript](https://openuserjs.org/about/Userscript-Beginners-HOWTO)
3737
width="40%"
3838
src="img/menu_option.png"
3939
alt="menu option for 'Customize global navigation'"
40-
title="GitHub Custom Global Navigation logo"
40+
title="menu option for 'Customize global navigation'"
4141
/>
4242

4343
## Documentation
@@ -136,4 +136,12 @@ In October 2023, GitHub initiated a [public rollout](https://github.blog/changel
136136

137137
- Optimization: [SVGOMG](https://svgomg.net)
138138

139+
## Disclaimer
140+
139141
Not affiliated with Microsoft Corporation, GitHub, Inc., or any of their affiliations.
142+
143+
## Related Projects
144+
145+
Miss the old design of Slack too? Check out my userscript: [Old School Slack](https://github.com/blakegearin/old-school-slack#readme)
146+
147+
Want to customize the favicon for different GitHub tabs? I'm working on a solution for that too: [Favicon Packs](https://github.com/blakegearin/favicon-packs#readme)

src/github-custom-global-navigation.user.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
}
154154

155155
if (elementConfig.remove) {
156-
HEADER_STYLE.textContent += cssHideElement(SELECTORS.sidebars.left.topDiv);
156+
HEADER_STYLE.textContent += cssHideElement(SELECTORS[configKey]);
157157

158158
return;
159159
}
@@ -3638,7 +3638,6 @@
36383638
},
36393639
sidebars: {
36403640
left: {
3641-
topDiv: '.AppHeader-globalBar-start > :first-child',
36423641
backdrop: 'dialog[data-target="deferred-side-panel.panel"]::backdrop',
36433642
modalDialog: '.Overlay--placement-left',
36443643
},
@@ -4376,7 +4375,7 @@
43764375
color: oldSchoolHoverBackgroundColor,
43774376
},
43784377
left: {
4379-
preload: false,
4378+
preload: true,
43804379
},
43814380
right: {
43824381
preload: true,
@@ -4622,7 +4621,7 @@
46224621
color: oldSchoolHoverBackgroundColor,
46234622
},
46244623
left: {
4625-
preload: false,
4624+
preload: true,
46264625
},
46274626
right: {
46284627
preload: true,

0 commit comments

Comments
 (0)