Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions extension/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ svg.octicon.octicon-star.dashboard-event-icon {
.gist table.lines,
.highlight pre, /* Readme code blocks */
.blob-code-inner /* PR inline diff */ {
-moz-tab-size: 4 !important;
tab-size: 4 !important;
}

Expand Down
8 changes: 4 additions & 4 deletions extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,10 @@ function addDiffViewWithoutWhitespaceOption(type) {

function addOPLabels() {
const comments = $('div.js-comment').toArray();
const newComments = comments.filter(comment => !$(comment).hasClass('refined-github-op'));
const newComments = $(comments).filter(':not(.refined-github-op)').toArray();

if (newComments) {
const commentAuthor = comment => $(comment).find('.author').text();
if (newComments.length > 0) {
const commentAuthor = comment => $(comment).find('strong .author').text();
let op;

if (pageDetect.isPR()) {
Expand All @@ -333,7 +333,7 @@ function addOPLabels() {
opComments = opComments.slice(1);
}

if (opComments) {
if (opComments.length > 0) {
const type = pageDetect.isPR() ? 'pull request' : 'issue';
const tooltip = `${op === getUsername() ? 'You' : 'This user'} submitted this ${type}.`;
const label = `
Expand Down
10 changes: 10 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,18 @@ And [lots](extension/content.css) [more...](extension/content.js)

## Install

### Chrome

Install it from the [Chrome Web Store](https://chrome.google.com/webstore/detail/refined-github/hlepfoohegkhhmjieoechaddaejaokhf) or [manually](http://superuser.com/a/247654/6877).

### Firefox

1. Download [this repo as a zip file](https://github.com/sindresorhus/refined-github/archive/master.zip)
2. Extract its contents
3. Visit `about:debugging#addons` in Firefox
4. Click on **Load Temporary Add-on**
5. Select the file `extension/manifest.json`


## Contribute

Expand Down