Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Chat Mode for Hacker News (Live Comments Updater) (gist.github.com)
6 points by xpl on Sept 18, 2024 | hide | past | favorite
This is a userscript that you can use with Tampermonkey, or paste it to JS console.

I generated it with o1-preview, simply by pasting the HTML source of a HN page to the prompt and asking it to make a comment updating script.

And it worked flawlessly — great job, OpenAI! I'm impressed. What a time to be alive!

The prompt: https://chatgpt.com/share/66eb36c5-a55c-8005-9ee1-d42770297d...

The script fetches new comments every 10 seconds and inserts them to a proper place in the DOM, highlighting them with a nice color.

With this script, HN feels like a realtime chat in busy fresh posts! No more need to refresh the page.

Enjoy, fellow HN readers!



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: