top | item 38102190

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

2 points| booboofixer | 2 years ago

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

1 comment

order

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).