Skip to content

Commit 13f273e

Browse files
committed
Diff-filename: Fix colors
1 parent 6abafc5 commit 13f273e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

github-diff-filename.user.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name GitHub Diff Filename
3-
// @version 1.1.3
3+
// @version 1.1.4
44
// @description A userscript that highlights filename & permission alterations
55
// @license MIT
66
// @author Rob Garrison
@@ -46,8 +46,8 @@
4646
if (link) {
4747
const [oldFile, newFile] = (link.title || "").split(regex);
4848
link.innerHTML = `
49-
<span class="ghdfn text-red">${oldFile}</span> ${arrow}
50-
<span class="ghdfn text-green">${newFile}</span>`;
49+
<span class="ghdfn color-text-danger">${oldFile}</span> ${arrow}
50+
<span class="ghdfn color-text-success">${newFile}</span>`;
5151
}
5252
}
5353

@@ -60,7 +60,7 @@
6060
wrapParts({
6161
start: middle + 2,
6262
end: txt.length,
63-
name: "ghdfn text-green",
63+
name: "ghdfn color-text-success",
6464
node
6565
});
6666
}
@@ -69,7 +69,7 @@
6969
wrapParts({
7070
start: 0,
7171
end: middle - 1,
72-
name: "ghdfn text-red",
72+
name: "ghdfn color-text-danger",
7373
node
7474
});
7575
}

0 commit comments

Comments
 (0)