Hacker News - Keyword Highlighter + Dark Mode + Split View Comments (iframe) + Story Links
By codemplation · 6 months ago · 10+ installs
Highlights posts containing specific keywords, applies dark mode theme, opens comments in split view iframe, and opens ALL links in new windows on the right side. Implements strict CSP with iframe sandbox for robust XSS protection. FIXES CSP: Removes frame-ancestors from HTML meta tags and provides instructions for HTTP response header configuration.
Key Highlights
- Applies a dark mode theme to Hacker News pages
- Highlights post titles that match selected keywords
- Opens Hacker News comments in a right-side split view
- Keeps the main story list visible while reading comments
- Opens story titles and split-view links in a separate right-side window
Details
This tweek changes news.ycombinator.com with a dark mode that restyles the main feed, headers, links, vote arrows, forms, and comment pages shown inside the split panel. It also highlights posts whose titles contain selected keywords such as zig, rust, algorithm, math, compiler, parsing, lexer, parser, risc-v, stable release, dsa, and open-source, making those stories stand out in the list.
When you open a comments link, the discussion appears in a fixed split view on the right side so you can keep the story list visible while reading. Clicking a story title opens that article in a separate window positioned on the right side of the screen, and links inside the split-view comments also open in a new window instead of replacing the page.
Runs on
1 site
Developer
Tweek Code
618 lines ·