Thank you. Had already checked and just did again.
I understand some JS can be run using those, but I dont see how / if the obsidian API is exposed for that JS to be able to edit the current page text, for instance.
The buttons plugin comes close but does not have an option to replace in the current note, just add / remove lines.
I will most likely end up making some quick-dirty plugin to do the few things I need.
Thanks again!
After reading again I managed a way to, using a button and a template, replace the checked boxes with empty boxes.
But its very tricky and seems to work randomly (depending on the rendering speed I think).
So I need to press the button several times.
Template:
<%*
//get file content and replace checked boxes for unchecked
var noteContent = tp.file.content.replaceAll ("[x]","[ ]");
//select all in note
let cmEditorAct = this.app.workspace.activeLeaf.view.editor;
cmEditorAct.setSelection({ line: 0, ch: 0 }, { line: 9999, ch: 9999 });
//replace content + set cursor at the start
cursor = tp.file.cursor(0);
tR = cursor + noteContent.split("<%*")[0];
%>
Button:
name Uncheck checkboxes
type append template
action templater.uncheckCheckboxes
templater true