mirror of
https://github.com/StarGazer114/stargazer114.github.io.git
synced 2025-01-24 22:09:31 +08:00
325 lines
30 KiB
HTML
325 lines
30 KiB
HTML
|
<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0,viewport-fit=cover"><title>给你的QQNT装上插件-LiteLoaderQQNT | 拾光小阁</title><meta name="author" content="br"><meta name="copyright" content="br"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="这是什么 LiteLoaderQQNT 是 QQNT 的插件加载器,一般在 QQNT 的环境内简称为 LiteLoader它可以让你自由地为 QQNT 添加各种插件,并实现例如美化主题、增加功能等各种功能支持 QQNT 桌面端 全架构 最低 25765 版本到官网最新版本(一般情况是这样的)">
|
|||
|
<meta property="og:type" content="article">
|
|||
|
<meta property="og:title" content="给你的QQNT装上插件-LiteLoaderQQNT">
|
|||
|
<meta property="og:url" content="https://bear556.top/6adfd783b527/index.html">
|
|||
|
<meta property="og:site_name" content="拾光小阁">
|
|||
|
<meta property="og:description" content="这是什么 LiteLoaderQQNT 是 QQNT 的插件加载器,一般在 QQNT 的环境内简称为 LiteLoader它可以让你自由地为 QQNT 添加各种插件,并实现例如美化主题、增加功能等各种功能支持 QQNT 桌面端 全架构 最低 25765 版本到官网最新版本(一般情况是这样的)">
|
|||
|
<meta property="og:locale" content="zh_CN">
|
|||
|
<meta property="og:image" content="https://bear556.top/img/avatar.webp">
|
|||
|
<meta property="article:published_time" content="2025-01-13T17:01:37.000Z">
|
|||
|
<meta property="article:modified_time" content="2025-01-17T00:20:25.052Z">
|
|||
|
<meta property="article:author" content="br">
|
|||
|
<meta property="article:tag" content="QQNT">
|
|||
|
<meta name="twitter:card" content="summary">
|
|||
|
<meta name="twitter:image" content="https://bear556.top/img/avatar.webp"><link rel="shortcut icon" href="/img/favicon.ico"><link rel="canonical" href="https://bear556.top/6adfd783b527/index.html"><link rel="preconnect"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="/pluginsSrc/@fortawesome/fontawesome-free/css/all.min.css"><script>
|
|||
|
(() => {
|
|||
|
|
|||
|
const saveToLocal = {
|
|||
|
set: (key, value, ttl) => {
|
|||
|
if (!ttl) return
|
|||
|
const expiry = Date.now() + ttl * 86400000
|
|||
|
localStorage.setItem(key, JSON.stringify({ value, expiry }))
|
|||
|
},
|
|||
|
get: key => {
|
|||
|
const itemStr = localStorage.getItem(key)
|
|||
|
if (!itemStr) return undefined
|
|||
|
const { value, expiry } = JSON.parse(itemStr)
|
|||
|
if (Date.now() > expiry) {
|
|||
|
localStorage.removeItem(key)
|
|||
|
return undefined
|
|||
|
}
|
|||
|
return value
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
window.btf = {
|
|||
|
saveToLocal,
|
|||
|
getScript: (url, attr = {}) => new Promise((resolve, reject) => {
|
|||
|
const script = document.createElement('script')
|
|||
|
script.src = url
|
|||
|
script.async = true
|
|||
|
Object.entries(attr).forEach(([key, val]) => script.setAttribute(key, val))
|
|||
|
script.onload = script.onreadystatechange = () => {
|
|||
|
if (!script.readyState || /loaded|complete/.test(script.readyState)) resolve()
|
|||
|
}
|
|||
|
script.onerror = reject
|
|||
|
document.head.appendChild(script)
|
|||
|
}),
|
|||
|
getCSS: (url, id) => new Promise((resolve, reject) => {
|
|||
|
const link = document.createElement('link')
|
|||
|
link.rel = 'stylesheet'
|
|||
|
link.href = url
|
|||
|
if (id) link.id = id
|
|||
|
link.onload = link.onreadystatechange = () => {
|
|||
|
if (!link.readyState || /loaded|complete/.test(link.readyState)) resolve()
|
|||
|
}
|
|||
|
link.onerror = reject
|
|||
|
document.head.appendChild(link)
|
|||
|
}),
|
|||
|
addGlobalFn: (key, fn, name = false, parent = window) => {
|
|||
|
if (!true && key.startsWith('pjax')) return
|
|||
|
const globalFn = parent.globalFn || {}
|
|||
|
globalFn[key] = globalFn[key] || {}
|
|||
|
globalFn[key][name || Object.keys(globalFn[key]).length] = fn
|
|||
|
parent.globalFn = globalFn
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
const activateDarkMode = () => {
|
|||
|
document.documentElement.setAttribute('data-theme', 'dark')
|
|||
|
if (document.querySelector('meta[name="theme-color"]') !== null) {
|
|||
|
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
|
|||
|
}
|
|||
|
}
|
|||
|
const activateLightMode = () => {
|
|||
|
document.documentElement.setAttribute('data-theme', 'light')
|
|||
|
if (document.querySelector('meta[name="theme-color"]') !== null) {
|
|||
|
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
btf.activateDarkMode = activateDarkMode
|
|||
|
btf.activateLightMode = activateLightMode
|
|||
|
|
|||
|
const theme = saveToLocal.get('theme')
|
|||
|
|
|||
|
theme === 'dark' ? activateDarkMode() : theme === 'light' ? activateLightMode() : null
|
|||
|
|
|||
|
|
|||
|
const asideStatus = saveToLocal.get('aside-status')
|
|||
|
if (asideStatus !== undefined) {
|
|||
|
document.documentElement.classList.toggle('hide-aside', asideStatus === 'hide')
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
const detectApple = () => {
|
|||
|
if (/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)) {
|
|||
|
document.documentElement.classList.add('apple')
|
|||
|
}
|
|||
|
}
|
|||
|
detectApple()
|
|||
|
|
|||
|
})()
|
|||
|
</script><script>const GLOBAL_CONFIG = {
|
|||
|
root: '/',
|
|||
|
algolia: undefined,
|
|||
|
localSearch: {"path":"/search.xml","preload":true,"top_n_per_article":1,"unescape":true,"languages":{"hits_empty":"未找到符合您查询的内容:${query}","hits_stats":"共找到 ${hits} 篇文章"}},
|
|||
|
translate: undefined,
|
|||
|
highlight: {"plugin":"highlight.js","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false,"highlightFullpage":false,"highlightMacStyle":false},
|
|||
|
copy: {
|
|||
|
success: '复制成功',
|
|||
|
error: '复制失败',
|
|||
|
noSupport: '浏览器不支持'
|
|||
|
},
|
|||
|
relativeDate: {
|
|||
|
homepage: false,
|
|||
|
post: false
|
|||
|
},
|
|||
|
runtime: '',
|
|||
|
dateSuffix: {
|
|||
|
just: '刚刚',
|
|||
|
min: '分钟前',
|
|||
|
hour: '小时前',
|
|||
|
day: '天前',
|
|||
|
month: '个月前'
|
|||
|
},
|
|||
|
copyright: undefined,
|
|||
|
lightbox: 'null',
|
|||
|
Snackbar: undefined,
|
|||
|
infinitegrid: {
|
|||
|
js: '/pluginsSrc/@egjs/infinitegrid/dist/infinitegrid.min.js',
|
|||
|
buttonText: '加载更多'
|
|||
|
},
|
|||
|
isPhotoFigcaption: false,
|
|||
|
islazyload: false,
|
|||
|
isAnchor: false,
|
|||
|
percent: {
|
|||
|
toc: true,
|
|||
|
rightside: false,
|
|||
|
},
|
|||
|
autoDarkmode: false
|
|||
|
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
|
|||
|
title: '给你的QQNT装上插件-LiteLoaderQQNT',
|
|||
|
isPost: true,
|
|||
|
isHome: false,
|
|||
|
isHighlightShrink: false,
|
|||
|
isToc: true,
|
|||
|
isShuoshuo: false
|
|||
|
}</script><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=LXGW+WenKai+TC:wght@700&display=swap" rel="stylesheet"><meta name="generator" content="Hexo 7.3.0"><link rel="alternate" href="/rss.xml" title="拾光小阁" type="application/rss+xml">
|
|||
|
</head><body><div id="loading-box"><div class="loading-left-bg"></div><div class="loading-right-bg"></div><div class="spinner-box"><div class="configure-border-1"><div class="configure-core"></div></div><div class="configure-border-2"><div class="configure-core"></div></div><div class="loading-word">加载中...</div></div></div><script>(()=>{
|
|||
|
const $loadingBox = document.getElementById('loading-box')
|
|||
|
const $body = document.body
|
|||
|
const preloader = {
|
|||
|
endLoading: () => {
|
|||
|
$body.style.overflow = ''
|
|||
|
$loadingBox.classList.add('loaded')
|
|||
|
},
|
|||
|
initLoading: () => {
|
|||
|
$body.style.overflow = 'hidden'
|
|||
|
$loadingBox.classList.remove('loaded')
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
preloader.initLoading()
|
|||
|
window.addEventListener('load', preloader.endLoading)
|
|||
|
|
|||
|
if (true) {
|
|||
|
btf.addGlobalFn('pjaxSend', preloader.initLoading, 'preloader_init')
|
|||
|
btf.addGlobalFn('pjaxComplete', preloader.endLoading, 'preloader_end')
|
|||
|
}
|
|||
|
})()</script><div id="web_bg" style="background-image: url(https://cn-sy1.rains3.com/static-1/img/DFeeiOJQRFYUUFbBQM.webp);"></div><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img text-center"><img src="/img/avatar.webp" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="site-data text-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">16</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">14</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">5</div></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-user"></i><span> 关于</span></a></div><div class="menus_item"><a class="site-page" href="/links/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/talks/"><i class="fa-fw fas fa-comment"></i><span> 叨叨</span></a></div><div class="menus_item"><a class="site-page" href="/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></div><div class="menus_item"><a class="site-page" target="_blank" rel="noopener" href="https://www.travellings.cn/go.html"><i class="fa-fw fas fa-subway"></i><span> 开往</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image: url(https://cn-sy1.rains3.com/static-1/img/bg.webp);"><nav id="nav"><span id="blog-info"><a class="nav-site-title" href="/"><span class="site-name">拾光小阁</span></a><a class="nav-page-title" href="/"><span class="site-name">给你的QQNT装上插件-LiteLoaderQQNT</span></a></span><div id="menus"><div id="search-button"><span class="site-page social-icon search"><i class="fas fa-search fa-fw"></i><span> 搜索</span></span></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-user"></i><span> 关于</span></a></div><div class="menus_item"><a class="site-page" href="/links/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/talks/"><i class="fa-fw fas fa-comment"></i><span> 叨叨</span></a></div><div class="menus_item"><a class="site-page" href="/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></div><div class="menus_item"><a class="site-page" target="_blank" rel="noopener" href="https://www.travellings.cn/go.html"><i class="fa-fw fas fa-subway"></i><span> 开往</span></a></div></div><div id="toggle-menu"><span class="site-page"><i class="fas fa-bars fa-fw"></i></span></div></div></nav><div id="post-info"><h1 class="post-title">给你的QQNT装上插件-LiteLoaderQQNT</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2025-01-13T17:01:37.000Z" title="发表于 2025-01-14 01:01:37">2025-01-14</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2025-01-17T00:20:25.052Z" title="更新于 2025-01-17 08:20:25">2025-01-17</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/%E8%BD%AF%E4%BB%B6/">软件</a></span></d
|
|||
|
<p>LiteLoaderQQNT 是 QQNT 的插件加载器,一般在 QQNT 的环境内简称为 LiteLoader<br>它可以让你自由地为 QQNT 添加各种插件,并实现例如美化主题、增加功能等各种功能<br>支持 QQNT 桌面端 全架构 最低 <code>25765</code> 版本到官网最新版本(一般情况是这样的)</p>
|
|||
|
</blockquote>
|
|||
|
<span id="more"></span>
|
|||
|
|
|||
|
<h1 id="安装"><a href="#安装" class="headerlink" title="安装"></a>安装</h1><h2 id="下载文件"><a href="#下载文件" class="headerlink" title="下载文件"></a>下载文件</h2><p>你需要先把LiteLoaderQQNT下载到你的电脑上。</p>
|
|||
|
<ul>
|
|||
|
<li>打开<a target="_blank" rel="noopener" href="https://github.com/LiteLoaderQQNT/LiteLoaderQQNT/releases">Releases页面</a>页面,下载<code>LiteLoaderQQNT.zip</code>文件,解压放到任意位置,也可以通过git克隆项目仓库,命令如下:</li>
|
|||
|
</ul>
|
|||
|
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">git clone --depth 1 https://github.com/LiteLoaderQQNT/LiteLoaderQQNT.git</span><br></pre></td></tr></table></figure>
|
|||
|
|
|||
|
<p>如果你用的是Windows设备,还需要额外的移除文件校验的步骤。</p>
|
|||
|
<ul>
|
|||
|
<li>前往<a target="_blank" rel="noopener" href="https://github.com/LiteLoaderQQNT/QQNTFileVerifyPatch/releases">DllHijack</a> ,下载适合你设备的文件,放到<code>QQ.exe</code>同级目录下</li>
|
|||
|
</ul>
|
|||
|
<h2 id="修改文件手动安装"><a href="#修改文件手动安装" class="headerlink" title="修改文件手动安装"></a>修改文件手动安装</h2><p>先找到 app 文件夹的路径,修改里面的两个文件</p>
|
|||
|
<ul>
|
|||
|
<li><p>查看 QQNT 根目录,是否存在 versions 文件夹</p>
|
|||
|
<ul>
|
|||
|
<li>是,则路径为 QQNT\versions\版本号\resources\app</li>
|
|||
|
<li>否,则路径为 QQNT\resources\app</li>
|
|||
|
</ul>
|
|||
|
</li>
|
|||
|
<li><p>在 app 目录中,创建一个文件,修改一个文件</p>
|
|||
|
<ul>
|
|||
|
<li>创建 app/app_launcher/*.js 文件,其中 * 为文件名可随意设置,写入 require(String.raw<code>*</code>) 其中 * 为 LiteLoaderQQNT 的路径</li>
|
|||
|
<li>修改 app/package.json 文件,将 main 后面的路径改为 ./app_launcher/*.js 其中 * 为你刚才创建的文件名</li>
|
|||
|
</ul>
|
|||
|
</li>
|
|||
|
</ul>
|
|||
|
<h2 id="检查安装"><a href="#检查安装" class="headerlink" title="检查安装"></a>检查安装</h2><p>打开QQ设置,查看是否有<code>LiteLoaderQQNT</code>选项,rt。<br><img src="https://cn-sy1.rains3.com/img-bed/2025/01/14/678653cac3a0e.png" alt="image.png"></p>
|
|||
|
<h2 id="安装插件列表"><a href="#安装插件列表" class="headerlink" title="安装插件列表"></a>安装插件列表</h2><p>默认情况下安装插件需要去官网查找挨个下载,这样的方式非常不人性化,你可以通过安装<code>LL-plugin-list-viewer</code>这个插件来可视化的下载并管理你的插件。</p>
|
|||
|
<ul>
|
|||
|
<li>下载<br>前往<a target="_blank" rel="noopener" href="https://github.com/ltxhhz/LL-plugin-list-viewer/releases">LL-plugin-list-viewer</a>下载<code>list-viewer.zip </code>文件,无需解压。</li>
|
|||
|
<li>加载插件<br>打开你的 <code>LiteLoaderQQNT设置页面</code>,点安装插件并选择下载的文件,然后重启QQ,回到设置页面,就可以看到插件列表了。<br><img src="https://cn-sy1.rains3.com/img-bed/2025/01/14/678656278824a.png" alt="image.png"></li>
|
|||
|
</ul>
|
|||
|
</article><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/tags/QQNT/">QQNT</a></div><div class="post-share"><div class="social-share" data-image="/img/avatar.webp" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="/pluginsSrc/butterfly-extsrc/sharejs/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="/pluginsSrc/butterfly-extsrc/sharejs/dist/js/social-share.min.js" defer></script></div></div><nav class="pagination-post" id="pagination"><a class="pagination-related" href="/9ef68bee387f/" title="人体系统调优指南"><div class="cover" style="background: var(--default-bg-color)"></div><div class="info"><div class="info-1"><div class="info-item-1">上一篇</div><div class="info-item-2">人体系统调优指南</div></div><div class="info-2"><div class="info-item-1"> 本文转载自HumanSystemOptimization UPDATES: 补充一篇 24 年初的文章,分享最近一年的一些个人实践:养生博主的 23 年总结。 鉴于文章比较长,很多同学没有耐心读完,后续也分享录制了一个 视频版,基本涵盖了文章里的大部分内容。 另外在健康生活实践方面,也提供一个极简版的基础列表,供大家参考: 保持睡眠时长与质量。 不要吸烟。 尽可能每天做点运动。 减少糖分的摄入。 能做到这四点,就已经可以达到一个还不错的健康状态了。剩下的可以根据各自的身体状况再来做补充调整。 背景去年 5 月曾经写了一篇文章介绍了下 Lex Fridman 大佬的日常生活安排,后续我也根据他的方法对自己的日常生活做了一系列规范和改进。这一年整体实行下来,效果还是非常显著的,本文的最后会对我的一些实践以及借助的工具做一些分享。 最近几个月,偶然在油管上看到了个 Rich Roll 采访 Andrew Huberman 的 podcast,介绍了如何提升我们日常工作,学习表现的相关神经科学原理与可以利用的“工具”,瞬间打开了一扇新世界的大门。后续又一连追了好几集...</div></div></div></a><a class="pagination-related" href="/6f831c5bafc6/" title="新年"><div class="cover" style="background: var(--default-bg-color)"></div><div class="info text-right"><div class="info-1"><div class="info-item-1">下一篇</div><div class="info-item-2">新年</div></div><div class="info-2"><div class="info-item-1"> 祝大家在新的蛇年里越蛇越多 </div></div></div></a></nav><hr class="custom-hr"/><div id="post-comment"><div class="comment-head"><div class="comment-headline"><i class="fas fa-comments fa-fw"></i><span> 评论</span></div></div><div class="comment-wrap"><div><div id="waline-wrap"></div></div></div></div></div><div class="aside-content" id="aside-content"><div class="card-widget card-info text-center"><div class="avatar-img"><img src="/img/avatar.webp" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info-name">br</div><div class="author-info-description">万钟则不辨礼仪而受之,万种于我美滋滋</div><div class="site-data"><a href="/archives/"><div class="headline">文章</div><div class="length-num">16</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">14</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">5</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/StarGazer114"><i class="fab fa-github"></i><span>Follow Me</span></a><div class="card-info-social-icons"><a class="social-icon" href="https://github.com/StarGazer114" target="_blank" title="Github"><i class="fab fa-github" style="color: #24292e;"></i></a><a class="social-icon" href="mailto:ljsh666@outlook.com" target="_blank" title="Email"><i class="fas fa-envelope" style="color: #4a7dbe;"></i></a><a class="social-icon" href="https://x.com/bear36609893920" target="_blank" title="Twitter"><i class="fab fa-twitter" style="color: #1da1f2;"></i></a><a class="
|
|||
|
let initFn = window.walineFn || null
|
|||
|
const isShuoshuo = GLOBAL_CONFIG_SITE.isShuoshuo
|
|||
|
const option = null
|
|||
|
|
|||
|
const destroyWaline = ele => ele.destroy()
|
|||
|
|
|||
|
const initWaline = (Fn, el = document, path = window.location.pathname) => {
|
|||
|
const waline = Fn({
|
|||
|
el: el.querySelector('#waline-wrap'),
|
|||
|
serverURL: 'https://waline.bear556.top',
|
|||
|
pageview: true,
|
|||
|
dark: 'html[data-theme="dark"]',
|
|||
|
comment: false,
|
|||
|
...option,
|
|||
|
path: isShuoshuo ? path : (option && option.path) || path
|
|||
|
})
|
|||
|
|
|||
|
if (isShuoshuo) {
|
|||
|
window.shuoshuoComment.destroyWaline = () => {
|
|||
|
destroyWaline(waline)
|
|||
|
if (el.children.length) {
|
|||
|
el.innerHTML = ''
|
|||
|
el.classList.add('no-comment')
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
const loadWaline = (el, path) => {
|
|||
|
if (initFn) initWaline(initFn, el, path)
|
|||
|
else {
|
|||
|
btf.getCSS('/pluginsSrc/@waline/client/dist/waline.css')
|
|||
|
.then(() => import('/pluginsSrc/@waline/client/dist/waline.js'))
|
|||
|
.then(({ init }) => {
|
|||
|
initFn = init || Waline.init
|
|||
|
initWaline(initFn, el, path)
|
|||
|
window.walineFn = initFn
|
|||
|
})
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
if (isShuoshuo) {
|
|||
|
'Waline' === 'Waline'
|
|||
|
? window.shuoshuoComment = { loadComment: loadWaline }
|
|||
|
: window.loadOtherComment = loadWaline
|
|||
|
return
|
|||
|
}
|
|||
|
|
|||
|
if ('Waline' === 'Waline' || !false) {
|
|||
|
if (false) btf.loadComment(document.getElementById('waline-wrap'),loadWaline)
|
|||
|
else setTimeout(loadWaline, 0)
|
|||
|
} else {
|
|||
|
window.loadOtherComment = loadWaline
|
|||
|
}
|
|||
|
})()</script></div><div class="aplayer no-destroy" data-id="9401784769" data-server="tencent" data-type="playlist" data-fixed="true" data-autoplay="true"> </div><script defer="defer" id="fluttering_ribbon" mobile="false" src="/pluginsSrc/butterfly-extsrc/dist/canvas-fluttering-ribbon.min.js"></script><link rel="stylesheet" href="/pluginsSrc/aplayer/dist/APlayer.min.css" media="print" onload="this.media='all'"><script src="/pluginsSrc/aplayer/dist/APlayer.min.js"></script><script src="/pluginsSrc/butterfly-extsrc/metingjs/dist/Meting.min.js"></script><script>(() => {
|
|||
|
const destroyAplayer = () => {
|
|||
|
if (window.aplayers) {
|
|||
|
for (let i = 0; i < window.aplayers.length; i++) {
|
|||
|
if (!window.aplayers[i].options.fixed) {
|
|||
|
window.aplayers[i].destroy()
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
const runMetingJS = () => {
|
|||
|
typeof loadMeting === 'function' && document.getElementsByClassName('aplayer').length && loadMeting()
|
|||
|
}
|
|||
|
|
|||
|
btf.addGlobalFn('pjaxSend', destroyAplayer, 'destroyAplayer')
|
|||
|
btf.addGlobalFn('pjaxComplete', loadMeting, 'runMetingJS')
|
|||
|
})()</script><script src="/pluginsSrc/pjax/pjax.min.js"></script><script>(() => {
|
|||
|
const pjaxSelectors = ["head > title","#config-diff","#body-wrap","#rightside-config-hide","#rightside-config-show",".js-pjax"]
|
|||
|
|
|||
|
window.pjax = new Pjax({
|
|||
|
elements: 'a:not([target="_blank"])',
|
|||
|
selectors: pjaxSelectors,
|
|||
|
cacheBust: false,
|
|||
|
analytics: false,
|
|||
|
scrollRestoration: false
|
|||
|
})
|
|||
|
|
|||
|
const triggerPjaxFn = (val) => {
|
|||
|
if (!val) return
|
|||
|
Object.values(val).forEach(fn => fn())
|
|||
|
}
|
|||
|
|
|||
|
document.addEventListener('pjax:send', () => {
|
|||
|
// removeEventListener
|
|||
|
btf.removeGlobalFnEvent('pjaxSendOnce')
|
|||
|
btf.removeGlobalFnEvent('themeChange')
|
|||
|
|
|||
|
// reset readmode
|
|||
|
const $bodyClassList = document.body.classList
|
|||
|
if ($bodyClassList.contains('read-mode')) $bodyClassList.remove('read-mode')
|
|||
|
|
|||
|
triggerPjaxFn(window.globalFn.pjaxSend)
|
|||
|
})
|
|||
|
|
|||
|
document.addEventListener('pjax:complete', () => {
|
|||
|
btf.removeGlobalFnEvent('pjaxCompleteOnce')
|
|||
|
document.querySelectorAll('script[data-pjax]').forEach(item => {
|
|||
|
const newScript = document.createElement('script')
|
|||
|
const content = item.text || item.textContent || item.innerHTML || ""
|
|||
|
Array.from(item.attributes).forEach(attr => newScript.setAttribute(attr.name, attr.value))
|
|||
|
newScript.appendChild(document.createTextNode(content))
|
|||
|
item.parentNode.replaceChild(newScript, item)
|
|||
|
})
|
|||
|
|
|||
|
triggerPjaxFn(window.globalFn.pjaxComplete)
|
|||
|
})
|
|||
|
|
|||
|
document.addEventListener('pjax:error', e => {
|
|||
|
if (e.request.status === 404) {
|
|||
|
pjax.loadUrl('/404.html')
|
|||
|
}
|
|||
|
})
|
|||
|
})()</script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><div id="local-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><span id="loading-status"></span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="text-center" id="loading-database"><i class="fas fa-spinner fa-pulse"></i><span> 数据加载中</span></div><div class="search-wrap"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜搜搜~" type="text"/></div></div><hr/><div id="local-search-results"></div><div id="local-search-stats-wrap"></div></div></div><div id="search-mask"></div><script src="/js/search/local-search.js"></script></div></div></body></html>
|