TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

2 点作者 booboofixer超过 1 年前
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

perihelions超过 1 年前
- <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).