fix: subreddit badge fill, tagline 'to' cleanup, and comments li spacing
- Default subreddit badge background from transparent to opaque fill (light: #fde8e0, dark: #3d2518) so page highlights don't bleed through - Remove lingering "to" text node from tagline when subreddit is hidden - Hide the <li> wrapping the comments link (not just the <a>) to eliminate leftover whitespace in the flat-list - Simplify popup: subreddit bg fields are now color pickers (no longer need transparent text-input workaround) Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -59,6 +59,11 @@
|
||||
badge.textContent = subLink.textContent.trim();
|
||||
subredditName = subLink.textContent.trim().replace(/^r\//, "");
|
||||
container.appendChild(badge);
|
||||
|
||||
const prevNode = subLink.previousSibling;
|
||||
if (prevNode && prevNode.nodeType === Node.TEXT_NODE && /\bto\s*$/.test(prevNode.textContent)) {
|
||||
prevNode.textContent = prevNode.textContent.replace(/\s*to\s*$/, " ");
|
||||
}
|
||||
}
|
||||
|
||||
const commentsLink = post.querySelector(".flat-list .comments");
|
||||
|
||||
Reference in New Issue
Block a user