Created
April 2, 2020 14:15
-
-
Save alexdima/cfb57c4be919688815ad2002ab92ad8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name GitHub clean | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author Alex Dima | |
// @match https://github.com/* | |
// @grant GM_addStyle | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
GM_addStyle(` | |
/* no pinned issues! */ | |
.js-pinned-issues-reorder-container { display: none !important; } | |
/* no stupid reset query tips! */ | |
.issues-reset-query-wrapper { display: none !important; } | |
/* thinner navbar */ | |
.Header { padding-top: 3px; padding-bottom: 3px; } | |
.pagehead.repohead { padding-top: 5px !important; } | |
/* we don't use Projects! */ | |
a[data-hotkey="g b"] { display: none; } | |
#project-select-menu { display: none !important; } | |
`); | |
// skip issue template | |
for (const link of document.querySelectorAll('a[href="/microsoft/vscode/issues/new/choose"]')) { | |
link.href = 'https://github.com/microsoft/vscode/issues/new'; | |
} | |
for (const div of document.getElementsByClassName('discussion-sidebar-item')) { | |
if (div.innerText.indexOf('Projects') >= 0) { | |
div.style.display = 'none'; | |
} | |
} | |
console.log('ran'); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment