Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Hide Explore Repositories on Github
// ==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
You can’t perform that action at this time.