Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature remove-diff-signs #1866

Merged
merged 10 commits into from
Mar 27, 2019
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ GitHub Enterprise is also supported. More info in the options.
- [Reaction comments ("+1", "👍", …) are hidden](https://user-images.githubusercontent.com/1402241/45543717-d45f3c00-b847-11e8-84a5-8c439d0ad1a5.png) (except the maintainers') [but they can still be shown.](https://user-images.githubusercontent.com/1402241/45543720-d628ff80-b847-11e8-9fb6-758a3102e3a9.png)
- [Tall code blocks and quotes are limited in height.](https://github.com/sindresorhus/refined-github/issues/1123)
- [Forks and watchers counters are hidden.](https://user-images.githubusercontent.com/1402241/53681077-f3328b80-3d1e-11e9-9e29-2cb017141769.png)
- [Diff signs are hidden.](https://user-images.githubusercontent.com/1402241/54807718-149cec80-4cb9-11e9-869c-e265863211e3.png)

### UI improvements

Expand Down
6 changes: 6 additions & 0 deletions source/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,12 @@ followed someone
font-size: 13px;
}

/* For `remove-diff-signs` feature */
.rgh-remove-diff-signs .blob-code-inner::before, /* Inline review blocks in PRs */
.rgh-remove-diff-signs .blob-code-marker-cell::before { /* Commit page */
content: none;
}

/* Make tab indented code more readable on GitHub and Gist */
* {
-moz-tab-size: 4 !important;
Expand Down
1 change: 1 addition & 0 deletions source/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ import './features/parse-backticks';
import './features/swap-branches-on-compare';
import './features/reactions-avatars';
import './features/show-names';
import './features/remove-diff-signs';
import './features/view-markdown-source';
import './features/mark-merge-commits-in-list';
import './features/prev-next-commit-buttons';
Expand Down
10 changes: 10 additions & 0 deletions source/features/remove-diff-signs.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import features from '../libs/features';

function init() {
document.body.classList.add('rgh-remove-diff-signs');
}

features.add({
id: 'remove-diff-signs',
init
});