Idea by @ViktorTabori
- Add the js code to your
roam/jspage - Add the css code to your
roam/csspage
Idea by @ViktorTabori
roam/js pageroam/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); |