SteemTools v0.0.2 New Features: Query Delegatees and Basic Search and More

in #utopian-io7 years ago (edited)

SteemTools

SteemTools is a Chrome Extension that aims to provide useful tools and information in your Chrome browser. It is inspired by its sister project: Utopian Moderators & Supervisors

Github

https://github.com/DoctorLai/SteemTools/

Previous Contributions

Technology Stack

Javascript that runs in the Chrome Browser (Chrome Extension)

Chrome Webstore

It is online, and you can install SteemTools via:
https://chrome.google.com/webstore/detail/steem-tools/emjfpeecopppojbhkigjjmcahbfahhbn

If you are using Firefox, you can still install this Extension by Chrome Extension Foxified

New Features of v0.0.2

Along with Bug fixes and code refactoring, this new version adds the following features:

  1. Allow users to query the list of delegatees
  2. Allow users to query the basic information (reputation, voting power, account value) of a given ID
  3. Show account value in the general tab
  4. Change shortcut from Alt+S to Alt+W (so it doesn't conflict with Utopian Moderators!)

Commits

Here

Screenshots

account value is shown in the general tab.
image.png

@mkt 's reputation is incorrectly shown as 70, which I have raised a bug in here
image.png

enter the steem account you would like to search the delegatees.
image.png

Roadmap of Steem Tools

  1. UI Language Setting
  2. Add Downvote Checker
  3. Add Delegator/Delegatee List Checker
  4. Steemit Top 100 Delegations
  5. SteemIt Followers/Votes Checker
  6. Steemit Incoming Votes Report
  7. Steemit Payout Report
  8. Steemit Outgoing Votes Report
  9. Steemit Who Resteem Your Posts?
  10. Steemit Recover Deleted Posts/Comments
  11. and more...

Some code that is based on Steem-JS

// get reputation 
const getRep = (id, dom, server) => {
    server = server || default_node;
    steem.api.setOptions({ url: server });

    steem.api.getAccounts([id], function(err, result) {
        if (!err) {
            dom.html("<i>@" + id + "'s Reputation is</i> <B>" + steem.formatter.reputation(result[0]['reputation']) + "</B>");
            logit("getRep Finished: " + server + ": " + id);
        } else {
            logit("getRep Error: " + err);
        }
    });    
}

// get account value
const getAccountValue = (id, dom, server) => {
    server = server || default_node;
    steem.api.setOptions({ url: server });

    steem.api.getAccounts([id], function(err, result) {
        if (!err) {
            var av = steem.formatter.estimateAccountValue(result[0]);
            av.then(x => {
                dom.html("<i>@" + id + "'s Account Value is</i> <B>$" + x + "</B>");
            });
            logit("getAccountValue Finished: " + server + ": " + id);
        } else {
            logit("getAccountValue Error: " + err);
        }
    });    
}

// get voting power
function getVP(id, dom, server) {
    server = server || default_node;
    steem.api.setOptions({ url: server });

    steem.api.getAccounts([id], function(err, response) {
        if (!err) {
            let result = (response[0].voting_power) / 100;
            dom.html("<i>@" + id + "'s Voting Power is</i> <B>" + result + "%</B>");
            if (result < 30) {
                dom.css("background-color", "red");
            } else if (result < 60) {
                dom.css("background-color", "orange");
            } else {
                dom.css("background-color", "green");
            }
            dom.css("color", "white");
            dom.css("width", result + "%");
            logit("API Finished: VP - " + server + ": " + id);
        } else {
            logit("API error: " + server + ": " + err);
        }
    });   
}

License

MIT

Contribution Welcome

Github: https://github.com/DoctorLai/SteemTools/

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request.

Chrome Webstore

Install the SteemTools Chrome Extension Now!



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Posting a very useful and helpful for all of us thanks friend

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Thanks for working on these great tools!

Hey @justyy I am @utopian-io. I have just upvoted you!

Achievements

  • WOW WOW WOW People loved what you did here. GREAT JOB!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

插件比原来网页用着还方便一些,偶像威武!

嗯, 是的,就是简单明了,以后会慢慢把网页版的都移过来。

Coin Marketplace

STEEM 0.16
TRX 0.15
JST 0.028
BTC 59185.23
ETH 2319.64
USDT 1.00
SBD 2.46