Skip to content

Instantly share code, notes, and snippets.

@caffo
Last active May 18, 2021 20:13
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save caffo/2b28343a60a18000c581be48aa286877 to your computer and use it in GitHub Desktop.
fuckline for roam research

Fuckline for roam

Idea by @ViktorTabori

Demo

demo

Instructions

  • Add the js code to your roam/js page
  • Add the css code to your roam/css page
.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;
}
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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment