HNHacker News
TopNewBestAskShowJobs

sir-g

6 karma · joined October 10, 2021

submissionscomments
sir-g··on YouTube no longer suggests videos if your ‘watch history’ is turned off
Liked Videos playlist
sir-g··on Regex Isn't Hard
I agree with the title but almost nobody uses regex the way he described it. If you're going to work with other people's code you'll have to learn \w \d and \s
sir-g··on Ask HN: Most interesting tech you built for just yourself?
Here you go: https://github.com/seriypshick/js-bookmarks/blob/main/hn-nex...
sir-g··on Ask HN: Most interesting tech you built for just yourself?
No, I didn't realize there's already a feature like that. But as the other commenter said, it jumps around, so, I still prefer my solution.
sir-g··on Ask HN: Most interesting tech you built for just yourself?
I wrote a JS bookmark that lets me jump to the next top-level comment on HN. I use it for finding interesting conversions without having to scroll and look for the next top-level comment.

It works by finding all of the comments with indent=="0". Then, each time the bookmark is clicked, it creates and follows a link. Each comment has a unique id so I just have to concatenate current_url + "#" + unique_id and follow that link.

Once the script reaches the bottom, it follows the "more comments" link and repeats the same process.

I plan to write something similar for Reddit

sir-g··on ChatGPT Will Replace Programmers Within 10 Years
If anyone will be able to generate programs using AI then we'll have more programmers, not less