Or you could just use RSS...
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.
21–29 of 29 posts
Or you could just use RSS...
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.
I 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...
ycombinator.com##:xpath(//span[contains(@class,"age")]/a):has-text(/(\d+) minute(s?) ago/):style(color: Teal !important; font-weight: bold)
It highlights both comments and posts.(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).
This 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...
I have a uBlock filter rule that does something like this, but with a plain regex, ycombinator.com##:xpath(//span[contains(@class,"age")]/a):has-text(/(\d+) minute(s?) ago/):style(color: Teal !important; font-weight: bold) It highlights both comments and posts. (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…
I 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.
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.
I have a uBlock filter rule that does something like this, but with a plain regex, ycombinator.com##:xpath(//span[contains(@class,"age")]/a):has-text(/(\d+) minute(s?) ago/):style(color: Teal !important; font-weight: bold) It highlights both comments and posts. (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…
This is neat. Can these rules compare the votes on a post or number of comments to intensify the color accordingly?
I have a uBlock filter rule that does something like this, but with a plain regex, ycombinator.com##:xpath(//span[contains(@class,"age")]/a):has-text(/(\d+) minute(s?) ago/):style(color: Teal !important; font-weight: bold) It highlights both comments and posts. (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…
This is neat. Can these rules compare the votes on a post or number of comments to intensify the color accordingly?
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),
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)
That's 50-99 and 100+ score points. 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)
Same for comment counts.I 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...
That's neat, I wish it could be a bookmarklet.