feat(aklive2d): added link to offical_update

This commit is contained in:
Haoyu Xu
2023-10-13 23:44:14 -04:00
parent 2ce8abfad5
commit a9a5d90165
2 changed files with 69 additions and 34 deletions

View File

@@ -31,6 +31,7 @@ export default async function () {
"en-US": charCard.querySelector(".info").querySelector(".codename").textContent.trim()
}
const rawType = charCard.querySelector(".typeIcon").querySelector("svg").querySelector("use").getAttribute("xlink:href")
const link = "https://ak.hypergryph.com" + charCard.getAttribute("href")
let type;
switch (rawType) {
@@ -44,7 +45,8 @@ export default async function () {
operators.push({
color,
codename,
type
type,
link
})
dict.length++
}