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鈥檒l 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
6 changes: 6 additions & 0 deletions source/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ followed someone
font-size: 13px;
}

/* For `remove-diff-signs` feature */
.rgh-remove-diff-signs .blob-code-inner::before,
.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/patch-diff-links';
import './features/swap-branches-on-compare';
import './features/reactions-avatars';
import './features/show-names';
import './features/remove-diff-signs';
import './features/mark-merge-commits-in-list';
import './features/prev-next-commit-buttons';
import './features/preserve-whitespace-option-in-nav';
Expand Down
3 changes: 2 additions & 1 deletion source/features/extend-diff-expander.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ function init() {
features.add({
id: 'extend-diff-expander',
include: [
features.isPRFiles
features.isPRFiles,
features.isCommit
fregante marked this conversation as resolved.
Show resolved Hide resolved
],
load: features.onAjaxedPages,
init
Expand Down
14 changes: 14 additions & 0 deletions source/features/remove-diff-signs.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import features from '../libs/features';

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

features.add({
id: 'remove-diff-signs',
include: [
features.isPR,
features.isSingleCommit
],
init
});