📜 ⬆️ ⬇️

HabraRate - an extension for the Habr's comment filter

Thought how you read the comments on the topics on Habré? I read all the comments from the topics that can teach me something new. If the topic is entertaining or doesn’t really need to be commented, then the first 10-20 comments should be read, then a look begins to look for filled-in and written comments. I usually read them and the discussion around them.

To make it easier to do, I wrote an extension to Google Chrome - HabraRate. It allows you to set a filter of comments by rating using two sliders.

Paul katom link and screenshots of the expansion.

')
Extension page: https://chrome.google.com/extensions/detail/efiednkdioaeeonknpemkbdllhnohkgm
Update the page with any topic where there are comments after installation

Good guys:
image

Bad guys:
image

Also, the extension allows you to show the parent and nested comments to the filtered comments. When you hover on the header of the comment, if he has parents or children, green arrows will appear.

For those who want to write an extension for chrome, I can recommend the following steps:
- Want to write your own extension that solves a specific everyday task.
- Go to the catalog of your chrome profile, find the Extensions folder there and see how the more experienced people write extensions (preset yourself a couple of extensions). There you will see, then the extension is a set of HTML, JS, and CSS files. You can use any js / css frameworks, store data on any server, in local storage. For example, my extension uses jquery, jqueryui, and localStorage to store the position of the sliders.
- Go to code.google.com/chrome/extensions/getstarted.html and see that Google has documented everything perfectly.
- Immediately start writing the extension. This is a strange feeling. It seems that you write something on html-css-js, but at the same time you understand that no one will launch it on IE6,7. Canvas, CSS3 - everything is in your hands and is guaranteed to work.

UPD. I made a public repository of the extension on github - github.com/magwai/habrarate. If you want to develop and listen - please.

Source: https://habr.com/ru/post/94594/


All Articles