重命名打包文件根据时间生成 删除不需要的代码
This commit is contained in:
parent
7d99c8f6c9
commit
006d6bb027
|
@ -1 +1 @@
|
||||||
/dist/dist.zip
|
/dist/*
|
|
@ -6,7 +6,7 @@
|
||||||
{
|
{
|
||||||
"label": "build",
|
"label": "build",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "del ./dist/*;7z a -tzip ./dist/dist.zip ./* '-xr!dist/' '-xr!.vscode/' '-xr!.git/'"
|
"command": "$currentDate = Get-Date -Format 'yyyyMMdd_HHmm';del ./dist/*;7z a -tzip ./dist/dist_$currentDate.zip ./* '-xr!dist/' '-xr!.vscode/' '-xr!.git/';cmd /c 'git log --oneline > ./README.txt'"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
7d99c8f 增加谷歌购物浏览页面
|
||||||
|
295ae02 增加打包日志
|
||||||
9598f66 提交快速打包脚本
|
9598f66 提交快速打包脚本
|
||||||
bc05112 添加谷歌财经代码但是并没有测试
|
bc05112 添加谷歌财经代码但是并没有测试
|
||||||
e5e3741 完成谷歌邮箱自动回复邮件功能
|
e5e3741 完成谷歌邮箱自动回复邮件功能
|
||||||
|
|
28
js/popup.js
28
js/popup.js
|
@ -2,7 +2,7 @@
|
||||||
* @Author: lingling 1077478963@qq.com
|
* @Author: lingling 1077478963@qq.com
|
||||||
* @Date: 2024-08-19 09:47:04
|
* @Date: 2024-08-19 09:47:04
|
||||||
* @LastEditors: lingling 1077478963@qq.com
|
* @LastEditors: lingling 1077478963@qq.com
|
||||||
* @LastEditTime: 2024-08-22 16:22:15
|
* @LastEditTime: 2024-08-23 08:17:05
|
||||||
* @FilePath: \谷歌自动搜索邮箱自动点击v3\js\popup.js
|
* @FilePath: \谷歌自动搜索邮箱自动点击v3\js\popup.js
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
*/
|
*/
|
||||||
|
@ -61,14 +61,10 @@ $(function () {
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
async function text() {
|
// async function text() {
|
||||||
let a = await createTab("https://www.youtube.com/", "youtube");
|
// let a = await createTab("https://www.youtube.com/", "youtube");
|
||||||
return a;
|
// return a;
|
||||||
}
|
// }
|
||||||
// async function text2() {
|
|
||||||
// let a= await createTab('https://www.so.com/','360')
|
|
||||||
// return a
|
|
||||||
// }
|
|
||||||
async function youtube_shorts() {
|
async function youtube_shorts() {
|
||||||
let a = await createTab(
|
let a = await createTab(
|
||||||
"https://www.youtube.com/shorts/",
|
"https://www.youtube.com/shorts/",
|
||||||
|
@ -102,13 +98,13 @@ $(function () {
|
||||||
}
|
}
|
||||||
//函数队列
|
//函数队列
|
||||||
let queue = [];
|
let queue = [];
|
||||||
queue.push(shopping);
|
queue.push(play_finance);//好像js注入不进去
|
||||||
queue.push(calendar);
|
// queue.push(shopping);
|
||||||
queue.push(mail);
|
// queue.push(calendar);
|
||||||
// queue.push(play_finance);//好像js注入不进去
|
// queue.push(mail);
|
||||||
queue.push(play_google);
|
// queue.push(play_google);
|
||||||
queue.push(news_google);
|
// queue.push(news_google);
|
||||||
queue.push(youtube_shorts);
|
// queue.push(youtube_shorts);
|
||||||
//当前执行的队列索引
|
//当前执行的队列索引
|
||||||
let closed_index = 0;
|
let closed_index = 0;
|
||||||
|
|
||||||
|
|
|
@ -20,22 +20,11 @@ function RandomIntscrollBy(y = 0) {
|
||||||
|
|
||||||
//naver使用函数
|
//naver使用函数
|
||||||
const naver = async (r, id) => {
|
const naver = async (r, id) => {
|
||||||
await delay(1);
|
// await delay(1);
|
||||||
send_close(id);
|
send_close(id);
|
||||||
};
|
};
|
||||||
|
|
||||||
//naver使用函数
|
|
||||||
const sll360 = async (r, id) => {
|
|
||||||
console.log("??360");
|
|
||||||
await delay(3);
|
|
||||||
send_close(id);
|
|
||||||
};
|
|
||||||
|
|
||||||
const baidu = async (r, id) => {
|
|
||||||
console.log("??baidu");
|
|
||||||
await delay(30);
|
|
||||||
send_close(id);
|
|
||||||
};
|
|
||||||
//youto短视频
|
//youto短视频
|
||||||
async function youtube_shorts(r, id) {
|
async function youtube_shorts(r, id) {
|
||||||
i = 0;
|
i = 0;
|
||||||
|
@ -238,10 +227,12 @@ async function play_google(r, id) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function play_finance(r, id) {
|
async function play_finance(r, id) {
|
||||||
|
await delay(5);
|
||||||
let recommended_attention = $(".sbnBtf >li >a");
|
let recommended_attention = $(".sbnBtf >li >a");
|
||||||
|
|
||||||
for (
|
for (
|
||||||
let index = 0;
|
let index = 0;
|
||||||
index < getRandomInt(0, recommended_attention.length - 1);
|
index < getRandomInt(0, recommended_attention.length);
|
||||||
index++
|
index++
|
||||||
) {
|
) {
|
||||||
recommended_attention[index].click();
|
recommended_attention[index].click();
|
||||||
|
@ -253,7 +244,7 @@ async function play_finance(r, id) {
|
||||||
//返回主页
|
//返回主页
|
||||||
$(".gb_Bc >a").click();
|
$(".gb_Bc >a").click();
|
||||||
}
|
}
|
||||||
send_close(id);
|
// send_close(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function mail(r, id) {
|
async function mail(r, id) {
|
||||||
|
@ -441,12 +432,6 @@ chrome.runtime.sendMessage(
|
||||||
case "naver":
|
case "naver":
|
||||||
naver(r, id);
|
naver(r, id);
|
||||||
break;
|
break;
|
||||||
case "360":
|
|
||||||
sll360(r, id);
|
|
||||||
break;
|
|
||||||
case "baidu":
|
|
||||||
baidu(r, id);
|
|
||||||
break;
|
|
||||||
case "youtube":
|
case "youtube":
|
||||||
youtube(r, id);
|
youtube(r, id);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
<!--
|
||||||
|
* @Author: lingling 1077478963@qq.com
|
||||||
|
* @Date: 2024-08-19 09:47:04
|
||||||
|
* @LastEditors: lingling 1077478963@qq.com
|
||||||
|
* @LastEditTime: 2024-08-22 19:03:16
|
||||||
|
* @FilePath: \谷歌自动搜索邮箱自动点击v3\popup.html
|
||||||
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
|
-->
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue