Hello!
I think the best way for you to achieve this given our current APIs is to define a
custom field that you insert or remove depending on whether you want the badge to be shown or hidden.
You can insert the badge field at the top left of every block by doing the following:
```
function show() {
const blocks = myWorkspace.getAllBlocks()
for (let i = 0; i < blocks.length; i++) {
blocks[i].inputsList[0].insertFieldAt(0, new myBadgeField(), 'BADGE');
}
}
```
To remove them you can do:
```
function hide() {
const blocks = myWorkspace.getAllBlocks()
for (let i = 0; i < blocks.length; i++) {
blocks[i].inputsList[0].removeField('BADGE');
}
}
```
I hope that helps! If you have any further questions please reply =)
--Beka