Optimize minified scripts

This commit is contained in:
Bad Manners 2024-08-27 13:26:39 -03:00
parent f57ba9ddc4
commit ad03c0a6d0
5 changed files with 11 additions and 11 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "badmanners.xyz",
"version": "2.1.6",
"version": "2.1.7",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "badmanners.xyz",
"version": "2.1.6",
"version": "2.1.7",
"hasInstallScript": true,
"dependencies": {
"@astrojs/check": "^0.9.2",

View file

@ -1,7 +1,7 @@
{
"name": "badmanners.xyz",
"type": "module",
"version": "2.1.6",
"version": "2.1.7",
"scripts": {
"postinstall": "astro sync",
"dev": "astro dev",

View file

@ -13,7 +13,7 @@ notes = "All rights reserved."
notes = "The briefcase logo is copyrighted and trademarked by me. All rights reserved."
[[copyright.additional]]
notes = "The character/fursona Sam Brendan is copyrighted and trademarked by me. All rights reserved."
notes = "The character Sam Brendan is copyrighted and trademarked by me. All rights reserved."
[[attributions]]
description = "Reference sheet of Sam Brendan, a mimic x maned wolf hybrid."
@ -40,7 +40,7 @@ description = "Icons for third-party brands."
type = "icons"
source = "https://simpleicons.org"
license = { name = "CC0 1.0 Universal", url = "https://creativecommons.org/publicdomain/zero/1.0/" }
icons = [
items = [
"Bluesky",
"Codeberg",
"Discord",
@ -68,7 +68,8 @@ notes = "All third-party copyrights and trademarks belong to their respective ow
description = "Edited icons for other websites."
type = "icons"
author = "Bad Manners <me@badmanners.xyz>"
icons = [
license = { name = "CC0 1.0 Universal", url = "https://creativecommons.org/publicdomain/zero/1.0/" }
items = [
"Cohost",
"Eka's Portal",
"Fur Affinity",
@ -79,9 +80,8 @@ icons = [
"SoFurry",
"SubscribeStar",
]
license = { name = "CC0 1.0 Universal", url = "https://creativecommons.org/publicdomain/zero/1.0/" }
notes = """
Original icons edited for non-commercial use.
Original icons edited for personal use and released under a permissive license.
All third-party copyrights and trademarks belong to their respective owners, \
and I'm not affiliated with any of them."""
@ -91,7 +91,7 @@ description = "Generic icons."
type = "icons"
source = "https://fontawesome.com"
license = { name = "CC-BY-4.0", url = "https://creativecommons.org/licenses/by/4.0/" }
icons = [
items = [
"arrow-up-right-from-square",
"briefcase",
"comment-dots",

View file

@ -1,4 +1,4 @@
---
---
<script is:inline>(function (){let b=document,c="#modal-age-restricted",d="true",e=b.querySelector("body > "+c),f="ageVerified",g="searchParams",h=localStorage,i=new URL(b.location),j=history;i[g].get(f)===d&&(h[f]=d,j&&(i[g].delete(f),j.replaceState({},"",i)));e&&(h[f]===d?b.querySelectorAll("a[href][data-age-restricted]").forEach(x=>{let y=new URL(x.href);y[g].set(f,d);x.href=y.href}):((b.body.style.overflow="hidden"),b.querySelectorAll("body > :not("+c+")").forEach(x=>x.setAttribute("inert",d)),(e.style.display="block")))})()</script>
<script is:inline>(a=>{let b="body > ",c="#modal-age-restricted",d="true",e="ageVerified",f="searchParams",g=localStorage,h=new URL(a.location),i=x=>a.querySelectorAll(x),j=i(b+c)[0];h[f].get(e)==d&&(g[e]=d,h[f].delete(e),history.replaceState({},"",h));j&&(g[e]==d?i("a[href][data-age-restricted]").forEach(x=>{let y=new URL(x.href);y[f].set(e,d);x.href=y}):((a.body.style.overflow="hidden"),i(b+":not("+c+")").forEach(x=>x.setAttribute("inert",d)),(j.style.display="block")))})(document)</script>

View file

@ -1,4 +1,4 @@
---
---
<script is:inline>(function (){var b="dark",c="auto",d="colorScheme",e=document.body.classList,f=localStorage,g=f[d];g&&g!==c?g===b&&e.add(b):(f[d]=c,matchMedia("(prefers-color-scheme: dark)").matches&&e.add(b))})()</script>
<script is:inline>(a=>{var b="dark",c="auto",d="colorScheme",e=a.body.classList,f=localStorage,g=f[d];g==c?(f[d]=c,matchMedia("(prefers-color-scheme: dark)").matches&&e.add(b)):g==b&&e.add(b)})(document)</script>