Skip to content

Instantly share code, notes, and snippets.

@michaelficarra
Last active December 19, 2015 00:49
Show Gist options
  • Select an option

  • Save michaelficarra/5870952 to your computer and use it in GitHub Desktop.

Select an option

Save michaelficarra/5870952 to your computer and use it in GitHub Desktop.
make a github repo presentable for screenshots
// ==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