Highlight new comments, mute users, and other tweaks for Hacker News
< 腳本Comments Owl for Hacker News的回應
Nice job with this script.
I prefer to hide the highlight controls by default since they take some space, so here is code I added to achieve that. Replacing lines 464 to 466 with:
var $timeTravelControl = $el('div', {style: {marginTop: '1em', display: 'none'},}, $range, ' ', $button); var $timeTravelControlReveal = $el('a', { onClick(e) { $timeTravelControl.style.display = 'initial'; e.target.style.display = 'none'; }, }, 'highlight new comments'); el.appendChild(document.createTextNode(' | ')); el.appendChild($timeTravelControlReveal); el.appendChild($timeTravelControl);
登入以回覆
土豆服务器,请按需使用
镜像地址随时可能被墙,建议加群获取最新地址
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址
Hide comment highlight controls under sublink
Nice job with this script.
I prefer to hide the highlight controls by default since they take some space, so here is code I added to achieve that. Replacing lines 464 to 466 with: