2 ms·
Can you imagine how hard it was to write a browser addon that allows collapsing a specific subthread of comments? I have to calculate the indent of a comment b
by kuschku 11y ago
Can you imagine how hard it was to write a browser addon that allows collapsing a specific subthread of comments?
I have to calculate the indent of a comment based on the width of an image in the table layout!
Instead of nested tags for comments like
<comment>
<text>
<list-of-comment>
<comment>
...
</comment>
<comment>
...
</comment>
</list-of-comment>
</comment>
these people have all comments on main level, just indented with image width!
<tr><td><image src="" width="40"></td><td>Text</td></tr>
<tr><td><image src="" width="60"></td><td>Text</td></tr>
<tr><td><image src="" width="60"></td><td>Text</td></tr>
<tr><td><image src="" width="20"></td><td>Text</td></tr>
- SamReidHughes 11y agoIn other words, it's very easy? I've made the equivalent of a browser addon for HN before, the only source of difficulty was when the markup changed.
- kuschku 11y agoIn other words, it’s quite annoying. Especially when you want to do nested styling.