加载头像
#cloudflare 50 #CF 48 #科学上网 48 #VPN 47 #免费节点 44 #订阅 30 #解锁GPT 30 #clash 24 #v2rayN 21 #rss 17 #serv00 15 #CDN 14 #ai 13 #节点 13 #AI 11 #大模型 11 #Cloudflare 11 #VLESS 11 #域名 10 #免费域名 10 #小白教程 9 #vless 9 #机场 9 #ChatGPT 8 #DNS 8 #免费vps 7 #VMess 7 #chatgpt 6 #注册 6 #Reality 6 #Hysteria2 6 #免费工具 6 #gpt4o 5 #专线 5 #Android 5 #翻墙 5 #免费VPN 5 #wireguard 5 #3D动画 4 #gpt-4o-mini 4 #deepseek 4 #安卓 4 #Trojan 4 #免费VPS 4 #VPS 4 #s-ui 4 #泛播IP 4 #cfnat 4 #m3u8 3 #直播 3 #iptv 3 #电视 3 #tiktok 3 #netflix 3 #监控 3 #节点,免费节点 3 #云盘 3 #socks5 3 #静态住宅IP 3 #住宅IP 3 #动态住宅IP 3 #代理IP 3 #跨境电商 3 #养号 3 #iOS 3 #软路由 3 #AM科技 2 #技术分享 2 #满满干货 2 #极速云 2 #Vercel 2 #YouTube 2 #直播源 2 #dnsexit 2 #nezha 2 #网盘 2 #alist 2 #AList 2 #云服务器 2 #x-ui 2 #GitHub 2 #保活 2 #vmess 2 #Linux 2 #常见问题 1 #沉浸式翻译 1 #Canvas 1 #desktop 1 #Copilot 1 #UI 1 #虚拟卡 1 #LocalCard 1 #实体卡 1 #69yun 1 #69yun69 1 #红杏云 1 #tapcloud 1 #良心云 1 #Gcore 1 #Fastly 1 #免费CDN 1 #WebSockets 1 #优选IP 1 #加速节点 1 #tvbox 1 #电视盒子 1 #电视源 1 #CF,vless 1 #优选域名 1 #uptime 1 #时间监控 1 #BPB 1 #Panel 1 #1101 1 #522 1 #Error 1101 1 #dynv6 1 #xray面板 1 #免费VM 1 #VM 1 #免费服务器 1 #ngrok 1 #tmate 1 #反代IP 1 #hiddify 1 #raksmart 1 #infinityfree 1 #证书 1 #tls 1 #huggingface 1 #qinglong 1 #3x-ui 1 #sing-box 1 #ipwo 1 #Web3 1 #BorderX 1 #Borderfree 1 #kookeey 1 #lycheeip 1 #warp 1 #MAQSUE 1 #cloudns 1 #ggff.net 1 #l53 1 #nyc.mn 1 #obl.ong 1 #rr.nu 1 #sitelutions 1 #hostry 1 #he 1 #IOS 1 #openclash 1 #Mac 1 #arc 1 #浏览器 1 #space 1 #新闻 1 #newsnow 1 #rclone 1 #onedrive 1 #云盘同步 1 #ssh 1 #文件上传 1 #FTP 1 #SFTP 1
IOS
2025
Android手机版 自动优先IP实现免费科学上网 amclubs-cfnat解决Cloudflare的泛播IP的问题
Android手机版 自动优先IP实现免费科学上网 amclubs-cfnat解决Cloudflare的泛播IP的问题1
引用到评论
随便逛逛博客分类文章标签
复制地址关闭热评深色模式轉為繁體
// replace url content = content.replace(/
.*?<\/pre>/gi, '[代码]') // replace code
    content = content.replace(/<[^>]+>/g,"") // remove html tag

    if (content.length > 150) {
      content = content.substring(0,150) + '...'
    }
    return content
  }

  const getComment = () => {
    const runTwikoo = () => {
      twikoo.getRecentComments({
        envId: 'https://amclubs.netlify.app/.netlify/functions/twikoo',
        region: '',
        pageSize: 6,
        includeReply: true
      }).then(function (res) {
        const twikooArray = res.map(e => {
          return {
            'content': changeContent(e.comment),
            'avatar': e.avatar,
            'nick': e.nick,
            'url': e.url + '#' + e.id,
            'date': new Date(e.created).toISOString()
          }
        })

        saveToLocal.set('twikoo-newest-comments', JSON.stringify(twikooArray), 10/(60*24))
        generateHtml(twikooArray)
      }).catch(function (err) {
        const $dom = document.querySelector('#card-newest-comments .aside-list')
        $dom.textContent= "无法获取评论,请确认相关配置是否正确"
      })
    }

    if (typeof twikoo === 'object') {
      runTwikoo()
    } else {
      getScript('https://cdn.cbd.int/[email protected]/dist/twikoo.all.min.js').then(runTwikoo)
    }
  }

  const generateHtml = array => {
    let result = ''

    if (array.length) {
      for (let i = 0; i < array.length; i++) {
        result += '
' if (true) { const name = 'data-lazy-src' result += `${array[i].nick}
${array[i].nick}
` } result += `
${array[i].content}
` } } else { result += '没有评论' } let $dom = document.querySelector('#card-newest-comments .aside-list') $dom && ($dom.innerHTML= result) window.lazyLoadInstance && window.lazyLoadInstance.update() window.pjax && window.pjax.refresh($dom) } const newestCommentInit = () => { if (document.querySelector('#card-newest-comments .aside-list')) { const data = saveToLocal.get('twikoo-newest-comments') if (data) { generateHtml(JSON.parse(data)) } else { getComment() } } } newestCommentInit() document.addEventListener('pjax:complete', newestCommentInit) })