Example addon demonstrating bidirectional data channels.
Install the tampermonkey script, drop the addon.js code in the top of your botcode.
Example script:
var mining = UI.toggle("Harvesting", {def: true});
UI.line();
UI.beginCol();
UI.label("Harassers");
UI.line();
UI.label("Buffer");
UI.line();
UI.label("Attacking");
UI.endCol();
UI.beginCol({grow: true});
var harassing = UI.range("harassing", 0, 100);
UI.line();
var buffer = UI.range("buffer", 0, 50);
UI.line();
var attacking = UI.range("attacking", 0, 1000);
UI.endCol();
UI.done();