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

Hexo 整站加密插件

  •  
  •   rabbbit · 2018-09-26 12:10:32 +08:00 · 1563 次点击
    这是一个创建于 2029 天前的主题,其中的信息可能已经有所发展或是发生改变。

    效果预览 密码 foxglove
    Github

    安装

    yarn add https://github.com/Aaron-Bird/hexo-foxglove-encrypt.git
    

    (不要用 npm,貌似在 Hexo 目录下用 npm install 安装 Github 的项目会导致 node_modules 内的文件丢失)

    _config.yml 设置

    foxglove_encrypt:
      password: 12345
      trigger_event:
        window_onload: true
        document_DOMContentLoaded: true
    
    • password 密码,必填
    • window_onload 是否在解密后重新触发 window 的 onload 事件,默认值 false
    • document_DOMContentLoaded 是否在解密后重新触发 document 的 DOMContentLoaded 事件,默认值 false
    第 1 条附言  ·  2018-09-26 12:48:08 +08:00
    发现了个 bug,请勿使用
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5542 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 08:04 · PVG 16:04 · LAX 01:04 · JFK 04:04
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.