Last active
March 28, 2019 05:40
-
-
Save Tatsh/d1b5a039d6f511c95a08daade8b07a81 to your computer and use it in GitHub Desktop.
Hide the Discover section in >= 1012px view
This file contains hidden or 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 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