This commit is contained in:
nelle 2024-08-24 03:11:56 -06:00
parent 41b2e51daa
commit 7a673cd588
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,7 @@
// IF YOU EDIT ANYTHING IN HERE DONT FORGET TO EDIT THE SCRIPT IN LAYOUT.ASTRO BECAUSE FUCK ME
function enableSGA() { function enableSGA() {
document.getElementById("body").style.fontFamily = "standardGalactic, system-ui"; document.getElementById("body").style.fontFamily = "standardGalactic, system-ui";
document.getElementById("body").style.fontWeight = "lighter";
sessionStorage.setItem("sgaEnabled", 1); sessionStorage.setItem("sgaEnabled", 1);
console.debug(sessionStorage.getItem("sgaEnabled")); console.debug(sessionStorage.getItem("sgaEnabled"));
} }

View file

@ -29,10 +29,10 @@ const { title } = Astro.props;
src="/scripts/fuckchrome.js" src="/scripts/fuckchrome.js"
></script> ></script>
<script type="text/javascript"> <script type="text/javascript">
// IF YOU EDIT ANYTHING IN HERE DONT FORGET TO EDIT THE SCRIPT IN SGA.JS BECAUSE FUCK ME
if (sessionStorage.getItem("sgaEnabled")) { if (sessionStorage.getItem("sgaEnabled")) {
document.getElementById("body").style.fontFamily = document.getElementById("body").style.fontFamily =
"standardGalactic, system-ui"; "standardGalactic, system-ui";
document.getElementById("body").style.fontWeight = "lighter";
sessionStorage.setItem("sgaEnabled", 1); sessionStorage.setItem("sgaEnabled", 1);
console.debug(sessionStorage.getItem("sgaEnabled")); console.debug(sessionStorage.getItem("sgaEnabled"));
} }