B站复杂成分指示器·多成分无攻击性·新三相之力(现在是超多项了)指示器魔改【2022/9/19】

B站大量热门吃瓜成分关键词,可选类型开启,可开启米hater模式,多种常见成分[网游x5|手游x13|端游x3|主机x4|VTBx7],自用分享,改自新三相之力指示器,本人只是吃瓜人,成分复杂不是米卫兵不用查

// ==UserScript==
// @name         B站复杂成分指示器·多成分无攻击性·新三相之力(现在是超多项了)指示器魔改【2022/9/19】
// @namespace    DLjun
// @version      1.3
// @description  B站大量热门吃瓜成分关键词,可选类型开启,可开启米hater模式,多种常见成分[网游x5|手游x13|端游x3|主机x4|VTBx7],自用分享,改自新三相之力指示器,本人只是吃瓜人,成分复杂不是米卫兵不用查
// @author       xulaupuz&nightswan&DLjun
// @match        https://www.bilibili.com/video/*
// @match        https://t.bilibili.com/*
// @match        https://space.bilibili.com/*
// @match        https://space.bilibili.com/*
// @match        https://www.bilibili.com/read/*
// @icon         https://static.hdslb.com/images/favicon.ico
// @connect      bilibili.com
// @grant        GM_xmlhttpRequest
// @license MIT
// @run-at document-end
// ==/UserScript==


(function () {
    'use strict';
    const unknown = new Set()

    //=========总开关=========

    //是否显示vtuber
    let vtuber = true

    //是否显示主机
    let zhuji = true

    //是否显示手游
    let shouyou = true

    //是否显示端游
    let duanyou = true

    //是否显示网游
    let wangyou = true

    //是否校验米hater,不喜别开,默认关闭
    let hater = false


    //=========网游=========
    const keyword_xjqx = "仙剑"
    const keyword_gjqt = "古剑"
    const keyword_nsh = "逆水寒"
    const keyword_zxsj = "诛仙世界"
    const keyword_jw = "剑网"

    //=========端游=========
    const keyword_hsh = "黑神话"
    const keyword_lol = "英雄联盟"
    const keyword_cod = "使命召唤"
    const keyword_cod1 = "干员"

    //=========手游=========
    const keyword_yuan = "原神"
    const keyword_yuan1 = "原宝"
    const keyword_zhou = "明日方舟"
    const keyword_nong = "王者荣耀"
    const keyword_huanta = "幻塔"
    const keyword_zhanshuang = "战双"
    const keyword_mingchao = "鸣潮"
    const keyword_Zzz = "绝区零"
    const keyword_bbb = "崩坏3"
    const keyword_bbb2 = "崩3"
    const keyword_bbb3 = "崩坏学院"
    const keyword_td = "星穹铁道"
    const keyword_gy = "光遇"
    const keyword_blhx = "碧蓝"
    const keyword_fgo = "FGO"
    const keyword_fgo1 = "Fate"
    const keyword_fgo2 = "命运-冠位指定"
    const keyword_gzlj = "公主连结"

    //=========主机=========
    const keyword_sed = "塞尔达"
    const keyword_sed1 = "旷野之息"
    const keyword_gwlr = "怪物猎人"
    const keyword_gwlr1 = "怪猎"

    //=========VTB=========
    const keyword_jr = "嘉然"
    const keyword_xw = "向晚"
    const keyword_bl = "贝拉"
    const keyword_jl = "珈乐"
    const keyword_nl = "乃琳"
    const keyword_cy = "初音"
    const keyword_lty = "洛天依"

    //=========其他=========
    const keyword_cj = "抽奖"
    const keyword_xh = "转正答题"

    //=========前缀=========
    const tag_yuan = "原"
    const tag_Zzz = "零"
    const tag_bbb = "崩"
    const tag_td = "铁"
    const tag_mihayo = "💘💘米神💘💘"
    const tag_nor = "<🏃路人>"
    const tag_zhou = "<🚢方舟>"
    const tag_nong = "<🔱王者>"
    const tag_blhx = "<⚓碧蓝>"
    const tag_gzlj = "<💐公主>"
    const tag_fgo = "<🤹🏻‍♂️FGO>"
    const tag_huanta = "<🗻幻塔>"
    const tag_gy = "<🌞光遇>"
    const tag_zhanshuang = "<🌟战双>"
    const tag_mingchao = "<🌊鸣潮>"
    const tag_cod = "<🎮COD>"
    const tag_lol = "<🏆LOL>"
    const tag_sed = "<🌐塞尔达>"
    const tag_hsh = "<🦇黑神话>"
    const tag_gwlr = "<🦂怪猎>"
    const tag_xh = "<👽小号>"
    const tag_Asoul = "<💟Asoul>"
    const tag_lty = "洛"
    const tag_cy = "初"
    const tag_jr = "嘉"
    const tag_xw = "晚"
    const tag_bl = "贝"
    const tag_jl = "珈"
    const tag_nl = "乃"
    const tag_cj = "✔️" //抽奖状态只会在为小号时触发

    const tag_xianwang = "😇😇仙王😇😇"
    const tag_xjqx = "仙"
    const tag_gjqt = "古"
    const tag_nsh = "逆"
    const tag_zxsj = "诛"
    const tag_jw = "网"


    //成分,可自定义
    const yuanyou = new Set()
    const no_yuanyou = new Set()
    const zhouyou = new Set()
    const no_zhouyou = new Set()
    const nongyou = new Set()
    const no_nongyou = new Set()
    const fgo = new Set()
    const no_fgo = new Set()
    const mihayo = new Set()
    const no_mihayo = new Set()
    const blhx = new Set()
    const no_blhx = new Set()
    const gzlj = new Set()
    const no_gzlj = new Set()
    const nor = new Set()
    const no_nor = new Set()
    const cj = new Set()
    const no_cj = new Set()
    const cy = new Set()
    const no_cy = new Set()
    const Asoul = new Set()
    const no_Asoul = new Set()
    const jr = new Set()
    const no_jr = new Set()
    const xw = new Set()
    const no_xw = new Set()
    const bl = new Set()
    const no_bl = new Set()
    const jl = new Set()
    const no_jl = new Set()
    const nl = new Set()
    const no_nl = new Set()
    const mh = new Set()
    const no_mh = new Set()
    const xh = new Set()
    const no_xh = new Set()
    const huanta = new Set()
    const no_huanta = new Set()
    const zhanshuang = new Set()
    const no_zhanshuang = new Set()
    const mingchao = new Set()
    const no_mingchao = new Set()
    const Zzz = new Set()
    const no_Zzz = new Set()
    const bbb = new Set()
    const no_bbb = new Set()
    const td = new Set()
    const no_td = new Set()
    const gy = new Set()
    const no_gy = new Set()
    const hsh = new Set()
    const no_hsh = new Set()
    const gwlr = new Set()
    const no_gwlr = new Set()
    const sed = new Set()
    const no_sed = new Set()
    const lol = new Set()
    const no_lol = new Set()
    const cod = new Set()
    const no_cod = new Set()
    const lty = new Set()
    const no_lty = new Set()
    const xjqx = new Set()
    const no_xjqx = new Set()
    const gjqt = new Set()
    const no_gjqt = new Set()
    const nsh = new Set()
    const no_nsh = new Set()
    const jw = new Set()
    const no_jw = new Set()
    const zxsj = new Set()
    const no_zxsj = new Set()
    const xianwang = new Set()
    const no_xianwang = new Set()

    //放这里防喷,不喜欢别开,真的
    const tag_mh = "<🤡米黑>"
    const keyword_mh = "原批"
    const keyword_mh1 = "米猴"
    const keyword_mh2 = "米爹"
    const keyword_mh3 = "猴游"
    const keyword_mh4 = "米站"
    const keyword_mh5 = "⭕️"
    const keyword_mh6 = "genshit"

    const blog = 'https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/space?&host_mid='
    const is_new = document.getElementsByClassName('item goback').length != 0 // 检测是不是新版

    //标签颜色,可自定义,默认为B站会员色
    const tag_nor_Inner = "<b style='color: #FE0000'>" + tag_nor + "</b>"
    const tag_yuan_Inner = "<b style='color: #6600CC'>" + tag_yuan + "</b>"
    const tag_Zzz_Inner = "<b style='color: #2F4F4F'>" + tag_Zzz + "</b>"
    const tag_bbb_Inner = "<b style='color: #808000'>" + tag_bbb + "</b>"
    const tag_td_Inner = "<b style='color: #EE82EE'>" + tag_td + "</b>"
    const tag_zhou_Inner = "<b style='color: #6600CC'>" + tag_zhou + "</b>"
    const tag_gy_Inner = "<b style='color: #BDB76B'>" + tag_gy + "</b>"
    const tag_nong_Inner = "<b style='color: #6600CC'>" + tag_nong + "</b>"
    const tag_huanta_Inner = "<b style='color: #FF00FF'>" + tag_huanta + "</b>"
    const tag_zhanshuang_Inner = "<b style='color: #FF1493'>" + tag_zhanshuang + "</b>"
    const tag_mingchao_Inner = "<b style='color: #008B8B'>" + tag_mingchao + "</b>"
    const tag_mihayo_Inner = "<b style='color: #1E90FF'>" + tag_mihayo + "</b>"
    const tag_blhx_Inner = "<b style='color: #4169E1'>" + tag_blhx + "</b>"
    const tag_gzlj_Inner = "<b style='color: #FF00FF'>" + tag_gzlj + "</b>"
    const tag_fgo_Inner = "<b style='color: #FF7F50'>" + tag_fgo + "</b>"
    const tag_cj_Inner = "<b style='color: #FF0000'>" + tag_cj + "</b>"


    const tag_xianwang_Inner = "<b style='color: #20B2AA'>" + tag_xianwang + "</b>"
    const tag_xjqx_Inner = "<b style='color: #20B2AA'>" + tag_xjqx + "</b>"
    const tag_gjqt_Inner = "<b style='color: #DAA520'>" + tag_gjqt + "</b>"
    const tag_nsh_Inner = "<b style='color: #483D8B'>" + tag_nsh + "</b>"
    const tag_zxsj_Inner = "<b style='color: #87CEEB'>" + tag_zxsj + "</b>"
    const tag_jw_Inner = "<b style='color: #008080'>" + tag_jw + "</b>"


    const tag_sed_Inner = "<b style='color: #6600CC'>" + tag_sed + "</b>"
    const tag_lol_Inner = "<b style='color: #6600CC'>" + tag_lol + "</b>"
    const tag_cod_Inner = "<b style='color: #6600CC'>" + tag_cod + "</b>"
    const tag_hsh_Inner = "<b style='color: #6600CC'>" + tag_hsh + "</b>"
    const tag_gwlr_Inner = "<b style='color: #6600CC'>" + tag_gwlr + "</b>"


    const tag_lty_Inner = "<b style='color: #66CCFF'>" + tag_lty + "</b>"
    const tag_cy_Inner = "<b style='color: #39C5BB'>" + tag_cy + "</b>"

    const tag_Asoul_Inner = "<b style='color: #FC966E'>" + tag_Asoul + "</b>"
    const tag_jr_Inner = "<b style='color: #E799B0'>" + tag_jr + "</b>"
    const tag_xw_Inner = "<b style='color: #9ac8e2'>" + tag_xw + "</b>"
    const tag_bl_Inner = "<b style='color: #DB7D74'>" + tag_bl + "</b>"
    const tag_jl_Inner = "<b style='color: #B8A6D9'>" + tag_jl + "</b>"
    const tag_nl_Inner = "<b style='color: #576690'>" + tag_nl + "</b>"

    const tag_mh_Inner = "<b style='color: #FF0000'>" + tag_mh + "</b>"
    const tag_xh_Inner = "<b style='color: #FE0000'>" + tag_xh + "</b>"



    const get_pid = (c) => {
        if (is_new) {
            return c.dataset['userId']
        } else {
            return c.children[0]['href'].replace(/[^\d]/g, "")
        }
    }

    const get_comment_list = () => {
        if (is_new) {
            let lst = new Set()
            for (let c of document.getElementsByClassName('user-name')) {
                lst.add(c)
            }
            for (let c of document.getElementsByClassName('sub-user-name')) {
                lst.add(c)
            }
            return lst
        } else {
            return document.getElementsByClassName('user')
        }
    }


    console.log(is_new)
    console.log("正常加载")


    let jiance = setInterval(() => {
        let commentlist = get_comment_list()
        if (commentlist.length != 0) {
            // clearInterval(jiance)
            commentlist.forEach(c => {
                let pid = get_pid(c)
                if (jw.has(pid)) {
                    if (c.textContent.includes(tag_jw) === false) {
                        c.innerHTML += tag_jw_Inner
                    }
                    return
                } else if (no_jw.has(pid)) {
                    // do nothing
                    return
                }
                if (zxsj.has(pid)) {
                    if (c.textContent.includes(tag_zxsj) === false) {
                        c.innerHTML += tag_zxsj_Inner
                    }
                    return
                } else if (no_zxsj.has(pid)) {
                    // do nothing
                    return
                }
                if (nsh.has(pid)) {
                    if (c.textContent.includes(tag_nsh) === false) {
                        c.innerHTML += tag_nsh_Inner
                    }
                    return
                } else if (no_nsh.has(pid)) {
                    // do nothing
                    return
                }
                if (gjqt.has(pid)) {
                    if (c.textContent.includes(tag_gjqt) === false) {
                        c.innerHTML += tag_gjqt_Inner
                    }
                    return
                } else if (no_gjqt.has(pid)) {
                    // do nothing
                    return
                }
                if (xjqx.has(pid)) {
                    if (c.textContent.includes(tag_xjqx) === false) {
                        c.innerHTML += tag_xjqx_Inner
                    }
                    return
                } else if (no_xjqx.has(pid)) {
                    // do nothing
                    return
                }
                if (lty.has(pid)) {
                    if (c.textContent.includes(tag_lty) === false) {
                        c.innerHTML += tag_lty_Inner
                    }
                    return
                } else if (no_lty.has(pid)) {
                    // do nothing
                    return
                }
                if (hsh.has(pid)) {
                    if (c.textContent.includes(tag_hsh) === false) {
                        c.innerHTML += tag_hsh_Inner
                    }
                    return
                } else if (no_hsh.has(pid)) {
                    // do nothing
                    return
                }
                if (gwlr.has(pid)) {
                    if (c.textContent.includes(tag_gwlr) === false) {
                        c.innerHTML += tag_gwlr_Inner
                    }
                    return
                } else if (no_gwlr.has(pid)) {
                    // do nothing
                    return
                }
                if (gy.has(pid)) {
                    if (c.textContent.includes(tag_gy) === false) {
                        c.innerHTML += tag_gy_Inner
                    }
                    return
                } else if (no_gy.has(pid)) {
                    // do nothing
                    return
                }
                if (zhanshuang.has(pid)) {
                    if (c.textContent.includes(tag_zhanshuang) === false) {
                        c.innerHTML += tag_zhanshuang_Inner
                    }
                    return
                } else if (no_zhanshuang.has(pid)) {
                    // do nothing
                    return
                }
                if (mingchao.has(pid)) {
                    if (c.textContent.includes(tag_mingchao) === false) {
                        c.innerHTML += tag_mingchao_Inner
                    }
                    return
                } else if (no_mingchao.has(pid)) {
                    // do nothing
                    return
                }
                if (mh.has(pid)) {
                    if (c.textContent.includes(tag_mh) === false) {
                        c.innerHTML += tag_mh_Inner
                    }
                    return
                } else if (no_mh.has(pid)) {
                    // do nothing
                    return
                }
                if (xh.has(pid)) {
                    if (c.textContent.includes(tag_xh) === false) {
                        c.innerHTML += tag_xh_Inner
                    }
                    return
                } else if (no_xh.has(pid)) {
                    // do nothing
                    return
                }
                if (cj.has(pid)) {
                    if (c.textContent.includes(tag_cj) === false) {
                        c.innerHTML += tag_cj_Inner
                    }
                    return
                } else if (no_cj.has(pid)) {
                    // do nothing
                    return
                }
                if (cy.has(pid)) {
                    if (c.textContent.includes(tag_cy) === false) {
                        c.innerHTML += tag_cy_Inner
                    }
                    return
                } else if (no_cy.has(pid)) {
                    // do nothing
                    return
                }
                if (Asoul.has(pid)) {
                    if (c.textContent.includes(tag_Asoul) === false) {
                        c.innerHTML += tag_Asoul_Inner
                    }
                    return
                } else if (no_Asoul.has(pid)) {
                    // do nothing
                    return
                }
                if (jr.has(pid)) {
                    if (c.textContent.includes(tag_jr) === false) {
                        c.innerHTML += tag_jr_Inner
                    }
                    return
                } else if (no_jr.has(pid)) {
                    // do nothing
                    return
                }
                if (xw.has(pid)) {
                    if (c.textContent.includes(tag_xw) === false) {
                        c.innerHTML += tag_xw_Inner
                    }
                    return
                } else if (no_xw.has(pid)) {
                    // do nothing
                    return
                }
                if (bl.has(pid)) {
                    if (c.textContent.includes(tag_bl) === false) {
                        c.innerHTML += tag_bl_Inner
                    }
                    return
                } else if (no_bl.has(pid)) {
                    // do nothing
                    return
                }
                if (jl.has(pid)) {
                    if (c.textContent.includes(tag_jl) === false) {
                        c.innerHTML += tag_jl_Inner
                    }
                    return
                } else if (no_jl.has(pid)) {
                    // do nothing
                    return
                }
                if (nl.has(pid)) {
                    if (c.textContent.includes(tag_nl) === false) {
                        c.innerHTML += tag_nl_Inner
                    }
                    return
                } else if (no_nl.has(pid)) {
                    // do nothing
                    return
                }
                if (fgo.has(pid)) {
                    if (c.textContent.includes(tag_fgo) === false) {
                        c.innerHTML += tag_fgo_Inner
                    }
                    return
                } else if (no_fgo.has(pid)) {
                    // do nothing
                    return
                }
                if (blhx.has(pid)) {
                    if (c.textContent.includes(tag_blhx) === false) {
                        c.innerHTML += tag_blhx_Inner
                    }
                    return
                } else if (no_blhx.has(pid)) {
                    // do nothing
                    return
                }
                if (gzlj.has(pid)) {
                    if (c.textContent.includes(tag_gzlj) === false) {
                        c.innerHTML += tag_gzlj_Inner
                    }
                    return
                } else if (no_gzlj.has(pid)) {
                    // do nothing
                    return
                }
                if (mihayo.has(pid)) {
                    if (c.textContent.includes(tag_mihayo) === false) {
                        c.innerHTML += tag_mihayo_Inner
                    }
                    return
                } else if (no_mihayo.has(pid)) {
                    // do nothing
                    return
                }
                if (xianwang.has(pid)) {
                    if (c.textContent.includes(tag_xianwang) === false) {
                        c.innerHTML += tag_xianwang_Inner
                    }
                    return
                } else if (no_xianwang.has(pid)) {
                    // do nothing
                    return
                }
                if (yuanyou.has(pid)) {
                    if (c.textContent.includes(tag_yuan) === false) {
                        c.innerHTML += tag_yuan_Inner
                    }
                    return
                } else if (no_yuanyou.has(pid)) {
                    // do nothing
                    return
                }
                if (Zzz.has(pid)) {
                    if (c.textContent.includes(tag_Zzz) === false) {
                        c.innerHTML += tag_Zzz_Inner
                    }
                    return
                } else if (no_Zzz.has(pid)) {
                    // do nothing
                    return
                }
                if (bbb.has(pid)) {
                    if (c.textContent.includes(tag_bbb) === false) {
                        c.innerHTML += tag_bbb_Inner
                    }
                    return
                } else if (no_bbb.has(pid)) {
                    // do nothing
                    return
                }
                if (td.has(pid)) {
                    if (c.textContent.includes(tag_td) === false) {
                        c.innerHTML += tag_td_Inner
                    }
                    return
                } else if (no_td.has(pid)) {
                    // do nothing
                    return
                }
                if (zhouyou.has(pid)) {
                    if (c.textContent.includes(tag_zhou) === false) {
                        c.innerHTML += tag_zhou_Inner
                    }
                    return
                } else if (no_zhouyou.has(pid)) {
                    // do nothing
                    return
                }

                if (nongyou.has(pid)) {
                    if (c.textContent.includes(tag_nong) === false) {
                        c.innerHTML += tag_nong_Inner
                    }
                    return
                } else if (no_nongyou.has(pid)) {
                    // do nothing
                    return
                }
                if (nor.has(pid)) {
                    if (c.textContent.includes(tag_nor) === false) {
                        c.innerHTML += tag_nor_Inner
                    }
                    return
                } else if (no_nor.has(pid)) {
                    // do nothing
                    return
                }
                if (sed.has(pid)) {
                    if (c.textContent.includes(tag_sed) === false) {
                        c.innerHTML += tag_sed_Inner
                    }
                    return
                } else if (no_sed.has(pid)) {
                    // do nothing
                    return
                }
                if (lol.has(pid)) {
                    if (c.textContent.includes(tag_lol) === false) {
                        c.innerHTML += tag_lol_Inner
                    }
                    return
                } else if (no_lol.has(pid)) {
                    // do nothing
                    return
                }
                if (cod.has(pid)) {
                    if (c.textContent.includes(tag_cod) === false) {
                        c.innerHTML += tag_cod_Inner
                    }
                    return
                } else if (no_cod.has(pid)) {
                    // do nothing
                    return
                }
                unknown.add(pid)
                //console.log(pid)
                let blogurl = blog + pid
                // let xhr = new XMLHttpRequest()
                GM_xmlhttpRequest({
                    method: "get",
                    url: blogurl,
                    data: '',
                    headers: {
                        'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36'
                    },
                    onload: function (res) {
                        if (res.status === 200) {
                            //console.log('成功')
                            let st = JSON.stringify(JSON.parse(res.response).data)
                            unknown.delete(pid)
                            if (!vtuber && !zhuji && !shouyou && !duanyou && !hater) {
                                return
                            }
                            //添加米hater标签
                            if (hater && (st.includes(keyword_mh) || st.includes(keyword_mh1) || st.includes(keyword_mh2) || st.includes(keyword_mh3) || st.includes(keyword_mh4) || st.includes(keyword_mh5) || st.includes(keyword_mh6))) {
                                c.innerHTML += tag_mh_Inner
                                mh.add(pid)
                            } else {
                                no_mh.add(pid)
                            }
                            //vtuber
                            if (vtuber && (st.includes(keyword_jr) || st.includes(keyword_xw) || st.includes(keyword_bl) || st.includes(keyword_cy))) {
                                c.innerHTML += "<b style='color: #FF6347' > <✨VTB·"
                                //添加洛天依标签
                                if (st.includes(keyword_lty)) {
                                    c.innerHTML += tag_lty_Inner
                                    lty.add(pid)
                                } else {
                                    no_lty.add(pid)
                                }
                                //添加初音标签
                                if (st.includes(keyword_cy)) {
                                    c.innerHTML += tag_cy_Inner
                                    cy.add(pid)
                                } else {
                                    no_cy.add(pid)
                                }
                                //添加Asoul标签
                                if (st.includes(keyword_jr) && st.includes(keyword_xw) && st.includes(keyword_bl) && st.includes(keyword_jl) && st.includes(keyword_nl)) {
                                    if (st.includes(keyword_cy)) {
                                        c.innerHTML += "<b style='color: #FF6347' >· "
                                    }
                                    c.innerHTML += tag_Asoul_Inner
                                    Asoul.add(pid)
                                } else {
                                    if (st.includes(keyword_jr) || st.includes(keyword_xw) || st.includes(keyword_bl) || st.includes(keyword_jl) || st.includes(keyword_nl)) {
                                        c.innerHTML += "<b style='color: #FF6347' > <💟"
                                    }
                                    //添加向晚标签
                                    if (st.includes(keyword_xw)) {
                                        c.innerHTML += tag_xw_Inner
                                        xw.add(pid)
                                    } else {
                                        no_xw.add(pid)
                                    }
                                    //添加贝拉标签
                                    if (st.includes(keyword_bl)) {
                                        c.innerHTML += tag_bl_Inner
                                        bl.add(pid)
                                    } else {
                                        no_bl.add(pid)
                                    }
                                    //添加珈乐标签
                                    if (st.includes(keyword_jl)) {
                                        c.innerHTML += tag_jl_Inner
                                        jl.add(pid)
                                    } else {
                                        no_jl.add(pid)
                                    }
                                    //添加嘉然标签
                                    if (st.includes(keyword_jr)) {
                                        c.innerHTML += tag_jr_Inner
                                        jr.add(pid)
                                    } else {
                                        no_jr.add(pid)
                                    }
                                    //添加乃琳标签
                                    if (st.includes(keyword_nl)) {
                                        c.innerHTML += tag_nl_Inner
                                        nl.add(pid)
                                    } else {
                                        no_nl.add(pid)
                                    }
                                    if (st.includes(keyword_jr) || st.includes(keyword_xw) || st.includes(keyword_bl) || st.includes(keyword_jl) || st.includes(keyword_nl)) {
                                        c.innerHTML += "<b style='color: #FF6347' >>"
                                    }
                                }
                                c.innerHTML += "<b style='color: #FF6347' >></b>"
                            }



                            //添加米游标签
                            if (shouyou && (st.includes(keyword_yuan) || st.includes(keyword_yuan1) || st.includes(keyword_Zzz) || st.includes(keyword_bbb) || st.includes(keyword_bbb2) || st.includes(keyword_bbb3))) {
                                c.innerHTML += "<b style='color: #1E90FF' > <Ⓜ️米哈游·"

                                if (shouyou && ((st.includes(keyword_yuan) || st.includes(keyword_yuan1)) && st.includes(keyword_Zzz) && st.includes(keyword_td) && (st.includes(keyword_bbb) || st.includes(keyword_bbb2) || st.includes(keyword_bbb3)))) {
                                    //添加米神标签
                                    c.innerHTML += tag_mihayo_Inner
                                    mihayo.add(pid)
                                } else {
                                    //添加原神标签
                                    if (shouyou && (st.includes(keyword_yuan) || st.includes(keyword_yuan1))) {
                                        c.innerHTML += tag_yuan_Inner
                                        yuanyou.add(pid)
                                    } else {
                                        no_yuanyou.add(pid)
                                    }
                                    //添加绝区零标签
                                    if (st.includes(keyword_Zzz)) {
                                        c.innerHTML += tag_Zzz_Inner
                                        Zzz.add(pid)
                                    } else {
                                        no_Zzz.add(pid)
                                    }
                                    //添加崩坏标签
                                    if ((st.includes(keyword_bbb) || st.includes(keyword_bbb2) || st.includes(keyword_bbb3))) {
                                        c.innerHTML += tag_bbb_Inner
                                        bbb.add(pid)
                                    } else {
                                        no_bbb.add(pid)
                                    }
                                    //添加星穹铁道标签
                                    if (st.includes(keyword_td)) {
                                        c.innerHTML += tag_td_Inner
                                        td.add(pid)
                                    } else {
                                        no_td.add(pid)
                                    }
                                }
                                c.innerHTML += "<b style='color: #1E90FF' >>"
                            }

                            if (wangyou && (st.includes(keyword_xjqx) || st.includes(keyword_gjqt) || st.includes(keyword_nsh) || st.includes(keyword_zxsj) || st.includes(keyword_jw))) {
                                c.innerHTML += "<b style='color: #1E90FF' > <🖥网游·"
                                if (st.includes(keyword_xjqx) && st.includes(keyword_gjqt) && st.includes(keyword_nsh) && st.includes(keyword_zxsj) && st.includes(keyword_jw)) {
                                    //添加修仙标签
                                    c.innerHTML += tag_xianwang_Inner
                                    xianwang.add(pid)
                                } else {
                                    //添加仙剑奇侠标签
                                    if (st.includes(keyword_xjqx)) {
                                        c.innerHTML += tag_xjqx_Inner
                                        xjqx.add(pid)
                                    } else {
                                        no_xjqx.add(pid)
                                    }
                                    //添加古剑奇谭标签
                                    if (st.includes(keyword_gjqt)) {
                                        c.innerHTML += tag_gjqt_Inner
                                        gjqt.add(pid)
                                    } else {
                                        no_gjqt.add(pid)
                                    }
                                    //添加逆水寒标签
                                    if (st.includes(keyword_nsh)) {
                                        c.innerHTML += tag_nsh_Inner
                                        nsh.add(pid)
                                    } else {
                                        no_nsh.add(pid)
                                    }
                                    //添加诛仙世界标签
                                    if (st.includes(keyword_zxsj)) {
                                        c.innerHTML += tag_zxsj_Inner
                                        zxsj.add(pid)
                                    } else {
                                        no_zxsj.add(pid)
                                    }
                                    //添加剑网标签
                                    if (st.includes(keyword_jw)) {
                                        c.innerHTML += tag_jw_Inner
                                        jw.add(pid)
                                    } else {
                                        no_jw.add(pid)
                                    }
                                }
                                c.innerHTML += "<b style='color: #1E90FF' >>"
                            }
                            //添加塞尔达标签
                            if (zhuji && (st.includes(keyword_sed) || st.includes(keyword_sed1))) {
                                c.innerHTML += tag_sed_Inner
                                sed.add(pid)
                            } else {
                                no_sed.add(pid)
                            }
                            //添加英雄联盟标签
                            if (duanyou && (st.includes(keyword_lol))) {
                                c.innerHTML += tag_lol_Inner
                                lol.add(pid)
                            } else {
                                no_lol.add(pid)
                            }
                            //添加使命召唤标签
                            if (duanyou && (st.includes(keyword_cod) || st.includes(keyword_cod1))) {
                                c.innerHTML += tag_cod_Inner
                                cod.add(pid)
                            } else {
                                no_cod.add(pid)
                            }
                            //添加黑神话标签
                            if (duanyou && (st.includes(keyword_hsh))) {
                                c.innerHTML += tag_hsh_Inner
                                hsh.add(pid)
                            } else {
                                no_hsh.add(pid)
                            }
                            //添加怪物猎人标签
                            if (duanyou && (st.includes(keyword_gwlr) || st.includes(keyword_gwlr1))) {
                                c.innerHTML += tag_gwlr_Inner
                                gwlr.add(pid)
                            } else {
                                no_gwlr.add(pid)
                            }
                            //添加明日方舟标签
                            if (shouyou && (st.includes(keyword_zhou))) {
                                c.innerHTML += tag_zhou_Inner
                                zhouyou.add(pid)
                            } else {
                                no_zhouyou.add(pid)
                            }
                            //添加光遇标签
                            if (shouyou && (st.includes(keyword_gy))) {
                                c.innerHTML += tag_gy_Inner
                                gy.add(pid)
                            } else {
                                no_gy.add(pid)
                            }
                            //添加王者标签
                            if (shouyou && (st.includes(keyword_nong))) {
                                c.innerHTML += tag_nong_Inner
                                nongyou.add(pid)
                            } else {
                                no_nongyou.add(pid)
                            }
                            //添加Fate/FGO/命运-冠位指定标签
                            if (shouyou && (st.includes(keyword_fgo) || st.includes(keyword_fgo1) || st.includes(keyword_fgo2))) {
                                c.innerHTML += tag_fgo_Inner
                                fgo.add(pid)
                            } else {
                                no_fgo.add(pid)
                            }
                            //添加碧蓝航线标签
                            if (shouyou && (st.includes(keyword_blhx))) {
                                c.innerHTML += tag_blhx_Inner
                                blhx.add(pid)
                            } else {
                                no_blhx.add(pid)
                            }
                            //添加公主连结标签
                            if (shouyou && (st.includes(keyword_gzlj))) {
                                c.innerHTML += tag_gzlj_Inner
                                gzlj.add(pid)
                            } else {
                                no_gzlj.add(pid)
                            }
                            //添加幻塔标签
                            if (shouyou && (st.includes(keyword_huanta))) {
                                c.innerHTML += tag_huanta_Inner
                                huanta.add(pid)
                            } else {
                                no_huanta.add(pid)
                            }
                            //添加战双标签
                            if (shouyou && (st.includes(keyword_zhanshuang))) {
                                c.innerHTML += tag_zhanshuang_Inner
                                zhanshuang.add(pid)
                            } else {
                                no_zhanshuang.add(pid)
                            }
                            //添加鸣潮标签
                            if (shouyou && (st.includes(keyword_mingchao))) {
                                c.innerHTML += tag_mingchao_Inner
                                mingchao.add(pid)
                            } else {
                                no_mingchao.add(pid)
                            }



                            //添加路人标签
                            if (!st.includes(keyword_gzlj) && !st.includes(keyword_xjqx) && !st.includes(keyword_gjqt) && !st.includes(keyword_nsh) && !st.includes(keyword_zxsj) && !st.includes(keyword_jw) && !st.includes(keyword_hsh) && !st.includes(keyword_lol) && !st.includes(keyword_cod) && !st.includes(keyword_cod1) && !st.includes(keyword_yuan) && !st.includes(keyword_yuan1) && !st.includes(keyword_zhou) && !st.includes(keyword_nong) && !st.includes(keyword_huanta) && !st.includes(keyword_zhanshuang) && !st.includes(keyword_mingchao) && !st.includes(keyword_Zzz) && !st.includes(keyword_bbb) && !st.includes(keyword_bbb2) && !st.includes(keyword_bbb3) && !st.includes(keyword_td) && !st.includes(keyword_gy) && !st.includes(keyword_blhx) && !st.includes(keyword_fgo) && !st.includes(keyword_fgo1) && !st.includes(keyword_fgo2) && !st.includes(keyword_sed) && !st.includes(keyword_sed1) && !st.includes(keyword_gwlr) && !st.includes(keyword_gwlr1) && !st.includes(keyword_jr) && !st.includes(keyword_xw) && !st.includes(keyword_bl) && !st.includes(keyword_jl) && !st.includes(keyword_nl) && !st.includes(keyword_cy) && !st.includes(keyword_lty)) {
                                //添加小号标签
                                if (st.includes(keyword_xh)) {
                                    c.innerHTML += tag_xh_Inner
                                    xh.add(pid)
                                    return
                                } else {
                                    no_xh.add(pid)
                                }
                                c.innerHTML += tag_nor_Inner
                                nor.add(pid)
                                //添加抽奖标签
                                if (st.includes(keyword_cj)) {
                                    c.innerHTML += tag_cj_Inner
                                    cj.add(pid)
                                } else {
                                    no_cj.add(pid)
                                }
                            } else {
                                no_nor.add(pid)
                            }
                            //添加小号标签
                            if (c.innerHTML == "" || length(c.innerHTML) < 3) {
                                c.innerHTML += tag_xh_Inner
                                xh.add(pid)
                                return
                            }
                            return
                        } else {
                            console.log('失败')
                            console.log(res)
                        }
                    },
                });
            });
        }
    }, 4000)
    })();