Settings

Theme

Tell HN: Search in Hacker News posts for comments in last hour

2 points by booboofixer 2 years ago · 1 comment · 1 min read


Use the chrome extension Chrome Regex Search https://chrome.google.com/webstore/detail/chrome-regex-search/bpelaihoicobbkgmhcbikncnpacdbknn

Use ctrl + shift + f to search using the extension

Use regex ([0-9]|[1-5][0-9]) minutes ago

P.S. Chrome extensions are risky for privacy P.P.S Most useful for who's hiring threads

perihelions 2 years ago

- "extensions are risky for privacy"

You can also do all of this in uBlock Origin, with cosmetic filters! No additional extensions, beyond @gorhill's uBO which I assume everyone trusts highly.

    ycombinator.com##a:has-text(/(\d+) minute(s?) ago/):style(color: HotPink !important; font-weight: bold)
(The selector is very slightly imprecise. ##:xpath(//span[contains(@class,"age")]/a) would be a verbose but strictly correct way to restrict which <a/> elements are looked at (in place of just ##a). I'm not aware of a non-XPath way to express that. ##.age is a concise way to reliably select the <span/> parent, but CSS color doesn't propagate downwards to the <a/> by the normal rules).

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection