Rodrigo Franco's Notes

Fuckline for Roam

Demo

Instructions

Code

// JAVASCRIPT CODE
function styleFuckLists(tag){
  let list = tag.closest(".flex-v-box").children[1];
  list.classList.add("fuckline");

}
function scanForFucklines(){
  document.querySelectorAll(".fuckline").forEach((e) => e.classList.remove("fuckline"));
  document.querySelectorAll("span[data-tag=fuckline]").forEach(styleFuckLists);
}

console.log("starting fuckline"); 
setInterval(scanForFucklines, 1000);
/* CSS CODE */
.fuckline > .roam-block-container:nth-child(-n+3){
  opacity: 1.0;
}

.fuckline > .roam-block-container:nth-child(4)::before{
    content: "fuckline";
    border-bottom: 1px solid red;
    font-size: 12px;
}

.fuckline > .roam-block-container {
  opacity: 0.4;
}

Concept by @ViktorTabori