Utopian Moderators & Supervisors v0.0.10 – Steem Nodes Ping Tool + Sponsors Tab


Chrome Extension: Utopian Moderators & Supervisors

Utopian Moderators & Supervisors is a Chrome Extension that can be installed via Chrome Webstore.

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

Utopian Moderators & Supervisors, as its name suggests, help the moderators & supervisors during their moderation or supervision by providing a few useful tools, charts and statistics.

Technology Stack

Javascript that runs in Chrome Extension.

This Commit

This Commits version 0.0.10 Includes: Bug Fixes, Minor Tweaks, Code Refactoring, most importantly the following:

  • Steem Node Ping Tool
  • Sponsor Tab includes the list of Witness sponsors and Opted-out sponsors.

Screenshots of Utopian Chrome Extension

ping-tools Utopian Moderators & Supervisors v0.0.10 - Steem Nodes Ping Tool + Sponsors Tab chrome extension javascript SteemIt

This Ping Tool allows you to know the status and speed from you to the Steem Nodes:

witness-sponsors Utopian Moderators & Supervisors v0.0.10 - Steem Nodes Ping Tool + Sponsors Tab chrome extension javascript SteemIt

witness-sponsors

Github

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

Javascript Calling Utopian/Sponsor API

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
34
35
36
37
38
39
40
41
42
43
44
// get sponsor data
const getSponsors = (api, dom) => {
    logit("calling " + api);
    $.ajax({
        type: "GET",
        url: api,
        success: function(result) {
            let s = '';
            s += "<h3>Witness Sponsors</h3>";
            let data = result.results;
            let datalen = data.length;
            s += "<ul>";
            let count = 0;
            for (let i = 0; i < datalen; ++ i) {
                if (data[i]['is_witness']) {
                    s += "<li>" + getSteemUrl(data[i].account) + "</li>";
                    count ++;
                }
            }
            s += "</ul>";
            s += "<div>Total: <B>" + count + "</B><div>";
            s += "<h3>Opt-out Sponsors</h3>";
            s += "<ul>";
            count = 0;
            for (let i = 0; i < datalen; ++ i) {
                if (data[i]['opted_out']) {
                    s += "<li>" + getSteemUrl(data[i].account) + "</li>";
                    count ++;
                }
            }
            s += "</ul>";
            s += "<div>Total: <B>" + count + "</B><div>";
            dom.html(s);
        },
        error: function(request, status, error) {
            logit('Response: ' + request.responseText);
            logit('Error: ' + error );
            logit('Status: ' + status);
        },
        complete: function(data) {
            logit("API Finished: " + api);
        }             
    });        
}
// get sponsor data
const getSponsors = (api, dom) => {
    logit("calling " + api);
    $.ajax({
        type: "GET",
        url: api,
        success: function(result) {
            let s = '';
            s += "<h3>Witness Sponsors</h3>";
            let data = result.results;
            let datalen = data.length;
            s += "<ul>";
            let count = 0;
            for (let i = 0; i < datalen; ++ i) {
                if (data[i]['is_witness']) {
                    s += "<li>" + getSteemUrl(data[i].account) + "</li>";
                    count ++;
                }
            }
            s += "</ul>";
            s += "<div>Total: <B>" + count + "</B><div>";
            s += "<h3>Opt-out Sponsors</h3>";
            s += "<ul>";
            count = 0;
            for (let i = 0; i < datalen; ++ i) {
                if (data[i]['opted_out']) {
                    s += "<li>" + getSteemUrl(data[i].account) + "</li>";
                    count ++;
                }
            }
            s += "</ul>";
            s += "<div>Total: <B>" + count + "</B><div>";
            dom.html(s);
        },
        error: function(request, status, error) {
            logit('Response: ' + request.responseText);
            logit('Error: ' + error );
            logit('Status: ' + status);
        },
        complete: function(data) {
            logit("API Finished: " + api);
        }             
    });        
}

Previous Contributions

Roadmap of Utopian Moderators & Supervisors

Adding more graphs/data/analysis related to Sponsors.
Any good suggestions, please shout!

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...
810 words
Last Post: Python Script to Transfer SBD to Crytocurrency Exchange
Next Post: SteemTools v0.0.6 - Check Who Downvoted You + API Server Ping

The Permanent URL is: Utopian Moderators & Supervisors v0.0.10 – Steem Nodes Ping Tool + Sponsors Tab

Leave a Reply