1 parent 891a9b2 commit aee35e2Copy full SHA for aee35e2
1 file changed
news.ycombinator.com/index.js
@@ -24,6 +24,11 @@ const styles = `
24
padding-left: 1em;
25
color: #ffc071;
26
}
27
+
28
+ table.comment-tree .comment a {
29
+ max-width: unset;
30
+ text-overflow: unset;
31
+ }
32
`;
33
const sheet = Object.assign(document.createElement("style"), {
34
type: "text/css",
@@ -128,5 +133,10 @@ function upgradeComment(comment) {
128
133
text.innerHTML = parseComment(raw);
129
134
processed.add(comment);
130
135
136
+document.querySelectorAll(".commtext a").forEach((link) => {
137
+ if (link.href !== link.textContent) {
138
+ link.textContent = link.href;
139
140
+});
131
141
132
142
document.querySelectorAll(".athing.comtr").forEach(upgradeComment);
0 commit comments