Hacker News new | ask | show | jobs
by kuschku 3875 days 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>
1 comments

In 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.
In other words, it’s quite annoying. Especially when you want to do nested styling.