Make Utopian Moderator Chrome Extension Perfect by Adding Posts and Tools Tab

in #utopian-io6 years ago (edited)

Utopian Moderators & Supervisor

Utopian Moderators & Supervisor is a Chrome Extension that is made exclusively for Utopian Moderators and Supervisors. It is available for download at the following Chrome Webstore:

https://chrome.google.com/webstore/detail/utopian-moderator-supervi/dcjdbldgiiboblbaconadffdaicicebc

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

Latest Version v0.0.8

This Commit: along with some bug fixes and minor tweaks, I am adding two tabs: Posts and Tools for showing the latest activities from @utopian-io and a simple tool to convert the raw reputation (in the future, this tab will be added with more useful tools).

image.png

image.png

New Dependency Library

The new features are based on steem.js. For example:

const getPosts = (id, dom, num = 10) => {
    steem.api.setOptions({ url: 'https://api.steemit.com' });

    var query = {
        tag: id,
        limit: num
    };

    steem.api.getDiscussionsByBlog(query, function (err, discussions) {
        console.log(err, discussions);
        if (!err) {
            discussions.map(function (discussion) {
                var li = document.createElement('li');
                li.innerHTML = "<font color=gray><I>" + discussion.created + "</I></font>: <a target=_blank href='https://steemit.com/@" + discussion.author + "/" + discussion.permlink + "'>" + discussion.title + "</a>" + " @" + discussion.author;
                dom.append(li);
            });
        }
    });
}

const getData = (id, dom, item) => {
    steem.api.setOptions({ url: 'https://api.steemit.com' });

    steem.api.getAccounts([id], function(err, result) {
        let s = "<ul>";
        console.log(result);
        $.each(item, function(index, value) {
            s += "<li><i>" + value + "</i>: " + result[0][value] + "</li>";
        });
        s += "</ul>";
        dom.html(s);
    });
}

Github

https://github.com/DoctorLai/utopian-moderator/

Previous Contributions

Technology Stack

Javascript that runs in Chrome.

Roadmap

This project is on fire!

  1. Add more handy tools/features regarding to the post.
  2. Add more global statistics.
  3. Add some real time statistics.

Chrome Webstore

Install the Utopian Chrome Extension Now!

Contribution Welcome

Github: https://github.com/DoctorLai/utopian-moderator

  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.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

moderator approved :)

Thank you for the contribution. It has been approved.

You can contact us on Discord.

[utopian-moderator]

Today I don't feel like doing anything..

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

That's a very good post. I really like to read it. Lots of knowledge contained therein. Thank you for giving me a very valuable lesson.

Coin Marketplace

STEEM 0.20
TRX 0.14
JST 0.030
BTC 64170.07
ETH 3425.12
USDT 1.00
SBD 2.59