用 gpt 辅助做了一个简陋的 json 格式化页面,缺点很多,优点就一个:无广告铺满全屏

查看 72|回复 4
作者:meeop   
下面链接贴到浏览器地址栏就能用了,无需网络,可加书签保存
data:text/html;base64,PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICA8bWV0YSBjaGFyc2V0PSJVVEYtOCI+CiAgPHN0eWxlPgogICAgaHRtbCwgYm9keSB7CiAgICAgIG1hcmdpbjogMDsKICAgICAgcGFkZGluZzogMDsKICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgfQogICAgCiAgICAjZWRpdG9yIHsKICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICB0b3A6IDA7CiAgICAgIGJvdHRvbTogMDsKICAgICAgbGVmdDogMDsKICAgICAgcmlnaHQ6IDEyMHB4OyAvKiDmj5DnpLrmnaHlrr3luqYxMjBweCAqLwogICAgICBmb250LWZhbWlseTogbW9ub3NwYWNlOwogICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgIHdoaXRlLXNwYWNlOiBwcmU7CiAgICAgIG92ZXJmbG93OiBhdXRvOwogICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjZmOGZhOwogICAgICBwYWRkaW5nOiAyMHB4OwogICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgfQogICAgCiAgICAubGluZS1udW1iZXIgewogICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgIHdpZHRoOiAzMHB4OwogICAgICBjb2xvcjogIzk5OTsKICAgICAgdXNlci1zZWxlY3Q6IG5vbmU7CiAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lOwogICAgICB1c2VyLWRyYWc6IG5vbmU7CiAgICAgIC1tb3otdXNlci1zZWxlY3Q6IG5vbmU7CiAgICAgIC13ZWJraXQtdXNlci1zZWxlY3Q6IG5vbmU7CiAgICAgIC1tcy11c2VyLXNlbGVjdDogbm9uZTsKICAgIH0KICAgIAog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pICsgJzwvZGl2Pic7CiAgICAvLyAgfQogICAgLy8gIGVkaXRvci5pbm5lckhUTUwgPSBsaW5lTnVtYmVycyArIGVkaXRvci5pbm5lckhUTUw7CiAgICB9CgogICAgZnVuY3Rpb24gc2hvd01lc3NhZ2UobWVzc2FnZSkgewogICAgICBtZXNzYWdlQmFyLmlubmVyVGV4dCA9IG1lc3NhZ2U7CiAgICAgIG1lc3NhZ2VCYXIuc3R5bGUub3BhY2l0eSA9IDE7CiAgICAgIHNldFRpbWVvdXQoZnVuY3Rpb24oKSB7CiAgICAgICAgbWVzc2FnZUJhci5zdHlsZS5vcGFjaXR5ID0gMDsKICAgICAgfSwgNTAwMCk7CiAgICB9CgogICAgZWRpdG9yLmFkZEV2ZW50TGlzdGVuZXIoJ2lucHV0JywgZm9ybWF0SnNvbik7CiAgPC9zY3JpcHQ+CjwvYm9keT4KPC9odG1sPgo=

nhz, pbm, vbmu, zzwxly

kumakichi   
VSCode 不是更快?还不用联网.
MrSheng   
并不能用


meeop
OP
  
@kumakichi 我的 vscode 窗口太多了,而且临时页面关闭时还问我要不要保存
meeop
OP
  
@MrSheng 看起来你的页面渲染失败了,你 url 没贴全或者 json 格式非法?
您需要登录后才可以回帖 登录 | 立即注册

返回顶部