14 ms·
Nice, I'll try that. Here's my bookmarklet for highlighting recent comments (subtly for <1h old, less subtly for <10m old): javascript:var jq=document.creat
by graedus 12y ago
Nice, I'll try that. Here's my bookmarklet for highlighting recent comments (subtly for <1h old, less subtly for <10m old):
javascript:var jq=document.createElement("script");jq.src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";document.getElementsByTagName("head")[0].appendChild(jq);window.setTimeout(function(){jQuery.noConflict();jQuery("span.comhead:contains('minutes ago')").parent().parent().css("background","#fdfdf0");jQuery("span.comhead:contains(' 0 minutes ago'), span.comhead:contains(' 1 minutes ago'), span.comhead:contains(' 2 minutes ago'), span.comhead:contains(' 3 minutes ago'), span.comhead:contains(' 4 minutes ago'), span.comhead:contains(' 5 minutes ago'), span.comhead:contains( '6 minutes ago'), span.comhead:contains(' 7 minutes ago'), span.comhead:contains(' 8 minutes ago'), span.comhead:contains(' 9 minutes ago'), span.comhead:contains(' 10 minutes ago') ").parent().parent().css("background","#ffffe9")},500)
- nkurz 12y agoIt may not have been clear from sillysaurus3's comment, but the "hckrnews" extension defines "new" differently. It keeps a database of the last time that you've visited each page, and highlights all the comments that are new since your last visit. I use it as well, and it's great. When I access HN from a browser without it it feels practically unusable. My only issue with it is that I sometimes accidentally click on the "collapse thread" option. Ironically, considering the topic of this thread, I don't use or want that functionality, and would prefer an option to disable it. But highlighting the posts since the last visit is fabulous!