Skip to content

Instantly share code, notes, and snippets.

@apiraino
Last active September 8, 2019 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apiraino/f7ac1852c230b6de9b76171520d29dc4 to your computer and use it in GitHub Desktop.
Save apiraino/f7ac1852c230b6de9b76171520d29dc4 to your computer and use it in GitHub Desktop.
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