From 7a5bc3b08a737f15c8c7242a5d6d7197996f4bb5 Mon Sep 17 00:00:00 2001 From: Cheslav Zhuravsky Date: Wed, 11 Sep 2024 12:50:22 +0700 Subject: [PATCH] force change theme to black --- logseq/custom.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/logseq/custom.js b/logseq/custom.js index f5d2cdb..6509a30 100644 --- a/logseq/custom.js +++ b/logseq/custom.js @@ -1 +1,10 @@ +// change theme to black +if (document.querySelector("html").getAttribute("data-theme") === "light") { + document.querySelector("html").setAttribute("data-theme", "dark"); + + document.querySelector("body").classList.remove("light-theme"); + document.querySelector("body").classList.remove("white-theme"); + document.querySelector("body").classList.add("dark-theme"); +} + document.querySelector(".journals-nav .flex-1").innerHTML = "Blog";