LJ Notifier - Notification of new comments

    Due to problems with delivering comments to the mail, he wrote a small plug-in for Google Chrome. Now he just shows the number of new comments in the journal. If you click on the icon, a page with new comments will open , and the counter will be reset to zero.

    Updating occurs once a minute. For the plugin to work, you need to enter LiveJournal. If you are not logged in, you will see a gray cross, and clicking on the icon will open the LJ login page .

    In future versions, new comments will be displayed in the drop-down box.

    Link to the plugin: LJ Notifier .

    A few technical details


    The extension uses the native comment export interface . At first I tried to do authorization manually, but it turned out that XMLHttpRequest sends browser cookies. Therefore, if you have already visited LJ, then when you request pages through the extension, the magazine considers you logged in.

    In order to remove the badge from the icon, you need to assign an empty string to the text value:

    chrome.browserAction.setBadgeText({text: ''});

    I did not encounter any special difficulties during development. Writing extensions for chrome is a pleasure: the entire infrastructure is well thought out and care must be taken solely to solve the problem.

    Also popular now: