Live data from Hacker News

Tell HN: New features and a moderator

news.ycombinator.com

451–460 of 475 posts

Re: Tell HN: New features and a moderator

#451
post #401

Earlier quoted context omitted.

Presumably somewhere in the HN code you would find `karma > KARMA_THRESHOLD_DOWNVOTE`.

More likely (> karma downvote-threshold) since news.arc is written in, well, arc.

Good guess: https://news.ycombinator.com/item?id=7606467.

Re: Tell HN: New features and a moderator

#452

I found a potential bug/oddity. If you collapse a comment in a thread it also collapses when viewing the comments page on a user's profile, and visually it is very hard to spot when collapsed on that page due to the styling. For example, open the below link[0], collapse this comment, then refresh the link. The comment becomes quite hard to spot on that page. The red/orange star or vote button is also strangely missin…

This is a side-effect of how regular the HN codebase is at its best: when you make a change, you get it everywhere. It would require special code to make this not work on /threads pages. Perhaps we should do that, though.

Re: Tell HN: New features and a moderator

#453
post #446

Earlier quoted context omitted.

It would also be handy to have some visual guides for the indentation levels of nested comments as on Reddit. I've hacked my own indentation marks using a CSS injection for now, but this is clearly still not optimal: @-moz-document url-prefix(https://news.ycombinator.com/) { td { vertical-align: top } td > img { background: repeating-linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0) 38px, rgba(0,0,0,0.3) 38px, r…

Riffing off your code, this extends the bars all the way up/down. td.ind > img { background: repeating-linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0) 38px, rgba(0,0,0,0.1) 38px, rgba(0,0,0,0.1) 40px); margin-top: 0px; height: 100%; } table.comment-tree td, table.comment-tree tr, table.comment-tree th, table.comment-tree, table.comment-tree tbody, table.comment-tree table { margin: 0; padding: 0; border-spacin…

[deleted]

Re: Tell HN: New features and a moderator

#454
post #427

Having a Reddit-style inbox for responses to comments is urgently overdue. Most new users would never think to click on "threads" to find replies.

This still doesn't address new users, but you can use a third-party service like hnreplies.com.

That a third party service exists hints that this is a core feature long overdue.

Re: Tell HN: New features and a moderator

#455

Hey, good job there, much needed improvements. Thanks. There is a CSRF vulnerability in the "favorite" feature. A very quick demo, Visit this URL: https://jsfiddle.net/o9hw1u75/embedded/result/ Now visit your favs from your profile and you'll notice that "SQL Injection" post is automatically added your fav list. Just like upvote system fav needs to be protected against CSRF.

Whoops, good catch! Will fix. Edit: still can't believe I forgot about that after all these years...

Re: Tell HN: New features and a moderator

#456
post #446

Earlier quoted context omitted.

It would also be handy to have some visual guides for the indentation levels of nested comments as on Reddit. I've hacked my own indentation marks using a CSS injection for now, but this is clearly still not optimal: @-moz-document url-prefix(https://news.ycombinator.com/) { td { vertical-align: top } td > img { background: repeating-linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0) 38px, rgba(0,0,0,0.3) 38px, r…

Riffing off your code, this extends the bars all the way up/down. td.ind > img { background: repeating-linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0) 38px, rgba(0,0,0,0.1) 38px, rgba(0,0,0,0.1) 40px); margin-top: 0px; height: 100%; } table.comment-tree td, table.comment-tree tr, table.comment-tree th, table.comment-tree, table.comment-tree tbody, table.comment-tree table { margin: 0; padding: 0; border-spacin…

Slight addition using wider, shadowy gradients to conceal some aliasing issues:

    td.ind > img { opacity: 0 }
    td.ind {
        background: 
            linear-gradient(to left, rgba(246,246,240,1) 0px, rgba(246,246,240,1) 14px, rgba(246,246,240,0) 14px),
            repeating-linear-gradient(to right, rgba(0,0,0,0) 0px, rgba(0,0,0,0.03) 39px, rgba(0,0,0,0) 40px);
     }
Screenshot: https://i.imgur.com/f2WfHyp.png

Unfortunately it breaks on the 'threads' page.

Re: Tell HN: New features and a moderator

#457
post #390

> Scott is my cofounder from Skysheet Off-topic, but if anyone is interested in educating a non native speaker: why is the word "my" used here? Wouldn't this mean that Scott founded the author? Which doesn't make sense. Or does it mean that the author and Scott are both co-founders? Thanks for any input.

Many people have cofounders, but Scott is their particular cofounder. It's like saying "my dog" or "my house". The use of my doesn't change just because the noun changes.

I should add that if humans did have founders, then we would say "my founder".

But we don't. So understanding of that phrase depends on us knowing the use of the noun cofounder.

Re: Tell HN: New features and a moderator

#458

Hey, good job there, much needed improvements. Thanks. There is a CSRF vulnerability in the "favorite" feature. A very quick demo, Visit this URL: https://jsfiddle.net/o9hw1u75/embedded/result/ Now visit your favs from your profile and you'll notice that "SQL Injection" post is automatically added your fav list. Just like upvote system fav needs to be protected against CSRF.

Thanks for the report! This should now be fixed.

Re: Tell HN: New features and a moderator

#459
Favoriting doesn't appear to work for me. When I click on the 'favorite' link on an article page, I am taken to my favorites page, and nothing is shown added to the list. I only see the message "To add a story here, click on its timestamp to go to its page, then click 'favorite' at the top."

Using Firefox 47.0 on Ubuntu 16.04. uBlock Origin shows "0 requests blocked".

Re: Tell HN: New features and a moderator

#460
post #452

I found a potential bug/oddity. If you collapse a comment in a thread it also collapses when viewing the comments page on a user's profile, and visually it is very hard to spot when collapsed on that page due to the styling. For example, open the below link[0], collapse this comment, then refresh the link. The comment becomes quite hard to spot on that page. The red/orange star or vote button is also strangely missin…

This is a side-effect of how regular the HN codebase is at its best: when you make a change, you get it everywhere. It would require special code to make this not work on /threads pages. Perhaps we should do that, though.

Alternatively a style change would help massively. Even if the thread is hidden it should have the same anchoring on the page as a thread which is not, so the eye tracks the positional anchor.
Post reply on HN