Ctrl+X键筛选知乎高产且有影响力用户

在知乎打开某个用户主页→关注后,按下Ctrl+X键(或⌘+X键)根据TA的关注列表,筛选出高产且有影响力👍的其他用户,作为参考以丰富自己的关注列表。关注者和回答数量的阈值可调。

// ==UserScript==
// @name         Ctrl+X键筛选知乎高产且有影响力用户
// @namespace    https://mr-metasequoia.github.io/zhihunb
// @version      0.3.1
// @description  在知乎打开某个用户主页→关注后,按下Ctrl+X键(或⌘+X键)根据TA的关注列表,筛选出高产且有影响力👍的其他用户,作为参考以丰富自己的关注列表。关注者和回答数量的阈值可调。
// @author       水杉metasequoia
// @match        https://www.zhihu.com/people/*
// @icon         data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAABmJLR0QA/wD/AP+gvaeTAAAa40lEQVR4nO1deXQUVb7+bm9JIBuQkHT2jV1AERRRFkVAkX13IGyBgM/l4WNGfahvlHFcRh0ZGQVE1hAW2QkIBAQhgMgizghCyN5rFhKypzud7vv+qO7q6qpO0tXpJMw5+c7pc+r++tat6vrVvff7Lfc20IEOdKADHehABzrQAc+DtLSBvLy8QG+5fBKl9EkAgwAEAwgAYAZQBqAMhPwCSi8QmeyUUqksaek12xo6lWowAUYBGEEJiSVAVwp0AtAAoJBS+jsIySBSaVpYWFhBS67ltkKKCgriGqTSdwmlLwLwcvE0IwFSYbF8royO/t3da7cFKKUSvVY7FxbLChAyyMXTLISQoxZC3gsPD7/hznVFK4RSKtFpNH8iwPtwXRF81FPg3bCIiM8IIRY322g16PPyYqhMtg3ACDebMFPgi7CIiP8lhDSIOVGUQvLy8ry9ZLIdAKaLur1GUG8ynTCZzVN69Ohh9ER7noBOpRoOQtLADLstgslkyvDx9R3fvXv3alfPkbhakVJKvGSyTfCQMgBAIZc/12A0njh79qzMU222BDqVagQIOQ4PKAMA5HL58LKSkjPff/+9yyOJyw9Cr1a/DUL+4Oy78vJyHD9xAifS06EqKEDJvXswm83o0qULeiQkYOjQoZg5fTqCgoIE5wYE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AQAJHL5JvBcFF5eXnjtVfuywb/fVePqfdeTPU4UluI7jd2J+NYbbwg3GjMaK1b/5S+2OawCHkycdgcPjEJCQ0NrqBN3SuLcuQ6u+XlXfscPxc0vxTimv4eXbmSyzOq5cePwwvjxgnoZ58+ncRKnPbaswF20y/8GNoaynJwAg0KRB96/+qg1GkycNAnFJXamNCq4C6aFB6N/gC+bDlRsrMdvFTU4oC3GuRL7NBAXF4e0Q4cEO04b6urKHn/yyf8pKSmpBxPvPwIP5+qKxQOlEADQq1Qrnf1N353MTCQuWACtVtw8Eh8fj507diDSyR+s7EhNXfvGW2/ZhqsbaOf5A3iAhiwbQiMjv6CUXuDLe/fqheNHj2L2rFmCfUacQSqVYt7cuTh6+LBTZRQUFFznKKMO7WQI8vHA9RAAKMzPj60Hrsqk0m7OvtdqtTh0+DCuXruGrOxsVFZWghCCgIAAJMTHY8jgwZg6ZYrDXzNxUVVVVTht5sz/42zDdwlAi/6Y3lN4IBUCAKqcnMFEKj0nlUo7NV/bdRiMxoqXX375Pc6ubxoAwj1p2wkP3JBlQ1R8/LWszMxnauvqPBbLra6uLnptxYrVHGVUAbjiqfY9gWb/C7c9sW3HDm2oUnnE19d3YNeuXaPgZo+mlNLbt2//OHf+/H/89NNPtjCkAcAZtJPPqjE8sEMWD4ErVqxInjlt2ozomJhBEkJcepEopQ25eXnXU1JSjnEySAAmUvkjmB7yQOE/RSEAsynZI4MGDRqwIDFxYM9eveLDQkNjvLy8/BQKRWcQQuuNxhpDXV21vqgo//bt29k7du789y+//MI17SmYhLdf0QZJb+7gP0khNgQB6A0gHK7PgRYwk/cdtGEGiTv4T1SIDd4AlAC6gbHsFdYPwLz9RjDbXZSC8U95fD1gBzrQgQ50oAMd6ECj+H84C1cBip9Q7wAAAABJRU5ErkJggg==
// @grant        none
// @license      MPL
// ==/UserScript==

//关注者和回答数量设置
var gzzlimit = 30000
var hdlimit = 200
var undo = true

function find()
{
    if(undo){
        var out = 0
        var other = 0
        if(document.getElementsByClassName(" css-0")[0].innerText.match(/回答了问题|发布了想法|发表了文章/g)!=null)
        {
            out = document.getElementsByClassName(" css-0")[0].innerText.match(/回答了问题|发布了想法|发表了文章/g).length
        }
        if(document.getElementsByClassName(" css-0")[0].innerText.match(/收藏了回答|赞同了回答/g)!=null)
        {
            other = document.getElementsByClassName(" css-0")[0].innerText.match(/收藏了回答|赞同了回答/g).length
        }
        console.log(out,other)

        if(out>=other)
        {
            document.getElementsByClassName("ProfileHeader-name")[0].innerHTML = "【内容输出型】" + document.getElementsByClassName("ProfileHeader-name")[0].innerHTML
        }else
        {
            document.getElementsByClassName("ProfileHeader-name")[0].innerHTML = "【常规型】" + document.getElementsByClassName("ProfileHeader-name")[0].innerHTML
        }
        undo = false
    }

    var people = document.getElementsByClassName("ContentItem-head")
    for(let i=0;i<people.length;i++)
    {
        var gzz = people[i].innerHTML.match(/[0-9|,]+\x20关注者/g)
        gzz[0] = gzz[0].replace(/,/g,'').replace(/关注者/g,'')
        var intgzz = parseInt(gzz[0])

        var hd = people[i].innerHTML.match(/[0-9|,]+\x20回答/g)
        if(hd==null)
        {
            hd = '0'
        }
        hd[0] = hd[0].replace(/,/g,'').replace(/回答/g,'')
        var inthd = parseInt(hd[0])

        if(intgzz>gzzlimit && inthd>hdlimit)
        {
            document.getElementsByClassName("ContentItem-head")[i].innerHTML = people[i].innerHTML.replace(/(<span class="UserLink">)/g,'<span style="color:red">高产且有影响力用户&nbsp;</span>$1')
        }
    }
}

(function() {
    document.addEventListener('keydown',e=>{
    const { ctrlKey , metaKey, key } = e;
    if( ctrlKey || metaKey )//按下Ctrl键+X,或mac系统的⌘键+X
        {
            if(key === 'x')//x的意思是抽象手势“哒咩!”,好按并避免和知乎的快捷键冲突。杂鱼答主退散!
            {
                find()
            }
        }
    })
})();