Comment on Show HN: Hacker News dark mode with uBlockOrigin / AdGuard cosmetic filtersComments−xvelloOP4yFor the CSS nerds out here, cross-browser compatibility dictated the split in two rules. The following rule: news.ycombinator.com##html:style(filter:invert(100%) hue-rotate(180deg); background: white) works great on Firefox, but leaves the borders white in Chrome. Chrome applies the background directive AFTER the color inversion filter, while Firefox applies it BEFORE. On Chrome, you should use instead: news.ycombinator.com##html:style(filter:invert(100%) hue-rotate(180deg); background: black)
Comments
For the CSS nerds out here, cross-browser compatibility dictated the split in two rules. The following rule:
works great on Firefox, but leaves the borders white in Chrome. Chrome applies the background directive AFTER the color inversion filter, while Firefox applies it BEFORE. On Chrome, you should use instead: