From 748eeb7b48af1f1179ea6f7c0a6c428ffe74db1b Mon Sep 17 00:00:00 2001 From: anarsec Date: Mon, 15 Apr 2024 19:07:30 +0000 Subject: [PATCH] hide darkmode icon in safest mode --- content/posts/tamper/index.md | 8 ++++---- themes/DeepThought/sass/deep-thought.sass | 6 +++--- themes/DeepThought/static/js/site.js | 2 ++ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/content/posts/tamper/index.md b/content/posts/tamper/index.md index 84984d9..534f463 100644 --- a/content/posts/tamper/index.md +++ b/content/posts/tamper/index.md @@ -92,9 +92,9 @@ This excerpt assumes that we take the cell phone with us, but [as discussed else
-* Once you have placed the bagged electronic devices in the container and covered them with a colorful mixture, take photos on this Haven phone using the Blink Comparison app. Send them to yourself via [Molly](/posts/e2ee/#signal) (with the Note to Self feature), [Element](/posts/e2ee/#element-matrix), or a [Cwtch group](/posts/e2ee/#cwtch). Close Blink Comparison so that the storage is encrypted. +* Once you have placed the bagged electronic devices in the container and covered them with a colorful mixture, take photos on this Haven phone using the Blink Comparison app. Send them to yourself via [Molly](/posts/e2ee/#signal) (with the Note to Self feature), or a [Cwtch group](/posts/e2ee/#cwtch). Close Blink Comparison so that the storage is encrypted. * When you return, use Blink Comparison on the Haven phone to verify with new photos. -* Extra: once your devices are out of storage, you can verify that the pictures you sent to yourself on Signal/Element/Cwtch don't differ from those on your Haven phone, and also compare the timestamp. Once the verification is complete, you can delete the photos so there is no confusion about which photos to use for future verifications. +* Extra: once your devices are out of storage, you can verify that the pictures you sent to yourself on Signal/Cwtch don't differ from those on your Haven phone, and also compare the timestamp. Once the verification is complete, you can delete the photos so there is no confusion about which photos to use for future verifications.
@@ -108,9 +108,9 @@ This excerpt assumes that we take the cell phone with us, but [as discussed else
-* Once you have placed the bagged electronic devices in the container and covered them with a colorful mixture, take photos using the Blink Comparison app. Send them to yourself via [Molly](/posts/e2ee/#signal) (with the Note to Self feature), [Element](/posts/e2ee/#element-matrix), or a [Cwtch group](/posts/e2ee/#cwtch). Turn off the device and hide it somewhere. +* Once you have placed the bagged electronic devices in the container and covered them with a colorful mixture, take photos using the Blink Comparison app. Send them to yourself via [Molly](/posts/e2ee/#signal) (with the Note to Self feature), or a [Cwtch group](/posts/e2ee/#cwtch). Turn off the device and hide it somewhere. * When you return, use Blink Comparison to verify with new photos. -* Extra: once your devices are out of storage, you can verify that the pictures you sent to yourself on Signal/Element/Cwtch don't differ from those on your GrapheneOS phone, and also compare the timestamp. Once the verification is complete, you can delete the photos so there is no confusion about which photos to use for future verifications. If the phone is found and the firmware or software is modified, Auditor will notify you. +* Extra: once your devices are out of storage, you can verify that the pictures you sent to yourself on Signal/Cwtch don't differ from those on your GrapheneOS phone, and also compare the timestamp. Once the verification is complete, you can delete the photos so there is no confusion about which photos to use for future verifications. If the phone is found and the firmware or software is modified, Auditor will notify you.
diff --git a/themes/DeepThought/sass/deep-thought.sass b/themes/DeepThought/sass/deep-thought.sass index 6739838..52e7cca 100644 --- a/themes/DeepThought/sass/deep-thought.sass +++ b/themes/DeepThought/sass/deep-thought.sass @@ -508,9 +508,6 @@ $footer-padding: 1.0rem 2.5rem .navbar-end flex-wrap: wrap!important - /* hide for 1023px instead of default 768px */ - .is-hidden-mobile - html scroll-behavior: smooth @@ -523,6 +520,9 @@ body section flex: 1 +#dark-mode + display: none + .menu position: sticky top: 48px diff --git a/themes/DeepThought/static/js/site.js b/themes/DeepThought/static/js/site.js index 648ea73..85b9b16 100644 --- a/themes/DeepThought/static/js/site.js +++ b/themes/DeepThought/static/js/site.js @@ -63,6 +63,8 @@ function documentReadyCallback() { document.getElementById("dark-mode").setAttribute("title", "Switch to light theme"); } + document.getElementById("dark-mode").style.display = "inline"; + document.getElementById("dark-mode").addEventListener("click", () => { if ( localStorage.getItem("theme") == null ||