Rename to hkt.sh

This commit is contained in:
mango
2026-03-21 01:10:53 +08:00
parent 76a263d0f9
commit 8f1171fe99
6676 changed files with 1724268 additions and 0 deletions

31
tmp/fix-nezha-css.py Normal file
View File

@@ -0,0 +1,31 @@
import re
with open("/tmp/nezha-config-raw.yaml") as f:
content = f.read()
content = re.sub(r"custom_code:.*\n?", "", content)
css = (
'<style>'
'body{background:url(/static/bg.jpg) no-repeat center center fixed!important;background-size:cover!important}'
'#root,.loaded,.bg-background{background:transparent!important}'
'main{background:transparent!important}'
'main>div>div{background:rgba(255,255,255,0.15)!important;'
'backdrop-filter:blur(16px) saturate(180%)!important;'
'-webkit-backdrop-filter:blur(16px) saturate(180%)!important;'
'border:1px solid rgba(255,255,255,0.18)!important;'
'border-radius:16px!important;'
'box-shadow:0 8px 32px rgba(0,0,0,0.1)!important}'
'header,nav{background:rgba(255,255,255,0.1)!important;'
'backdrop-filter:blur(12px)!important;'
'-webkit-backdrop-filter:blur(12px)!important}'
'footer{background:transparent!important}'
'</style>'
)
content = content.rstrip() + '\ncustom_code: "' + css + '"\n'
with open("/tmp/nezha-config-fixed.yaml", "w") as f:
f.write(content)
print("done")