From 56548b4403c98c34f3dae5399ea3c5ce39d55ff8 Mon Sep 17 00:00:00 2001 From: swee Date: Sat, 30 Nov 2024 17:29:53 -0800 Subject: [PATCH] Update script.user.js --- script.user.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script.user.js b/script.user.js index 8188b45..7c7c056 100644 --- a/script.user.js +++ b/script.user.js @@ -17,6 +17,7 @@ if (document.querySelectorAll('[data-bs-theme]').length > 0) { // bootstrap 5, and this is how you make bootstrap go in dark mode document.documentElement.setAttribute('data-bs-theme', 'dark'); document.documentElement.classList.add("text-white"); // Make the text white with a class, rather than custom CSS. + console.info("This page uses BS5.") } else { // Dark mode patches for non-bootstrap pages const noBoostrapStyle = document.createElement('style'); @@ -36,5 +37,6 @@ if (document.querySelectorAll('[data-bs-theme]').length > 0) { } `; document.head.appendChild(noBoostrapStyle); + console.info("This page does NOT use BS5.") } document.head.appendChild(style); \ No newline at end of file