Improvement for wood Habr comments

Some articles cause lively discussion with hundreds of comments, branches which take two screens at 1280x1024.

For example, here on this screenshot it's easy to get lost in the levels comments.

I wanted to comment was to feature the vertical lines minus to which we are accustomed in many modern editors. And I did it on the weekends.

Compare with screenshot after.









Description


I use Opera, but I think this solution is easy to adapt to use Firefox too.

Extras: pietrovich ported to use Firefox, see next page.

In Opera for each site you can assign your own styles (CSS) scripts (javascript).
    the
  1. did for the Opera custom styles that add a light translucent vertical lines to show the nesting level of the comment.
  2. the
  3. did a custom script after page load adds to each comment the minus button, which allows you to collapse the text, comments and all nested comments (replies).


Installation


    the
  1. Download the latest version from http://yfka-lipt.narod.ru/habr/habr_opera.zip
  2. the
  3. Unpack the directory habr somewhere
    (a good practice to store settings in the user's home directory, I put all the data next to the Opera)
  4. the
  5. Open home page Habra in Opera and click the right mouse button;
    in the appeared menu choose
    Edit Site Preferences... (Preferences for the site...)

  6. the
  7. Select the Display tab (View).
    In it, then click Choose...(Browse...) and select the file habr.css in the unzipped directory.

  8. the
  9. Select the tab Scripting (Scripting).
    In it, then click Choose...(Browse...) and choose now unpacked directory habr.

  10. the
  11. Click OK.
    And refresh the page F5.

Opinion


Personally, I this module has become much easier.
It OpenSRS without any restrictions. Improve, modify, use as you want.


PS Moved into a group blog.
(Thanks for the karma).
Article based on information from habrahabr.ru

Комментарии

Популярные сообщения из этого блога

Monitoring PostgreSQL + php-fpm + nginx + disk using Zabbix

Templates ESKD and GOST 7.32 for Lyx 1.6.x

Customize your Google