test

1001 回覆
7 Like 7 Dislike
2020-12-18 06:05:04
            if(firstPostNum.textContent == "#1"){
                var tempArray = firstPostNum.parentElement.parentElement.children[1].textContent.match(/同事/g);
                var colleagueCount;
2020-12-18 06:06:26
if(tempArray!=null){
                    colleagueCount = tempArray.length;
                }else{
                    colleagueCount = 0;
                }
2020-12-18 06:06:40
tempArray = firstPostNum.parentElement.parentElement.children[1].textContent.match(/女前輩/g);
                var girlSenpaiCount;
                if(tempArray!=null){
                    girlSenpaiCount = tempArray.length;
                }else{
                    girlSenpaiCount = 0;
                }
2020-12-18 06:07:03
       tempArray = firstPostNum.parentElement.parentElement.children[1].textContent.match(/仙貝/g);
                var senbiCount;
                if(tempArray!=null){
                    senbiCount = tempArray.length;
                }else{
                    senbiCount = 0;
                }
2020-12-18 06:07:42
var pngCount = 0;
                firstPostNum.parentElement.parentElement.children[1].getElementsByTagName("a").forEach(e=>{if(e.href.endsWith(".png"))++pngCount;});
                var jpgCount = 0;
                firstPostNum.parentElement.parentElement.children[1].getElementsByTagName("a").forEach(e=>{if(e.href.endsWith(".jpg"))++jpgCount;});
                var gifCount = 0;
                firstPostNum.parentElement.parentElement.children[1].getElementsByTagName("a").forEach(e=>{if(e.href.endsWith(".gif"))++gifCount;});
2020-12-18 06:08:09
                var pngCount = 0;
                firstPostNum.parentElement.parentElement.children[1].getElementsByTagName("a").forEach(e=>{if(e.href.endsWith(".png"))++pngCount;});
                var jpgCount = 0;
                firstPostNum.parentElement.parentElement.children[1].getElementsByTagName("a").forEach(e=>{if(e.href.endsWith(".jpg"))++jpgCount;});
                var gifCount = 0;
                firstPostNum.parentElement.parentElement.children[1].getElementsByTagName("a").forEach(e=>{if(e.href.endsWith(".gif"))++gifCount;});
2020-12-18 06:08:26
if(confirm("同事 :"+colleagueCount+"\n女前輩 :"+girlSenpaiCount+"\n仙貝 :"+senbiCount+"\n\npng: "+pngCount+"\njpg: "+jpgCount+"\ngif: "+gifCount+"\n\nDownvote?")){
                    document.getElementsByClassName("_8_NT40G-QNQzcSSTrRXAD")[1].click();
                }
            }

            }else{
                if(confirm("This is not 木耳's Post\n\nBring you to 木耳's Profile?")){
                    location.href = "https://lihkg.com/profile/2023";
                }
2020-12-20 01:23:15
2020-12-22 17:37:18

2020-12-22 18:48:14
2020-12-22 23:22:56
2020-12-23 01:14:56
2020-12-23 03:46:16
2020-12-23 03:46:47
2020-12-23 08:50:34
2020-12-23 10:59:58
2020-12-23 12:38:10
吹水台自選台熱 門最 新手機台時事台政事台World體育台娛樂台動漫台Apps台遊戲台影視台講故台健康台感情台家庭台潮流台美容台上班台財經台房屋台飲食台旅遊台學術台校園台汽車台音樂台創意台硬件台電器台攝影台玩具台寵物台軟件台活動台電訊台直播台站務台黑 洞