Add ‘Steem-JS’ console to SteemTools!


I am a Utopian moderator and sometimes I need to quickly evaluate a few steem-js bugs. I have added a console so that I can quickly experiment something in the SteemTool chrome extension.

SteemTools Introduction

SteemTools is inspired by its sister project: Utopian Moderators & Supervisors and it provides a set of useful data, tools, statistics for SteemIt Users.

Github

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

Previous Contributions

  • SteemTools v0.0.3 New Features: Query Delegators and Nodes/Server Configuration
  • SteemTools v0.0.2 New Features: Query Delegatees and Basic Search and More
  • SteemTools v0.0.1

Technology Stack

Javascript that runs in the Chrome Browser (Chrome Extension)

Chrome Webstore

It is online, and you can install SteemTools via Google Webstore.

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

New Features of SteemTools v0.0.3

Add Steem-Js Console.

Commits

Github

How to Enable Javascript Eval Function in Chrome Extension?

Put the source code in the code editor under Steem-Js Tab, and the code will be evaulated via eval which we enable after adding the following to the manifest.json.

"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",

And you can use Alt + Enter to run the source and Alt + BACKSPACE to clear the console.

1
2
3
4
5
6
7
8
9
10
// alt + enter to evaluate
// alt + backspace to clear
$('textarea#steemjs-source').keydown(function (e) {
  if (e.altKey && e.keyCode == 13) {
    $('input#btn_run').click();
  }
  if (e.altKey && e.keyCode == 8) {
    $('input#btn_clear').click();
  }        
});  
// alt + enter to evaluate
// alt + backspace to clear
$('textarea#steemjs-source').keydown(function (e) {
  if (e.altKey && e.keyCode == 13) {
    $('input#btn_run').click();
  }
  if (e.altKey && e.keyCode == 8) {
    $('input#btn_clear').click();
  }        
});  

Screenshots of Steem-JS console

steem-js-console Add 'Steem-JS' console to SteemTools! chrome extension javascript SteemIt

steem-js-console

Roadmap of Steem Tools

License

MIT

Chrome Webstore

Install the SteemTools Chrome Extension Now!

Contribution Welcome

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

  • 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...
798 words
Last Post: SteemTools v0.0.3 New Features: Query Delegators and Nodes/Server Configuration
Next Post: SteemTools v0.0.5 - Reveal Deleted Comments, Load and Save Steem-Js!

The Permanent URL is: Add ‘Steem-JS’ console to SteemTools!

Leave a Reply