Skip to content

Instantly share code, notes, and snippets.

View notthatnathan's full-sized avatar
♻️

Nathan Fitzsimmons notthatnathan

♻️
View GitHub Profile
@notthatnathan
notthatnathan / pr-file-counter.css
Last active May 30, 2018 19:18
Adds counts next to files in pull requests on github.com as a progress indicator for code reviews. Add to your favorite site-specific browser extension (Stylebot is one).
.files-next-bucket.pull-request-tab-content .file:before {
background-color: #333;
border-radius: 50%;
color: #fff;
content: counter(file);
counter-increment: file;
font-size: 10px;
font-weight: bold;
height: 26px;
line-height: 26px;
@notthatnathan
notthatnathan / old-issues.js
Last active April 19, 2016 14:36
Style old Github issues
var how_far_back = 60; //time in days
var css = '.old-issue { background-color: #ddd; opacity: 0.1; filter: blur(2px); -webkit-filter: blur(2px); }'; //your css
// don't edit below!
var $rows = document.querySelectorAll('.js-issue-row'); //all issues
//check for old issues
for (var i = 0, l = $rows.length; i < l; i++) {
var current_time = new Date();
var $issue = $rows[i];
var $issue_time = $issue.getElementsByTagName('relative-time');