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
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
- v0.0.9 Utopian Chrome Extension v0.0.9: Integrate Stats API + Add Node List
- v0.0.8 Make Utopian Moderator Chrome Extension Perfect by Adding Posts and Tools Tab
- v0.0.7 Utopian Moderator Chrome Extension: Improved Supervisor Tab by Showing Acceptance Rate and Pie Chart
- v0.0.6 Adding Supervisor Tab to Utopian Moderator Chrome Extension!
- v0.0.5 Adding Unreviewed Contrbution
- v0.0.4 Adding Approved/Rejected Stats, Showing Friends’ VP/Rep to Utopian Moderator Chrome Extension!
- v0.0.3 Adding Moderators Tab to Utopian Chrome Extension!
- v0.0.2 Adding Easy Switch Between Utopian and Steem Posts to Utopian Moderator Chrome Extension
- v0.0.1 The First Utopian Moderator Chrome Extension
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) —
loading...
Last Post: Python Script to Transfer SBD to Crytocurrency Exchange
Next Post: SteemTools v0.0.6 - Check Who Downvoted You + API Server Ping