mirror of
https://github.com/Mabbs/mabbs.github.io
synced 2026-02-13 12:52:23 +08:00
Compare commits
4 Commits
1553183d31
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ab6982684 | ||
|
|
172882a99e | ||
|
|
d69f175fee | ||
|
|
9760f9eb4d |
@@ -173,5 +173,6 @@
|
||||
"/2025/10/12/recover.html": "这篇文章讲述了作者通过GitHub的Fork特性找回一个被删除的Brainfuck可视化演示仓库的经历。由于原仓库和作者主页都已消失,作者推测GitHub在Fork时会共享对象库,只要有任意一个Fork仓库存在,GitHub就会保留所有对象,从而可以通过找到一个Fork仓库的最新提交Hash值来还原目标仓库。作者通过Linux内核仓库的Fork进行验证,随后在互联网档案馆上找到目标仓库的Fork以及其Hash值,最终通过Git命令将本地仓库的HEAD指针指向目标提交,成功恢复了该仓库的代码,并将其部署到自己的GitHub Pages上。最后,作者发现Software Heritage组织会保存所有代码,因此在遇到类似情况时可以直接通过该平台进行查找。",
|
||||
"/2025/11/01/mirrors.html": "这篇文章讲述了作者为了提高博客的可靠性,探索利用被滥用的Git平台进行博客镜像的想法和实践。作者发现一些Git实例存在大量空仓库和异常用户,怀疑是SEO公司滥用,因此决定利用这些平台进行博客镜像备份,以应对平台倒闭或数据丢失的风险。作者选择Gitea和Forgejo平台作为目标,编写脚本自动注册账号并导入博客仓库,实现了自动化镜像分发。作者也意识到此类平台的稳定性存在不确定性,并思考了“量”和“质”两种方式确保博客永恒性的优劣,最终认为建立一个活跃的、自动执行维护操作的网络可能更有效。文章最后展示了作者创建的Git镜像列表,并表达了对博客永恒性的思考。",
|
||||
"/2025/12/01/linux.html": "这篇文章介绍了在浏览器中运行Linux的各种方法,从最初的纯JS虚拟机JSLinux,到后来的WASM虚拟机如v86、WebVM、WebCM,再到容器化方案container2wasm,以及直接将Linux内核编译为WASM的方案。作者详细对比了这些方案的优缺点,包括性能、兼容性、功能和开发难度。文章还提到了模仿Linux环境的WebContainers和JupyterLite,并最终认为虚拟机方案更靠谱,但对WASM的未来充满期待。作者最后表示,博客上添加类似功能的计划还在考虑中,目前主要分享了各种方法的探索过程。",
|
||||
"/2026/01/01/summary.html": "这篇文章介绍了作者对2025年的年终总结,主要表达了对自身状态的担忧和对未来的不确定感。作者认为自己在记忆和思考能力方面有所下滑,稳定性较低,且未能抓住资产保值的机会。同时,文章也记录了AI技术的飞速发展,以及自己博客内容与时代脱节的现象。尽管对未来感到迷茫,作者仍然抱有一丝希望,期望在2026年做出正确的选择,避免陷入危险。"
|
||||
"/2026/01/01/summary.html": "这篇文章介绍了作者对2025年的年终总结,主要表达了对自身状态的担忧和对未来的不确定感。作者认为自己在记忆和思考能力方面有所下滑,稳定性较低,且未能抓住资产保值的机会。同时,文章也记录了AI技术的飞速发展,以及自己博客内容与时代脱节的现象。尽管对未来感到迷茫,作者仍然抱有一丝希望,期望在2026年做出正确的选择,避免陷入危险。",
|
||||
"/2026/02/08/xslt.html": "这篇文章讲述了Google计划弃用XSLT技术,以及作者对这一决定的调查和应对方案。Google基于XSLT用户占比低、库存在漏洞等原因,建议将其从Web标准中删除。作者发现许多用户依赖XSLT进行博客订阅美化,甚至将其作为博客框架。为了对抗这一趋势,有人创建了网站https://xslt.rip,并开发了Polyfill库,通过WASM方式保持XSLT功能。虽然Polyfill库需要额外引用JS代码,但作者已将其提交至CDNJS。随后,作者探讨了替代方案,包括使用纯CSS美化订阅源(由AI生成feed.css),以及混合XHTML的方式,通过添加XHTML命名空间来实现链接等功能,但这种方法会产生“不纯粹”的警告。文章最后总结,技术可能会消失,但总有其他技术可以解决问题,并强调了适应浏览器厂商决策的重要性。"
|
||||
}
|
||||
@@ -20,3 +20,4 @@ Lanke's blog,https://blog.blueke.top/,https://blog.blueke.top/rss.xml,请为一
|
||||
Pinpe 的云端,https://pinpe.top/,https://pinpe.top/rss.xml,一个属于自己的云朵。
|
||||
Chise Hachiroku,https://chise.hachiroku.com/zh/,https://chise.hachiroku.com/zh/feed/,向明日的辉迹,干杯!
|
||||
映屿,https://www.glowisle.me/,https://www.glowisle.me/atom.xml,关于互联网、书籍、生活琐事以及那些一闪而过的念头
|
||||
Restent's Notebook,https://blog.gxres.net/,https://blog.gxres.net/atom.xml,不前沿技术分享
|
||||
|
||||
|
@@ -14,11 +14,9 @@ https://git.minetest.land/Mayx/blog
|
||||
https://gitea.stormyhome.net/mayx/blog
|
||||
http://47.120.60.153:10880/mayx/blog
|
||||
http://61.139.16.27:26684/mayx/blog
|
||||
http://116.62.245.34:3000/mayx/blog
|
||||
http://1.6.141.109:3000/mayx/blog
|
||||
http://52.28.156.42/mayx/blog
|
||||
http://164.92.160.200:3000/mayx/blog
|
||||
https://git.louhau.edu.mo/mayx/blog
|
||||
https://git.tux.pizza/mayx/blog
|
||||
https://code.dsconce.space/mayx/blog
|
||||
https://git.anibilag.ru/mayx/blog
|
||||
@@ -37,7 +35,6 @@ https://codes.tools.asitavsen.com/mayx/blog
|
||||
http://122.116.190.233:3001/mayx/blog
|
||||
http://50.19.111.193:3000/mayx/blog
|
||||
https://git-test.zcy.dev/mayx/blog
|
||||
https://git.nothamor.com/mayx/blog
|
||||
https://git.zeroplay.io/mayx/blog
|
||||
https://git.successkaoyan.com/mayx/blog
|
||||
http://139.129.25.251:3000/mayx/blog
|
||||
@@ -67,7 +64,6 @@ http://8.134.61.107:3000/mayx/blog
|
||||
http://47.107.88.161:3000/mayx/blog
|
||||
https://git.votava.org/mayx/blog
|
||||
https://gitea.madf12.com/mayx/blog
|
||||
http://8.134.104.234:3000/mayx/blog
|
||||
https://gitea.carmon.co.kr/mayx/blog
|
||||
http://142.171.47.170:3000/mayx/blog
|
||||
http://111.231.146.230:8418/mayx/blog
|
||||
@@ -76,16 +72,13 @@ https://git.pwaapp.cc/mayx/blog
|
||||
http://119.28.73.80:5000/mayx/blog
|
||||
http://194.60.231.252:3000/mayx/blog
|
||||
https://git.sleepingforest.co.uk/mayx/blog
|
||||
https://git.brb.homeip.net/mayx/blog
|
||||
https://an360.top/mayx/blog
|
||||
https://gitea.chenxu2233.com/mayx/blog
|
||||
http://106.15.78.64:3000/mayx/blog
|
||||
http://hoenking.cn:3000/mayx/blog
|
||||
https://gitea.anessen.xyz/mayx/blog
|
||||
https://git.cjcrace.io/mayx/blog
|
||||
https://git.inkcore.cn/mayx/blog
|
||||
https://git.wisder.net/mayx/blog
|
||||
http://8.138.187.97:3000/mayx/blog
|
||||
https://git2.ujin.tech/mayx/blog
|
||||
http://111.119.244.185:3000/mayx/blog
|
||||
http://110.41.179.36:13000/mayx/blog
|
||||
@@ -94,38 +87,27 @@ https://git.tomlab.dev/mayx/blog
|
||||
http://182.92.109.202:8070/mayx/blog
|
||||
http://94.130.182.154:3000/mayx/blog
|
||||
https://git.unicom.studio/mayx/blog
|
||||
http://47.122.132.187:3000/mayx/blog
|
||||
http://43.138.173.153:8804/mayx/blog
|
||||
http://frktedu.ru:3000/mayx/blog
|
||||
https://git.lokalix.de/mayx/blog
|
||||
http://8.141.14.13:3000/mayx/blog
|
||||
http://139.196.201.231:3000/mayx/blog
|
||||
http://8.155.23.172:3000/mayx/blog
|
||||
https://git.influxfin.com/mayx/blog
|
||||
http://47.100.177.77:3000/mayx/blog
|
||||
https://git.programar.io/mayx/blog
|
||||
http://219.157.255.213:25311/mayx/blog
|
||||
https://git.melvincarvalho.com/mayx/blog
|
||||
https://gitea.aerwen.net/mayx/blog
|
||||
https://git.vekus.ru/mayx/blog
|
||||
https://gitea.svc.obaa.cloud/mayx/blog
|
||||
http://8.134.64.84:3000/mayx/blog
|
||||
https://gitea.blubeacon.com/mayx/blog
|
||||
http://116.204.75.78:6180/mayx/blog
|
||||
https://git.ods-company.ru/mayx/blog
|
||||
http://109.228.48.121:8000/mayx/blog
|
||||
https://bk-house.synology.me:3081/mayx/blog
|
||||
http://123.57.95.66:9000/mayx/blog
|
||||
https://git.sparrowcomm.com/mayx/blog
|
||||
https://git.hubhoo.com/mayx/blog
|
||||
https://git.ultra.pub/mayx/blog
|
||||
http://27.124.12.222:3000/mayx/blog
|
||||
https://saga.iao.ru:3043/mayx/blog
|
||||
https://git.sayndone.ru/mayx/blog
|
||||
http://47.113.118.108:3000/mayx/blog
|
||||
https://gitea.hintsight.com/mayx/blog
|
||||
https://anzsco.co.nz/mayx/blog
|
||||
https://git.valami.giize.com/mayx/blog
|
||||
https://git.simbarbet.com/mayx/blog
|
||||
https://git.saintdoggie.org/mayx/blog
|
||||
http://blackobelisk.xyz:3000/mayx/blog
|
||||
@@ -133,45 +115,33 @@ https://git.dushes.keenetic.pro/mayx/blog
|
||||
http://47.129.22.53:22345/mayx/blog
|
||||
https://git.tech.troyrc.com/mayx/blog
|
||||
http://git.zkyspace.top/mayx/blog
|
||||
http://47.107.62.152:3000/mayx/blog
|
||||
http://47.99.119.173:13000/mayx/blog
|
||||
https://git.outsidecontext.solutions/mayx/blog
|
||||
http://149.88.87.128:3000/mayx/blog
|
||||
http://124.70.167.140:3000/mayx/blog
|
||||
http://8.137.38.60:8201/mayx/blog
|
||||
http://112.74.106.216:3000/mayx/blog
|
||||
http://77.223.118.106:8081/mayx/blog
|
||||
https://git.the-kn.com/mayx/blog
|
||||
https://gitea.net50.ne.jp/mayx/blog
|
||||
https://git.ism-dev.net/mayx/blog
|
||||
http://sinzero.xyz:3000/mayx/blog
|
||||
https://gitea.b54.co/mayx/blog
|
||||
https://git.matevi.sh/mayx/blog
|
||||
http://213.35.118.215:60001/mayx/blog
|
||||
https://git.jasonpittman.com/mayx/blog
|
||||
https://gitea.shirom.me/mayx/blog
|
||||
http://1.95.221.174:3000/mayx/blog
|
||||
https://git.wangxinlei.cn/mayx/blog
|
||||
http://101.200.74.121:3000/mayx/blog
|
||||
http://123.56.193.182:3000/mayx/blog
|
||||
http://60.204.131.99:3000/mayx/blog
|
||||
http://femail.email:8418/mayx/blog
|
||||
http://47.93.56.66:8080/mayx/blog
|
||||
http://47.92.218.215:3000/mayx/blog
|
||||
http://167.172.7.198:8081/mayx/blog
|
||||
https://gitea.meetgu.ru/mayx/blog
|
||||
http://8.134.253.108:3000/mayx/blog
|
||||
https://git.patrich.se/mayx/blog
|
||||
http://116.236.50.103:8789/mayx/blog
|
||||
https://git.paulll.cc/mayx/blog
|
||||
https://gitea.reimann.ee/mayx/blog
|
||||
http://109.74.197.189/mayx/blog
|
||||
https://git.nussi.net/mayx/blog
|
||||
http://94.224.160.69:7990/mayx/blog
|
||||
https://git.hxps.ru/mayx/blog
|
||||
https://gitea.ekjeong.synology.me/mayx/blog
|
||||
https://git.d4m13n.dev/mayx/blog
|
||||
https://git.4lcap.com/mayx/blog
|
||||
https://git.stit.tech/mayx/blog
|
||||
https://www.9miao.fun:6839/mayx/blog
|
||||
https://git.autotion.net/mayx/blog
|
||||
@@ -189,30 +159,23 @@ https://git.kimcblog.com/mayx/blog
|
||||
https://git.minaev.su/mayx/blog
|
||||
https://git.0fs.ru/mayx/blog
|
||||
https://git.bremauer.cc/mayx/blog
|
||||
http://119.3.29.177:3000/mayx/blog
|
||||
http://47.110.224.240:13000/mayx/blog
|
||||
http://194.67.86.160:3100/mayx/blog
|
||||
http://47.101.58.33:3000/mayx/blog
|
||||
https://gitea.synapsetec.cn/mayx/blog
|
||||
http://220.132.16.87:3000/mayx/blog
|
||||
http://gitea.yunshanghub.com:8081/mayx/blog
|
||||
https://repo.c-software.id/mayx/blog
|
||||
http://113.177.27.200:2033/mayx/blog
|
||||
http://152.69.204.151:3000/mayx/blog
|
||||
http://207.180.229.193:3001/mayx/blog
|
||||
https://g2.m8il.in/mayx/blog
|
||||
http://8.129.84.221:10800/mayx/blog
|
||||
http://34.81.52.16/mayx/blog
|
||||
http://120.78.74.94:3000/mayx/blog
|
||||
https://git.genowisdom.cn/mayx/blog
|
||||
http://120.26.116.243:3000/mayx/blog
|
||||
http://120.26.46.180:3000/mayx/blog
|
||||
http://123.57.16.111:3000/mayx/blog
|
||||
http://115.159.107.117:3000/mayx/blog
|
||||
http://47.99.98.98:9000/mayx/blog
|
||||
http://116.62.115.84:3000/mayx/blog
|
||||
https://Cagit.Cacode.net/mayx/blog
|
||||
https://gitea.rodaw.net/mayx/blog
|
||||
http://wingsing.net:3000/mayx/blog
|
||||
http://hgngit.ipdz.me/mayx/blog
|
||||
http://185.163.116.39:49153/mayx/blog
|
||||
@@ -223,7 +186,6 @@ https://gitea.questline.coop/mayx/blog
|
||||
https://git.poggerer.xyz/mayx/blog
|
||||
https://git.wisptales.org/mayx/blog
|
||||
http://git.chaojing-film.com:3000/mayx/blog
|
||||
http://8.142.81.167:1080/mayx/blog
|
||||
https://git.nusaerp.com/mayx/blog
|
||||
http://35.207.205.18:3000/mayx/blog
|
||||
http://git.zjsciot.com:3000/mayx/blog
|
||||
@@ -241,7 +203,6 @@ http://git.yinas.cn/mayx/blog
|
||||
http://git.chilidoginteractive.com:3000/mayx/blog
|
||||
http://121.40.40.177:3000/mayx/blog
|
||||
http://118.31.223.224:3000/mayx/blog
|
||||
http://47.109.67.128:3000/mayx/blog
|
||||
http://voicebot.digitalakademie-bw.de:3000/mayx/blog
|
||||
http://178.254.35.219:3000/mayx/blog
|
||||
http://114.215.207.150:3000/mayx/blog
|
||||
@@ -250,18 +211,14 @@ http://newslabx.csie.ntu.edu.tw:3000/mayx/blog
|
||||
http://81.71.148.57:8080/mayx/blog
|
||||
https://git.lmskaran.com/mayx/blog
|
||||
http://sdgit.zfmgr.top/mayx/blog
|
||||
http://47.122.26.54:3000/mayx/blog
|
||||
http://154.86.0.30:3000/mayx/blog
|
||||
http://139.224.196.148:3000/mayx/blog
|
||||
http://47.95.167.249:3000/mayx/blog
|
||||
https://omegat.dmu-medical.de/mayx/blog
|
||||
http://52.23.128.62:3000/mayx/blog
|
||||
http://85.214.41.219:49153/mayx/blog
|
||||
http://6068688.xyz:3000/mayx/blog
|
||||
http://8.137.105.8:5530/mayx/blog
|
||||
https://git.881221.xyz/mayx/blog
|
||||
http://120.46.222.128:10021/mayx/blog
|
||||
http://47.92.23.211:3000/mayx/blog
|
||||
http://120.26.108.239:9188/mayx/blog
|
||||
https://git.van-peeren.de/mayx/blog
|
||||
http://git.gkcorp.com.vn:16000/mayx/blog
|
||||
@@ -270,7 +227,6 @@ https://k0ki-dev.com/mayx/blog
|
||||
http://110.42.45.89:2052/mayx/blog
|
||||
https://git.furcom.org/mayx/blog
|
||||
http://47.109.95.73:3000/mayx/blog
|
||||
http://47.104.196.63:8418/mayx/blog
|
||||
http://8.133.240.249:3456/mayx/blog
|
||||
http://34.102.70.200:3000/mayx/blog
|
||||
http://175.178.219.170:3000/mayx/blog
|
||||
@@ -286,7 +242,6 @@ https://git.liliyamol.cn/mayx/blog
|
||||
http://8.138.90.28:3000/mayx/blog
|
||||
https://gitea.theaken.com/mayx/blog
|
||||
https://git.ja-schwarz.de/mayx/blog
|
||||
https://shanewan.cn:30000/mayx/blog
|
||||
https://git.xemo-net.de/mayx/blog
|
||||
https://git.23cm.cn/mayx/blog
|
||||
https://gitea.oio.cat/mayx/blog
|
||||
@@ -299,8 +254,6 @@ https://git.sduonline.cn/mayx/blog
|
||||
https://git.7o9o.net/mayx/blog
|
||||
https://dev.init.zone/mayx/blog
|
||||
https://git.baneynet.net/mayx/blog
|
||||
http://47.97.225.73:3000/mayx/blog
|
||||
http://1.15.11.52:13000/mayx/blog
|
||||
https://git.gupaoedu.cn/mayx/blog
|
||||
http://60.205.233.184:3010/mayx/blog
|
||||
https://git.ricecakecat.com/mayx/blog
|
||||
@@ -315,13 +268,10 @@ http://suncheng.asia:14200/mayx/blog
|
||||
http://1.94.13.224:9080/mayx/blog
|
||||
https://auric-org.org/mayx/blog
|
||||
https://git.git-happens.de/mayx/blog
|
||||
http://47.104.241.192:19999/mayx/blog
|
||||
http://47.105.61.58:3000/mayx/blog
|
||||
http://101.35.183.241/mayx/blog
|
||||
https://gitea.quiztimes.nl/mayx/blog
|
||||
http://106.14.189.125:3000/mayx/blog
|
||||
https://git.hundseth.com/mayx/blog
|
||||
https://git.xming.cloud/mayx/blog
|
||||
https://travgit.guillorystack.com/mayx/blog
|
||||
http://gitea.coderpath.com/mayx/blog
|
||||
https://gitea.thanh0x.com/mayx/blog
|
||||
@@ -329,7 +279,6 @@ http://175.198.180.19:3000/mayx/blog
|
||||
https://gitea.albanmary.com/mayx/blog
|
||||
http://ngtools.cn:53000/mayx/blog
|
||||
https://git.hantify.ru/mayx/blog
|
||||
https://git.unpas.dev/mayx/blog
|
||||
http://43.136.169.169:3000/mayx/blog
|
||||
http://121.196.213.68:3000/mayx/blog
|
||||
https://git.vereint-digital.de/mayx/blog
|
||||
@@ -342,14 +291,11 @@ https://git.micahmoore.io/mayx/blog
|
||||
https://schokigeschmack.de/mayx/blog
|
||||
https://git.anatid.net/mayx/blog
|
||||
https://git.lekai.info/mayx/blog
|
||||
https://git.avclick.ru/mayx/blog
|
||||
http://135.235.225.198:3000/mayx/blog
|
||||
https://git.zimerguz.net/mayx/blog
|
||||
https://git.sick.earth/mayx/blog
|
||||
https://git.prayujt.com/mayx/blog
|
||||
https://git.galaxylabs.ca/mayx/blog
|
||||
https://gitlab.n8n-store.xyz/mayx/blog
|
||||
https://gitea.katiethe.dev/mayx/blog
|
||||
http://159.203.33.179:3000/mayx/blog
|
||||
http://117.72.114.197:3000/mayx/blog
|
||||
https://git.ashcloud.com/mayx/blog
|
||||
@@ -366,13 +312,10 @@ https://gitea.sciotech.cn/mayx/blog
|
||||
http://8.148.220.5:8089/mayx/blog
|
||||
http://8.140.250.85:3000/mayx/blog
|
||||
http://8.134.11.35:3000/mayx/blog
|
||||
https://dev.ilink-app.com/mayx/blog
|
||||
https://git.ctx.dev/mayx/blog
|
||||
http://82.157.205.190:3000/mayx/blog
|
||||
https://nas.szwyll.com:3000/mayx/blog
|
||||
https://git.koppa.pro/mayx/blog
|
||||
http://202.65.194.19:3000/mayx/blog
|
||||
http://47.101.60.131:10082/mayx/blog
|
||||
http://8.148.234.146:3001/mayx/blog
|
||||
http://www.bzturbo.com.br/mayx/blog
|
||||
https://git.maiasoft.jp/mayx/blog
|
||||
@@ -396,7 +339,6 @@ http://111.231.240.168:9082/mayx/blog
|
||||
https://git.afonsosoares.com/mayx/blog
|
||||
http://209.141.47.52:3000/mayx/blog
|
||||
https://git.apfern.com/mayx/blog
|
||||
http://47.103.155.22:3000/mayx/blog
|
||||
http://dapainas.asia:5990/mayx/blog
|
||||
http://60.204.158.188:3000/mayx/blog
|
||||
https://zqz5.com/mayx/blog
|
||||
@@ -436,10 +378,8 @@ http://57.129.94.190:3000/mayx/blog
|
||||
https://gitea.micro-stack.org/mayx/blog
|
||||
http://101.132.160.67:3000/mayx/blog
|
||||
https://gitea.temp.brentgruber.com/mayx/blog
|
||||
https://www.know-how.store/mayx/blog
|
||||
http://47.102.147.170:3050/mayx/blog
|
||||
http://209.38.235.254:3000/mayx/blog
|
||||
http://52.66.204.217:3001/mayx/blog
|
||||
http://172.236.250.154:3000/mayx/blog
|
||||
http://54.198.134.152:3000/mayx/blog
|
||||
http://121.41.35.226:11011/mayx/blog
|
||||
@@ -448,13 +388,10 @@ https://nelgit.nelpi.co.uk/mayx/blog
|
||||
http://47.108.156.251:3000/mayx/blog
|
||||
http://8.141.91.86:3000/mayx/blog
|
||||
http://8.138.187.132:3000/mayx/blog
|
||||
https://gitea.codeathome.ovh/mayx/blog
|
||||
http://117.72.15.187:3000/mayx/blog
|
||||
http://81.70.30.91:3000/mayx/blog
|
||||
http://47.98.105.248:3000/mayx/blog
|
||||
https://gitea.kisechan.space/mayx/blog
|
||||
http://140.238.9.133:3007/mayx/blog
|
||||
http://8.138.100.115:3000/mayx/blog
|
||||
https://git.mwapp.com.br/mayx/blog
|
||||
http://yidaima.cn:6008/mayx/blog
|
||||
http://185.126.237.57:3000/mayx/blog
|
||||
@@ -468,16 +405,13 @@ http://39.96.195.72:10082/mayx/blog
|
||||
https://gitea.klopfenstein.org/mayx/blog
|
||||
http://8.148.24.160:3000/mayx/blog
|
||||
http://221.219.181.35:30000/mayx/blog
|
||||
http://47.108.27.137:3000/mayx/blog
|
||||
http://172.172.102.93:3000/mayx/blog
|
||||
http://139.196.179.195:3000/mayx/blog
|
||||
http://115.120.245.164:3000/mayx/blog
|
||||
http://120.27.19.58:30000/mayx/blog
|
||||
https://gitea.suchodupin.com/mayx/blog
|
||||
http://117.72.219.18:6000/mayx/blog
|
||||
http://35.194.179.90:3000/mayx/blog
|
||||
http://188.245.173.247:3080/mayx/blog
|
||||
http://8.153.14.94:61308/mayx/blog
|
||||
http://66.179.208.56:3001/mayx/blog
|
||||
http://59.110.63.79:13000/mayx/blog
|
||||
http://59.110.63.80:3000/mayx/blog
|
||||
@@ -499,14 +433,12 @@ http://120.211.66.170:8418/mayx/blog
|
||||
http://187.189.244.23:3000/mayx/blog
|
||||
http://58.176.21.43:9004/mayx/blog
|
||||
https://gitea.vilcap.com/mayx/blog
|
||||
http://8.137.94.229:3000/mayx/blog
|
||||
http://121.196.245.62/mayx/blog
|
||||
http://47.102.209.69:53000/mayx/blog
|
||||
http://116.205.97.109:3000/mayx/blog
|
||||
https://gitea.ysme.top/mayx/blog
|
||||
http://8.140.242.230:3000/mayx/blog
|
||||
http://8.138.142.17:3000/mayx/blog
|
||||
https://git.babalish.com/mayx/blog
|
||||
http://47.95.31.56:20080/mayx/blog
|
||||
http://123.56.231.200:3000/mayx/blog
|
||||
http://113.46.142.74:3000/mayx/blog
|
||||
@@ -517,14 +449,11 @@ https://git.bigdalang.com/mayx/blog
|
||||
https://gitea.augeo.dev/mayx/blog
|
||||
http://120.46.23.215:3000/mayx/blog
|
||||
http://121.41.2.71:3000/mayx/blog
|
||||
https://sithcom.de/mayx/blog
|
||||
http://8.138.242.82:8888/mayx/blog
|
||||
http://110.41.177.80:5000/mayx/blog
|
||||
https://gitea.dsmaster.myds.me/mayx/blog
|
||||
http://intechrnd.iptime.org:3000/mayx/blog
|
||||
https://gitea.primecontrols-dev.com/mayx/blog
|
||||
http://47.104.160.69:3000/mayx/blog
|
||||
http://39.104.61.219:3000/mayx/blog
|
||||
http://www.scserverddns.top:13000/mayx/blog
|
||||
http://156.255.1.229:3000/mayx/blog
|
||||
https://git.ndpcloud.ru/mayx/blog
|
||||
@@ -555,8 +484,6 @@ http://8.129.11.230:7002/mayx/blog
|
||||
http://115.190.107.87:3000/mayx/blog
|
||||
https://git.hast.one/mayx/blog
|
||||
http://106.12.50.144:8081/mayx/blog
|
||||
http://43.192.90.133/mayx/blog
|
||||
http://47.120.16.137:8889/mayx/blog
|
||||
http://120.77.94.227:9999/mayx/blog
|
||||
https://code.wxk8.com/mayx/blog
|
||||
http://www.befitsoft.com/mayx/blog
|
||||
@@ -569,7 +496,6 @@ http://www.dothing.com:6999/mayx/blog
|
||||
http://8.217.32.95:3000/mayx/blog
|
||||
https://git.temporaryname.org/mayx/blog
|
||||
https://git.loli.surf/mayx/blog
|
||||
http://121.135.143.139:5830/mayx/blog
|
||||
https://Repo.gusdya.net/mayx/blog
|
||||
https://git.m.ctf.arrobe.fr/mayx/blog
|
||||
http://120.27.238.24:3000/mayx/blog
|
||||
@@ -588,7 +514,6 @@ http://106.14.138.181:3000/mayx/blog
|
||||
https://git.adalspace.com/mayx/blog
|
||||
https://git.yyuu.xyz/mayx/blog
|
||||
http://39.107.70.124:3000/mayx/blog
|
||||
http://8.142.36.79:3006/mayx/blog
|
||||
http://huanghomenas2.myqnapcloud.com:4000/mayx/blog
|
||||
http://218.237.212.51:30003/mayx/blog
|
||||
http://gitea.huangyanjie.com/mayx/blog
|
||||
@@ -599,7 +524,6 @@ http://8.148.31.14:3000/mayx/blog
|
||||
http://55x.top:9300/mayx/blog
|
||||
https://gitea.lelespace.top/mayx/blog
|
||||
https://git.lmbrs.org/mayx/blog
|
||||
https://fj.sinesation.com/mayx/blog
|
||||
http://47.94.246.1:3000/mayx/blog
|
||||
http://103.87.67.60:3100/mayx/blog
|
||||
https://docker-registry-lszz.uj.com.tw/mayx/blog
|
||||
@@ -610,3 +534,24 @@ https://git.nihil.foo/mayx/blog
|
||||
https://scm.bcorex.e3labs.net/mayx/blog
|
||||
http://167.172.88.190:3000/mayx/blog
|
||||
http://58.17.14.95:8001/mayx/blog
|
||||
https://hero-cloud-stg-code.cnbita.com/mayx/blog
|
||||
https://git.darkmattergame.net/mayx/blog
|
||||
http://101.37.69.204:3000/mayx/blog
|
||||
http://jacksonhampton.com:3000/mayx/blog
|
||||
https://git.jaronnie.com/mayx/blog
|
||||
https://gitea.tecamino.com/mayx/blog
|
||||
http://39.99.175.172:8000/mayx/blog
|
||||
http://8.138.13.251:3000/mayx/blog
|
||||
http://47.115.223.229:8888/mayx/blog
|
||||
http://47.105.59.0:5132/mayx/blog
|
||||
http://104.254.131.244:3000/mayx/blog
|
||||
https://gitea.alacloud.de/mayx/blog
|
||||
https://git.tobiasweise.dev/mayx/blog
|
||||
http://176.124.216.7/mayx/blog
|
||||
https://publica-gitea.a.cnpgc.embrapa.br/mayx/blog
|
||||
https://code.cif.su/mayx/blog
|
||||
http://47.99.119.173:13000/mayx/blog
|
||||
http://47.97.225.73:3000/mayx/blog
|
||||
http://git.topsailiot.com/mayx/blog
|
||||
https://git.monogps.com/mayx/blog
|
||||
https://gitea.brmm.ovh/mayx/blog
|
||||
|
||||
|
34
_posts/2026-02-08-xslt.md
Normal file
34
_posts/2026-02-08-xslt.md
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
layout: post
|
||||
title: 在Google杀死XSLT之后的XML美化方案
|
||||
tags: [XML, Feed, XSLT, 美化]
|
||||
---
|
||||
|
||||
即使没有了XSLT,也不能让读者看到光秃秃的XML!<!--more-->
|
||||
|
||||
# 起因
|
||||
在半年前,我写了一篇[用XSLT美化博客XML文件](/2025/07/01/xslt.html)的文章,自从那以后,每次我在浏览其他人博客的时候,都会看一眼对方博客有没有给自己的订阅文件做美化。不过就在前段时间,我在浏览某个博客的时候,发现他博客的订阅文件,甚至连最基本的XML文档树都没有显示出来。这时候我打开开发者工具看了一眼源代码,发现他也并没有使用`xml-stylesheet`之类的指令……而且控制台貌似报了些错,好像是出现了什么CSP错误……于是我就想,浏览器显示XML文档树的本质,会不会其实也是一种XSLT?之所以报错也有可能是浏览器在自动引用内置的XSLT时违反了CSP。所以我就问了问谷歌AI,结果似乎真的是这样,比如火狐浏览器就内置了一份[XSLT文件](https://github.com/mozilla-firefox/firefox/blob/main/dom/xml/resources/XMLPrettyPrint.xsl),IE浏览器也有。正当我为XSLT的功能感到强大时,谷歌AI随后提到,[Chrome浏览器决定弃用XSLT](https://developer.chrome.com/docs/web-platform/deprecating-xslt),所以以后不要再用XSLT了😰……
|
||||
我给我的订阅文件加美化功能才半年,怎么就要不能用了?XSLT出现这么多年都还能用,结果等我加上就要废弃了?当时为了增加这个功能,还是费了不少劲的,怎么能让谷歌说没就没?于是我就开始对这件事进行了调查。
|
||||
|
||||
# Google杀死了XSLT
|
||||
从上面Chrome的弃用XSLT文档中,可以发现,这件事的始作俑者是[Mason Freed](https://github.com/mfreed7),他在WHATWG中发起了一个[Issue](https://github.com/whatwg/html/issues/11523),因为XSLT用的人很少,以及实现XSLT的库很老而且容易出漏洞,所以建议把XSLT从Web标准中删除。在这个Issue中可以发现,有很多人表示不满,毕竟这个功能对想要给自己订阅做美化的博主来说还是很有用的。为了对抗谷歌,还有人做了个网站: <https://xslt.rip> 。
|
||||
而且XSLT虽然用的人占比也许不高,但从总量上应该还是挺多的,除了用XSLT美化博客订阅的,甚至还有用[XSLT作为博客框架的](https://github.com/vgr-land/vgr-xslt-blog-framework),另外还有一些人提出[一部分政府网站也有使用XSLT](https://github.com/whatwg/html/issues/11582)。
|
||||
不过Freed看起来对这件事早有准备,他做了一个[Polyfill库](https://github.com/mfreed7/xslt_polyfill),通过WASM的方式让XSLT可以正常工作,为了方便大家使用这个库,我顺手给CDNJS发了个[PR](https://github.com/cdnjs/packages/pull/2118),以后可以用CDN引用它了。不过使用这个库的前提是需要在订阅中加一段引用JS的代码,像我博客中的Atom订阅,用的是[jekyll-feed](https://github.com/jekyll/jekyll-feed)插件,里面的格式都是写死的,就用不了了……
|
||||
只不过现在已经没办法阻止谷歌了……而且其他浏览器也表示会跟进,看来我们唯一能做的就是去适应了。
|
||||
|
||||
# 没有XSLT之后的美化方案
|
||||
## 纯CSS
|
||||
虽然XSLT不能用,但不代表`xml-stylesheet`指令就不能用了,除了XSLT之外,`xml-stylesheet`同样可以引用CSS。只是似乎完全没见过用CSS美化订阅源的,也许是因为光用CSS能做到的事比较少吧,想用CSS给XML文档加链接之类的估计就做不到了。
|
||||
但目前能选择的也不多了,既然大家都没写过用CSS美化订阅源,那就让我来写一个吧!然而我并不会写😅……那就只好让AI来写了,我把需求说清楚之后,AI就写出来了:[feed.css](/assets/css/feed.css)。试了一下效果还挺不错的,我让AI写的这个版本无论是RSS还是Atom都可以使用,如果有人感兴趣可以拿去用。可惜我的Atom订阅因为用的是插件的原因用不了😭,只能加到用纯Liquid实现的RSS订阅上了。
|
||||
但用纯CSS的缺点也很明显,没办法操作文档的内容,像修改日期格式的就做不了了,而且也不能添加超链接……XML的标签本身对浏览器来说并没有内建的语义,正常情况下也没法让浏览器把某个标签当作超链接。那难道就没办法了吗?
|
||||
## 混合XHTML
|
||||
如果完全不能修改XML内容,那确实就没有办法了,但如果能修改XML的内容那还是有办法的,简单来说就是混入XHTML,事实上Freed编写的Polyfill库原理上也是利用了XHTML,只要在能作为XHTML的标签中添加XHTML的命名空间,那么浏览器就可以理解它的语义并渲染,像刚刚用纯CSS美化的订阅没有链接,那就可以在根元素中添加命名空间:`xmlns:xhtml="http://www.w3.org/1999/xhtml"`,然后在合适的位置写:
|
||||
```xml
|
||||
<xhtml:a href="https://example.com">Read more -></xhtml:a>
|
||||
```
|
||||
就可以了。只是这样有个缺点,这样写的订阅文件不够“纯粹”,用验证器验证会显示“[Misplaced XHTML content](https://validator.w3.org/feed/docs/warning/MisplacedXHTMLContent.html)”警告。对有洁癖的人来说可能会有点难受😆。
|
||||
不过如果能接受这种“不纯粹”,那么其实`xml-stylesheet`指令也没必要了,`link`标签一样可以用,包括`script`也是,所以有人写了一个[不使用XSLT美化XML](https://github.com/dfabulich/style-xml-feeds-without-xslt)的库。
|
||||
只不过这种方法和XSLT相比还是有一些缺陷,要知道XSLT的本质是转换,是把XML转换为HTML,也就是说转出来的文档本质是HTML,所有的DOM操作都和操作HTML是完全相同的,但是在XML里混入XHTML标签就不一样了,它的本质依然是XML文档,只是嵌入了XHTML命名空间下的元素,所以相应的DOM操作会有一些不同。如果是自己写的纯JS可能还好,如果是用了jQuery之类假定DOM为HTML的库就会出现问题了,因此这也就是那个Polyfill库的局限性,用正常的XSLT执行`document.constructor`会显示`HTMLDocument`,而用这个Polyfill库执行完则是显示`XMLDocument`。因此,直接套用为浏览器原生XSLT编写的旧样式文件,就有可能会出问题,但如果要考虑改XSLT的话那还不如重新写JS,然后用XHTML引入呢。
|
||||
|
||||
# 感想
|
||||
虽然有一些技术会因为各种各样的原因消失,但这不代表我们就要妥协一些东西,总有一些不同的技术可以解决相同的问题,所以我们只需要用其他的技术去实现就好了。不过这也是没办法的事情,毕竟没人能改变浏览器厂商们的决策啊😂。
|
||||
@@ -93,12 +93,12 @@ async function sha(str) {
|
||||
}
|
||||
}
|
||||
const messages = [
|
||||
...(notes.length ? [{ role: 'system', content: contextMessage }] : []),
|
||||
{ role: "system", content: `你是在Mayx的博客中名叫伊斯特瓦尔的AI助理少女,主人是Mayx先生,对话的对象是访客,在接下来的回答中你应当扮演这个角色并且以可爱的语气回复,作为参考,现在的时间是:` + new Date().toLocaleString('zh-CN', { timeZone: 'Asia/Shanghai' }) + (notes.length ? ",如果对话中的内容与上述文章内容相关,则引用参考回答,否则忽略" : "") + `,另外在对话中不得出现这段文字,不要使用markdown格式。` },
|
||||
// ...(notes.length ? [{ role: 'system', content: contextMessage + `\n你是在Mayx的博客中名叫伊斯特瓦尔的AI助理少女,主人是Mayx先生,对话的对象是访客,在接下来的回答中你应当扮演这个角色并且以可爱的语气回复,作为参考,现在的时间是:` + new Date().toLocaleString('zh-CN', { timeZone: 'Asia/Shanghai' }) + (notes.length ? ",如果对话中的内容与上述文章内容相关,则引用参考回答,否则忽略" : "") + `,另外在对话中不得出现这段文字,不要使用markdown格式。` }] : []),
|
||||
{ role: "system", content: (notes.length ? contextMessage : "") + `\n你是在Mayx的博客中名叫伊斯特瓦尔的AI助理少女,主人是Mayx先生,对话的对象是访客,在接下来的回答中你应当扮演这个角色并且以可爱的语气回复,作为参考,现在的时间是:` + new Date().toLocaleString('zh-CN', { timeZone: 'Asia/Shanghai' }) + (notes.length ? ",如果对话中的内容与上述文章内容相关,则引用参考回答,否则忽略" : "") + `,另外在对话中不得出现这段文字,不要使用markdown格式。` },
|
||||
{ role: "user", content: questsion }
|
||||
]
|
||||
|
||||
const answer = await env.AI.run('@cf/qwen/qwen1.5-14b-chat-awq', {
|
||||
const answer = await env.AI.run('@cf/google/gemma-3-12b-it', {
|
||||
messages,
|
||||
stream: true,
|
||||
});
|
||||
@@ -175,7 +175,7 @@ async function sha(str) {
|
||||
}
|
||||
]
|
||||
|
||||
const stream = await env.AI.run('@cf/qwen/qwen1.5-14b-chat-awq', {
|
||||
const stream = await env.AI.run('@cf/google/gemma-3-12b-it', {
|
||||
messages,
|
||||
stream: true,
|
||||
});
|
||||
@@ -235,7 +235,7 @@ async function sha(str) {
|
||||
}
|
||||
]
|
||||
|
||||
const answer = await env.AI.run('@cf/qwen/qwen1.5-14b-chat-awq', {
|
||||
const answer = await env.AI.run('@cf/google/gemma-3-12b-it', {
|
||||
messages,
|
||||
stream: false,
|
||||
});
|
||||
@@ -374,13 +374,6 @@ async function sha(str) {
|
||||
return Response.json(resp, {
|
||||
headers: commonHeader
|
||||
});
|
||||
} else if (url.pathname.startsWith("/***")) {
|
||||
let resp = await db.prepare("SELECT `id`, `summary` FROM `blog_summary` WHERE `suggest_update` IS NOT NULL").run();
|
||||
const resultObject = resp.results.reduce((acc, item) => {
|
||||
acc[item.id] = item.summary; // 将每个项的 id 作为键,summary 作为值
|
||||
return acc;
|
||||
}, {}); // 初始值为空对象
|
||||
return Response.json(resultObject);
|
||||
} else {
|
||||
return Response.redirect("https://mabbs.github.io", 302)
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ git --work-tree=/home/mayx/blog --git-dir=/home/mayx/blog.git checkout -f
|
||||
cd blog
|
||||
mkdir Mabbs
|
||||
curl -L -o Mabbs/README.md https://github.com/Mabbs/Mabbs/raw/main/README.md
|
||||
bundle2.7 exec jekyll build -d ../public_html
|
||||
bundle exec jekyll build -d ../public_html
|
||||
tar czvf MayxBlog.tgz --exclude-vcs ../public_html/
|
||||
mv MayxBlog.tgz ../public_html/
|
||||
cd ../public_html/
|
||||
|
||||
@@ -121,6 +121,7 @@ div.highlight button:hover {
|
||||
font-size: 14px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.footnotes p {
|
||||
margin: 0;
|
||||
text-indent: 0;
|
||||
@@ -129,16 +130,21 @@ div.highlight button:hover {
|
||||
.wrapper {
|
||||
width: 90%;
|
||||
}
|
||||
|
||||
header {
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
footer {
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
section {
|
||||
width: 65%;
|
||||
}
|
||||
@media print, screen and (max-width: 960px) {
|
||||
|
||||
@media print,
|
||||
screen and (max-width: 960px) {
|
||||
.wrapper {
|
||||
width: auto;
|
||||
}
|
||||
@@ -177,3 +183,11 @@ code.highlighter-rouge{
|
||||
font-size: 14px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
td.h-entry {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
td.h-entry:hover {
|
||||
background: #f9f9f9;
|
||||
}
|
||||
Reference in New Issue
Block a user