Useful Roam Tips Any query like {and: [[A]] [[B]] }
can be replaced by using [[A+B]]
then loading that page when needed
datalog get block by edit datetime (in ms)
let queryText = `[ :find ?s ?uid ?et
:where
[?e :block/string ?s]
[?e :edit/time ?et]
[?e :block/uid ?uid]
[(> ?et 1627171251000)]]`;
window.roamAlphaAPI.q(queryText);
get title
var info = document.querySelector("[property='og:title']").getAttribute("content");
var pos = info.lastIndexOf(' by ');
var author = info.substring(pos);
var replacingchar = newchar+a.substr(pos);
console.log(replacingchar);