Last active
December 19, 2015 00:49
-
-
Save michaelficarra/5870952 to your computer and use it in GitHub Desktop.
make a github repo presentable for screenshots
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 Github Screenshots | |
| // @description make a github repo presentable for screenshots | |
| // @match https://github.com/* | |
| // @version 0.0.1 | |
| // ==/UserScript== | |
| function hide (node) { | |
| node.style.display = 'none'; | |
| } | |
| [].forEach.call(document.querySelectorAll( | |
| [ '.files' | |
| , '.sidebar-button' | |
| , '.commit-tease' | |
| , '.file-navigation.in-mid-page' | |
| , '.branch-infobar' | |
| , '.fork-flag' | |
| , '.repository-sidebar .counter' | |
| ].join(', ') | |
| ), hide); | |
| document.querySelector('#readme').style.margin = '10px 0'; | |
| document.querySelector('.notification-indicator .mail-status').classList.remove('unread'); | |
| document.querySelector('.entry-title').style.fontSize = '2em'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment