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


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 the Chrome Webstore.

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).

utopian-chrome-extension-posts-tab Make Utopian Moderator Chrome Extension Perfect by Adding Posts and Tools Tab chrome extension javascript SteemIt

utopian-chrome-extension-posts-tab

utopian-chrome-extension-reputation-calculator Make Utopian Moderator Chrome Extension Perfect by Adding Posts and Tools Tab chrome extension javascript SteemIt

utopian-chrome-extension-reputation-calculator

NEW DEPENDENCY LIBRARY: Steem.Js to Get Latest Posts and Data

The new features are based on steem.min.js. For example the following Javascript gets the latest posts and the basic profile data from @utopian-io.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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);
    });
}
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);
    });
}

Utopian Chrome Extension Github Project

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

Previous Contributions

Technology Stack

Javascript that runs in Chrome.

Roadmap of Utopian Chrome

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

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am ‘Add some feature’
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request.

–EOF (The Ultimate Computing & Technology Blog) —

GD Star Rating
loading...
748 words
Last Post: Utopian Moderator Chrome Extension: Improved Supervisor Tab by Showing Acceptance Rate and Pie Chart
Next Post: Chrome Extension - SteemTools v0.0.1

The Permanent URL is: Make Utopian Moderator Chrome Extension Perfect by Adding Posts and Tools Tab

Leave a Reply