- 今年三月找工作的时候苦于boss经常不回复消息,所以写了个小脚本在网页上帮我批量再次对已经打过招呼但还没有进行回复的boss再次打个招呼。
- 不是前端的同学可能看不太懂,需要在网页控制台进行执行。就行console.log(1)一样,都一回事。
- 一个简单的小玩意,应该是合法的吧。。。。。如果有任何问题请联系我进行删除。
- 虽然3、4月在积极找工作,但是现在前端的行情。。。哎
- 做技术都好难好卷,那个问我webpack原理的那个面试官,再来一次我要我问他他是由什么分子构成的,他更喜欢他爹还是他妈。
- 打算找找别的路子了 考虑获得客户资源,然后进行创业了。。。
// 注意 peopleList是一个动态的列表,每次里面包含40位。你需要下滑人物列表来使其更新。
(()=>{
let peopleList = document.querySelector(".user-list-content").firstChild.nextSibling.childNodes;
// 向特定时间聊过的人打招呼
// 不设置过滤 则向所有人
peopleList = Array.from(peopleList).filter(i=>{
let time = i.firstChild.firstChild.nextSibling.firstChild.firstChild.innerHTML;
if(time == '昨天'||time == '03月09日') return true;
return false;
})
peopleList[0].click();
setTimeout(()=>{
// 这个hello是个共享的 不用每次都获取
let helloBtn = document.querySelector(".chat-controls").firstChild.nextSibling;
let i = 0;
let s = setInterval(()=>{
if(i<peopleList.length) {
peopleList[i++].firstChild.click();
helloBtn.click();
// console.log(i,peopleList[i]);
document.querySelector(".sentence-panel").firstChild.nextSibling.firstChild.click();
} else {
console.log('down')
clearInterval(s);
}
},( Math.random() * 1000 + 1000 ))
},100)
})()
还有一个vip的提醒
// VIP设置优先提醒
(()=>{
let peopleList = document.querySelector(".user-list-content").firstChild.nextSibling.childNodes;
peopleList[0].click();
setTimeout(()=>{
let i = 0;
let s = setInterval(()=>{
if(i<peopleList.length) {
peopleList[i++].firstChild.click();
// 需要每次获取
let chatRecordDIV = document.querySelector(".chat-record");
let items = chatRecordDIV.querySelectorAll(".item-center");
for(let j=0;j<items.length;j++){
let t = items[j].querySelector(".message-card-buttons").firstChild;
if(t.innerHTML=="设置优先提醒Boss"){
t.click();
break;
}
}
} else {
console.log('down')
clearInterval(s);
}
},( Math.random() * 1000 + 1000 ))
},100)
})()