Hello
I wrote an extension for chrome, one of the most popular browsers for you. Extension purpose;
With Chrome extensions replies to me you can see the latest answers written to you. You can view the last comments, user name and date by simply clicking on the extension's icon without opening the extension's intended web page.
Github
https://github.com/Nereli/Steemit-replies-to-me-chrome-extensions
manifest.json:
We are writing general information about Plugin Name, Description, Version, Logotype and permissions.
Steemit.html:
We are preparing the page that will be opened when we click on the log on the top right of Chrome browser.
Extension.js:
localStorage['SteemitContents'] => We store all "replies to me".
$.get("http://steemit.com",function (Sources) => We connect to steemit.com. We are transferring the incoming result into the sources.
var UserName = $(Sources).find('.c-sidebar__link').attr('href'); => We find the username.
var Url = 'https://steemit.com' + UserName + '/recent-replies'; => We create the URL link address.
$.get(Url,function (Source) { => We connect to the URL link. We are transferring the incoming result into the sources.
$(Source).find(".articles__summary").each(function(Key, Value) { => We loop through all "replies to me" and transfer them to localStorage ['SteemitContents'].
setInterval(function(){ Check(); },55000); => We check every 55 seconds for new content.
Best Regards
Posted on Utopian.io - Rewarding Open Source Contributors