Show HN: Quickly scan HN for new articles
62 points by bachmitre 1 year ago | 23 commentsI wrote a Chrome Extension to:
- quickly scan new articles since my last reload - quickly scan highly discussed articles - open actual articles and discussions in a new tab
This links to the source code. The chrome extension is linked at the bottom of the github page.
Note:
- This extension only operates on the HN front page (https://news.ycombinator.com/news) - The first time you reload the HN front page after installing the extension all articles will get highlighted.
- smusamashah 1 year agoI made this user script that does the same. Uses localstorage, when you come back and refresh, if there were new stories, it adds `(NEW)` in green before the title.
Also added a comment count change in there recently.
https://gist.github.com/SMUsamaShah/e7c9ed3936ba69e522f8cb38...
- keyle 1 year agoThat's neat, I wish it could be a bookmarklet.
- smusamashah 1 year agoI think simply copy pasting the script like a bookmarklet should work the same
- smusamashah 1 year ago
- keyle 1 year ago
- perihelions 1 year agoI have a uBlock filter rule that does something like this, but with a plain regex,
It highlights both comments and posts.ycombinator.com##:xpath(//span[contains(@class,"age")]/a):has-text(/(\d+) minute(s?) ago/):style(color: Teal !important; font-weight: bold)
(I like using this trick, the uBlock regex → CSS matching rule that's so generically useful. I can configure things I'd otherwise be too lazy to configure, if it wasn't for uBlock).
- smusamashah 1 year agoThis is neat. Can these rules compare the votes on a post or number of comments to intensify the color accordingly?
- perihelions 1 year agoIf you mean new comments relative to previous visits, then I believe no; uBlock is stateless as far as I know.
If you mean absolute numbers, then, uBlock filters don't have a Turing-complete programming language (by intentional design), so there's nothing idiomatic for that. If you're categorizing integers by range, you can technically do that in regular expression languages (this is really an anti-pattern),
That's 50-99 and 100+ score points.ycombinator.com##:xpath(//span[contains(@class,"score")]):has-text(/\b[5-9]\d points/):style(color: Orange !important; font-weight: bold) ycombinator.com##:xpath(//span[contains(@class,"score")]):has-text(/\d{3} points/):style(color: Red !important; font-weight: bold)
Same for comment counts.ycombinator.com##:xpath(//span[contains(@class,"subline")]/a):has-text(/\b[5-9]\d\s+comments/):style(color: Orange !important; font-weight: bold) ycombinator.com##:xpath(//span[contains(@class,"subline")]/a):has-text(/\d{3}\s+comments/):style(color: Red !important; font-weight: bold)
- 1 year ago
- perihelions 1 year ago
- smusamashah 1 year ago
- gabrielsroka 1 year agoI was wondering why the extension is so large. It includes a 500KB PNG. Perhaps the shell script was supposed to exclude it from the zip file.
- leetrout 1 year agoProbably.
Also, even for the repo, it doesnt take much effort to be a good internet citizen and use tinypng for png and jpg images to save a little bandwidth for everyone.
- leetrout 1 year ago
- adolph 1 year agoThis is interesting but seeing the same headlines over and over does two things for me:
* internal opening-HN-too-much alert * headline spaced repetition learning
- disillusioned 1 year agoSlightly unrelated, but I've been using a similar Stylish theme to this one for years and it makes my HN experience much more readable and enjoyable: https://userstyles.org/styles/46180/georgify-for-hacker-news
- frfl 1 year agoI've defaulted to this https://hckrnews.com/ intead of HN homepage. This is ordered by time rather than rank.
- ljoshua 1 year agoSame here. Saves me so much time and very reliable. There are also a few settings one can tweak (limit to homepage or top X%, for example) to make it even better.
- ljoshua 1 year ago
- giancarlostoro 1 year agoI do this too, sometimes I wonder what all has changed in 24hrs, so this is great. I will even keep a tab open untouched so I can see what was open before, and open a new one. Making "snapshot tabs" if you will.
- lovegrenoble 1 year agoThank you, very useful
- qingcharles 1 year agoNow I just need to rework it for my favorite HN front page viewer:
- jedberg 1 year agoThis is awesome! On an unrelated note, anyone have good resources for converting chrome extensions to Safari?
I found this and will try it later if no one has a better suggestion:
https://www.reddit.com/r/Safari/comments/10meyn5/how_to_conv...
- gabrielsroka 1 year agoI thought Safari and Firefox were supposed to start supporting Chrome's webextensions.
I've had some luck with Firefox although there are differences. I haven't tried Safari.
- jedberg 1 year agoI don't see a way to install an extension that isn't in the Safari store, other than that link I found on reddit. But I could definitely be missing something.
- gabrielsroka 1 year agoI meant they support the standard. If you have the source code. I didn't mean that Safari can install them directly from Chrome's store.
- bluish29 1 year agoYou will need to build it using xcode and install it like ordinary app (On MacOS at least)
- gabrielsroka 1 year ago
- jedberg 1 year ago
- smusamashah 1 year agoThis may sound bad but might actually work. You should give ChatGPT 4 a try. It's a small extension so all source and response might fit in 1 context length.
- 1 year ago
- gabrielsroka 1 year ago
- 1 year ago
- pluc 1 year agoOr you could just use RSS...
- petercooper 1 year agoIndeed: https://hnrss.github.io/
I have my own script that filters the firehose for topics I'm interested in into a new RSS feed and subscribe to that, so I see every single submission that might vaguely interest me.
- 1 year ago
- petercooper 1 year ago