获取最新版本Valine
,截至目前为止最新版本是1.4.14
,格式化与否都可。
https://unpkg.com/valine/dist/Valine.min.js
搜索sina
字段。
function(e, t, n) {
"use strict";
t.__esModule = !0;
t.DEFAULT_EMOJI_CDN = "//img.t.sinajs.cn/t4/appstyle/expression/ext/normal/",
t.DB_NAME = "Comment",
t.defaultConfig = {
lang: "zh-CN",
langMode: null,
appId: "",
appKey: "",
clazzName: "Comment",
meta: ["nick", "mail", "link"],
path: location.pathname,
placeholder: "Just Go Go",
pageSize: 10,
recordIP: !0,
serverURLs: "",
visitor: !1,
emojiCDN: "",
emojiMaps: void 0,
enableQQ: !1,
requiredFields: []
},
t.defaultMeta = ["nick", "mail", "link"],
t.QQCacheKey = "_v_Cache_Q",
t.MetaCacheKey = "_v_Cache_Meta",
t.RandomStr = (Date.now() Math.round(1e3 * Math.random())).toString(32),
t.VERSION = "1.4.14"
},
修改其中的emojiCDN
和emojiMaps
字段内容。我选择GitHub jsdelivr
高配置[doge],emojiCDN
是域名,emojiMaps
是路径,合起来可以请求到一张图片。例:
//img.t.sinajs.cn/t4/appstyle/expression/ext/normal/2c/2018new_qinqin_thumb.png
其中img.t.sinajs.cn/t4/appstyle/expression/ext/normal/
就是emojiCDN
,2c/2018new_qinqin_thumb.png
就是emojiMaps
。其中emojiMaps
部分需要按照格式,例:
s2: "alu/2.png",//表情包名称无空格可以不加引号
"sss 2": "alu/2.png"//表情包名称含空格需加引号