完成谷歌邮箱自动回复邮件功能

This commit is contained in:
lingling 2024-08-22 14:27:34 +08:00
parent 970c8ba445
commit e5e3741289
2 changed files with 21 additions and 4 deletions

View File

@ -2,7 +2,7 @@
* @Author: lingling 1077478963@qq.com
* @Date: 2024-08-19 09:47:04
* @LastEditors: lingling 1077478963@qq.com
* @LastEditTime: 2024-08-22 14:03:43
* @LastEditTime: 2024-08-22 14:07:01
* @FilePath: \谷歌自动搜索邮箱自动点击v3\js\popup.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
@ -98,8 +98,8 @@ $(function () {
}
//函数队列
let queue = [];
queue.push(calendar);
// queue.push(mail);
// queue.push(calendar);
queue.push(mail);
// queue.push(play_finance);//好像js注入不进去
// queue.push(play_google);
// queue.push(news_google);

View File

@ -266,6 +266,21 @@ async function mail(r, id) {
"연휴에 잘 지내세요.",
"감사합니다",
"이번주의 판매 보고을 보내드립니다. 세해 세일때문에 판매 목표를 잘 달성했슴니다. 첨부 파일을 참고하세요. ",
"좋습니다 좋아요",
"안녕하세요",
"좋습니다",
"좋아요",
"화이팅",
"모르겠습니다",
"모르지만 해도 좋아요",
"저는 동현 입니다",
"해도 좋습니까?",
"괜찮아요?",
"몇살이에요?",
"감사합니다",
"미안합니다",
"저 갑니다",
"사랑해요"
];
await delay(8);
let mails = document.querySelectorAll(".zA");
@ -280,7 +295,9 @@ async function mail(r, id) {
await delay(getRandomInt(1, 5));
let text = emailReply[getRandomInt(0, emailReply.length - 1)];
console.log("注入内容为" + text);
$(".Ar.Au >div >div").textContent = text;
// $(".Ar.Au >div >div").html = text;
let tmp_ele=$(".Ar.Au >div")
$(".Ar.Au >div >div").html(tmp_ele.html(text))
await delay(3);
$(".dC >div").click();
await delay(getRandomInt(1, 5));