index.ejs

<head>
<script type="text/javascript" src="api/notes/<%= note.getRelation("shareXhookJs").value %>/download"></script>
<script>
  xhook.after(function(request, response, cb) {
    console.log(response.text);
    cb(response);
});
</script>
</head>
<body>
<div id="hexo-circle-of-friends-root"></div>
<script>
   let UserConfig = {
       // 填写你的 api 地址
       private_api_url: 'https://fanhat.cn/hexo_circle_of_friends/',
       // 初始加载几篇文章
       page_init_number: 20,
       // 点击加载更多时,一次最多加载几篇文章,默认 10
       page_turning_number: 10,
       // 头像加载失败时,默认头像地址
       error_img: 'https://sdn.geekzu.org/avatar/57d8260dfb55501c37dde588e7c3852c',
       // 进入页面时第一次的排序规则
       sort_rule: 'created',
       // 本地文章缓存数据过期时间(天)
       expire_days: 1, 
   }
</script>
<script type="text/javascript" src="api/notes/<%= note.getRelation("shareJs").value %>/download"></script>
</body>