TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

2 pointsby booboofixerover 1 year ago
Use the chrome extension Chrome Regex Search https:&#x2F;&#x2F;chrome.google.com&#x2F;webstore&#x2F;detail&#x2F;chrome-regex-search&#x2F;bpelaihoicobbkgmhcbikncnpacdbknn<p>Use ctrl + shift + f to search using the extension<p>Use regex ([0-9]|[1-5][0-9]) minutes ago<p>P.S. Chrome extensions are risky for privacy P.P.S Most useful for who&#x27;s hiring threads

1 comment

perihelionsover 1 year ago
- <i>&quot;extensions are risky for privacy&quot;</i><p>You can also do all of this in uBlock Origin, with cosmetic filters! No additional extensions, beyond @gorhill&#x27;s uBO which I assume everyone trusts highly.<p><pre><code> ycombinator.com##a:has-text(&#x2F;(\d+) minute(s?) ago&#x2F;):style(color: HotPink !important; font-weight: bold) </code></pre> (The selector is <i>very</i> slightly imprecise. ##:xpath(&#x2F;&#x2F;span[contains(@class,&quot;age&quot;)]&#x2F;a) would be a verbose but strictly correct way to restrict which &lt;a&#x2F;&gt; elements are looked at (in place of just ##a). I&#x27;m not aware of a non-XPath way to express that. ##.age is a concise way to reliably select the &lt;span&#x2F;&gt; <i>parent</i>, but CSS color doesn&#x27;t propagate downwards to the &lt;a&#x2F;&gt; by the normal rules).