Skip to content

Instantly share code, notes, and snippets.

@Tatsh
Last active March 28, 2019 05:40
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 Tatsh/d1b5a039d6f511c95a08daade8b07a81 to your computer and use it in GitHub Desktop.
Save Tatsh/d1b5a039d6f511c95a08daade8b07a81 to your computer and use it in GitHub Desktop.
Hide the Discover section in >= 1012px view
// ==UserScript==
// @name No Discover
// @homepage https://gist.github.com/Tatsh/d1b5a039d6f511c95a08daade8b07a81
// @namespace https://tat.sh
// @version 0.0.5
// @description Hide the Discover section in >= 1012px view.
// @author Tatsh
// @match https://github.com
// @grant none
// @run-at document-end
// @updateURL https://gist.github.com/Tatsh/d1b5a039d6f511c95a08daade8b07a81/raw/github-no-discover.user.js
// @downloadURL https://gist.github.com/Tatsh/d1b5a039d6f511c95a08daade8b07a81/raw/github-no-discover.user.js
// @supportURL https://tat.sh
// @noframes
// ==/UserScript==
(function() {
'use strict';
var style = document.createElement("style");
style.setAttribute('media', '(min-width: 1012px)');
style.appendChild(document.createTextNode(""));
document.head.appendChild(style);
style.sheet.insertRule('aside[aria-label="Explore"] { display: none; }', 0);
style.sheet.insertRule('body > div.application-main > div > div { width: 75%; }', 1);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment