Skip to content

Instantly share code, notes, and snippets.

@somarlyonks
Last active January 5, 2022 02:06
Show Gist options
  • Select an option

  • Save somarlyonks/0670137dfac39a8a7a6622c8a8d14e70 to your computer and use it in GitHub Desktop.

Select an option

Save somarlyonks/0670137dfac39a8a7a6622c8a8d14e70 to your computer and use it in GitHub Desktop.
Github fixed logo with stylebot.
#partial-discussion-header > div.gh-header-shadow.box-shadow {
height: 45px;
}
#partial-discussion-header > div.js-sticky.js-sticky-offset-scroll.top-0.gh-header-sticky.is-stuck > div > div {
margin-top: 2px !important;
}
.gh-header .gh-header-sticky.is-stuck+.gh-header-shadow {
z-index: 18;
}
.js-selected-navigation-item.Header-link {
padding-bottom: 12px !important;
padding-top: 12px !important;
}
div.Header-item.Header-item--full > div {
padding-left: 40px;
}
header.Header {
padding: 8px 32px !important;
}
header.Header > div:nth-child(1) {
left: 32px;
position: fixed;
top: 10px;
z-index: 19;
}
body > div.position-relative.js-header-wrapper > header > div:nth-child(1) > a > svg {
background-color: #24292e;
border: 1px solid #24292e;
border-radius: 50%;
box-sizing: border-box;
}
.Box-body,
.blob-code,
.blob-code-inner {
font-family: CamingoCode;
font-size: 14px;
}
.cm-s-github-light.CodeMirror {
height: 500px !important;
}
// ==UserScript==
// @name github nav trending
// @namespace http://github.com/
// @version 1.0.2
// @description Not market, trending please.
// @author Sy
// @match https://github.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
function sanitize () {
const mkt = document.querySelector('.Header-item--full nav div a');
if (!mkt) throw Error('Target element not found!');
mkt.textContent = 'Trending';
mkt.href = '/trending';
}
try {sanitize();} catch (e) {}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment