Last active
September 8, 2019 16:23
-
-
Save apiraino/f7ac1852c230b6de9b76171520d29dc4 to your computer and use it in GitHub Desktop.
Hide Explore Repositories on Github
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 Hide side columns on Github | |
// @namespace https://gist.github.com/apiraino/f7ac1852c230b6de9b76171520d29dc4 | |
// @version 0.1 | |
// @description Hide side columns on Github | |
// @author apiraino | |
// @match https://github.com/ | |
// @grant none | |
// @run-at document-start | |
// @inject-into content | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
console.debug('[ViolentMonkey] start: ' + GM_info.script.name); | |
var el = document.querySelectorAll('aside[aria-label="Explore"]'); | |
if (el.length === 1) { | |
el[0].style.display = 'none'; | |
} | |
var el = document.querySelectorAll('aside[aria-label="Account"]'); | |
if (el.length === 1) { | |
el[0].style.display = 'none'; | |
} | |
console.debug('[ViolentMonkey] finish: ' + GM_info.script.name); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment