V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
meeop
V2EX  ›  分享创造

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

  •  
  •   meeop · 2023-12-19 14:07:44 +08:00 · 1665 次点击
    这是一个创建于 374 天前的主题,其中的信息可能已经有所发展或是发生改变。

    下面链接贴到浏览器地址栏就能用了,无需网络,可加书签保存

    data:text/html;base64,PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICA8bWV0YSBjaGFyc2V0PSJVVEYtOCI+CiAgPHN0eWxlPgogICAgaHRtbCwgYm9keSB7CiAgICAgIG1hcmdpbjogMDsKICAgICAgcGFkZGluZzogMDsKICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgfQogICAgCiAgICAjZWRpdG9yIHsKICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICB0b3A6IDA7CiAgICAgIGJvdHRvbTogMDsKICAgICAgbGVmdDogMDsKICAgICAgcmlnaHQ6IDEyMHB4OyAvKiDmj5DnpLrmnaHlrr3luqYxMjBweCAqLwogICAgICBmb250LWZhbWlseTogbW9ub3NwYWNlOwogICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgIHdoaXRlLXNwYWNlOiBwcmU7CiAgICAgIG92ZXJmbG93OiBhdXRvOwogICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjZmOGZhOwogICAgICBwYWRkaW5nOiAyMHB4OwogICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgfQogICAgCiAgICAubGluZS1udW1iZXIgewogICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgIHdpZHRoOiAzMHB4OwogICAgICBjb2xvcjogIzk5OTsKICAgICAgdXNlci1zZWxlY3Q6IG5vbmU7CiAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lOwogICAgICB1c2VyLWRyYWc6IG5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ID0gJyc7CiAgICAvLyAgZm9yICh2YXIgaSA9IDE7IGkgPD0gbGluZU51bWJlcjsgaSsrKSB7CiAgICAvLyAgICBsaW5lTnVtYmVycyArPSAnPGRpdiBjbGFzcz0ibGluZS1udW1iZXIiPicgKyBpICsgJzwvZGl2Pic7CiAgICAvLyAgfQogICAgLy8gIGVkaXRvci5pbm5lckhUTUwgPSBsaW5lTnVtYmVycyArIGVkaXRvci5pbm5lckhUTUw7CiAgICB9CgogICAgZnVuY3Rpb24gc2hvd01lc3NhZ2UobWVzc2FnZSkgewogICAgICBtZXNzYWdlQmFyLmlubmVyVGV4dCA9IG1lc3NhZ2U7CiAgICAgIG1lc3NhZ2VCYXIuc3R5bGUub3BhY2l0eSA9IDE7CiAgICAgIHNldFRpbWVvdXQoZnVuY3Rpb24oKSB7CiAgICAgICAgbWVzc2FnZUJhci5zdHlsZS5vcGFjaXR5ID0gMDsKICAgICAgfSwgNTAwMCk7CiAgICB9CgogICAgZWRpdG9yLmFkZEV2ZW50TGlzdGVuZXIoJ2lucHV0JywgZm9ybWF0SnNvbik7CiAgPC9zY3JpcHQ+CjwvYm9keT4KPC9odG1sPgo=

    9 条回复    2023-12-20 14:58:45 +08:00
    kumakichi
        1
    kumakichi  
       2023-12-19 14:09:17 +08:00
    VSCode 不是更快?还不用联网.
    MrSheng
        2
    MrSheng  
       2023-12-19 14:11:16 +08:00
    并不能用
    meeop
        3
    meeop  
    OP
       2023-12-19 14:18:56 +08:00
    @kumakichi 我的 vscode 窗口太多了,而且临时页面关闭时还问我要不要保存
    meeop
        4
    meeop  
    OP
       2023-12-19 14:23:40 +08:00
    @MrSheng 看起来你的页面渲染失败了,你 url 没贴全或者 json 格式非法?
    yangheng4922
        5
    yangheng4922  
       2023-12-19 17:57:43 +08:00
    你输入框还渲染了 html 样式
    MrSheng
        6
    MrSheng  
       2023-12-19 19:09:44 +08:00
    @meeop #4
    仔细看了下,其实成功了,从未想过如此简陋 : )
    wjx22
        7
    wjx22  
       2023-12-19 21:30:51 +08:00
    页面初始化一片空白我以为加载失败了,点了一下才出来个框
    yisier
        8
    yisier  
       2023-12-20 13:15:42 +08:00   ❤️ 1
    太简陋了吧,看下我的: https://1024url.com/json
    loveorangeZz
        9
    loveorangeZz  
       2023-12-20 14:58:45 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3531 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 10:28 · PVG 18:28 · LAX 02:28 · JFK 05:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.