
I am glad to present to your attention a new version of the Habra extension (
previous topic ), which has learned how to show your correspondence with other habryers, as well as notify you about new personal messages.
The block for receiving habratopics (to reduce traffic) was also finalized and some common bugs were fixed.
Added reception and viewing of personal messages - tab "Privat". It contains private tabs “Contacts”, “Correspondence” and private events.
')
In contacts there are system folders "I read" and "I read", as well as "Recent contacts." In the last contacts are users with whom you have ever corresponded, and they are sorted by the time of the most recent message.
You can also create your own folders or so-called groups, in which you can later add users, thus conveniently listing all users with whom you have correspondence.
In the "Correspondence" list of users with whom you are currently communicating. On the right, you can see the habrayers, and below are their messages from the active box.
Clicking on the user's avatar (anywhere in the extension) opens his profile in a new tab.
You can add a user to the "correspondence" by simply clicking on his name anywhere in the application. All folders and messages are cached, and if necessary, update the messages in the folder from the server by clicking on the active folder. Under the folder name is a link to the tool and to open it in a new tab, use Ctrl.
New comments are marked in bold and with a plus sign with a counter to the number of new posts.
Private events are created from new habrayschiki and new comments in them. New private events are placed in the "New" tab and in the correspondence (the user will flicker, indicating that there is a new message from him).

Added display of additional information about the user - the time of registration and when was the last time on the site, as well as the real name.
Information is cached for 5 minutes (and is requested from the server only for active items).
Added settings:
- Upload your old correspondence . If enabled, your old personal correspondence will be loaded (for which the creation time is ahead of the extension installation time)
- Restriction of loading and checking correspondence, pages .
- Periodic rescanning correspondence, sec . How often will the entire list of your correspondence be rescanned for new messages? It was done in order to still find comments for you, if they missed through checking the live broadcast - due to the closure of the browser, the lack of the Internet, etc.
- The setting of the scanning frequency of the live broadcast has been extended to the scanning frequency of the live broadcast or the talk, sec . That is, it is used for both live and private chat. This is the same address, so the setting is one.
For now. Sending messages through an extension has not yet been implemented due to the technical limitations of the extensions architecture for Chrome and Opera.
Both browsers do not allow setting the Referer header in ajax requests, although the settings for this domain are set to rights.
In fact, this, as I believe, the bug does not allow you to create full extensions. Let's hope that this bug will be fixed.
I also tried to use one trick in Chrome with an iframe (
in Opera it doesn't work yet ), but it didn't work - either the habra has protection on the iframe, or it is a bug in Chrome. I will try to explore it better.
I believe that even without the ability to send messages through an extension, it is quite convenient and improves performance.
In the near future, I will be engaged in the QA section, as well as make versions for Safari and Firefox browsers.