添加谷歌财经代码但是并没有测试

This commit is contained in:
lingling 2024-08-22 15:52:05 +08:00
parent e5e3741289
commit bc05112d7a
2 changed files with 17 additions and 32 deletions

View File

@ -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 14:07:01 * @LastEditTime: 2024-08-22 14:29:04
* @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
*/ */
@ -69,7 +69,7 @@ $(function () {
// let a= await createTab('https://www.so.com/','360') // let a= await createTab('https://www.so.com/','360')
// return a // return a
// } // }
async function text2() { async function youtube_shorts() {
let a = await createTab( let a = await createTab(
"https://www.youtube.com/shorts/", "https://www.youtube.com/shorts/",
"youtube_shorts" "youtube_shorts"
@ -98,12 +98,12 @@ $(function () {
} }
//函数队列 //函数队列
let queue = []; let queue = [];
// queue.push(calendar); queue.push(calendar);
queue.push(mail); queue.push(mail);
// queue.push(play_finance);//好像js注入不进去 // queue.push(play_finance);//好像js注入不进去
// queue.push(play_google); queue.push(play_google);
// queue.push(news_google); queue.push(news_google);
// queue.push(text2); queue.push(youtube_shorts);
//当前执行的队列索引 //当前执行的队列索引
let closed_index = 0; let closed_index = 0;

View File

@ -20,44 +20,18 @@ function RandomIntscrollBy(y = 0) {
//naver使用函数 //naver使用函数
const naver = async (r, id) => { const naver = async (r, id) => {
// $("#kw").val("docker");
// await delay(1);
// $("#su").click();
// await delay(3);
// for (let index = 0; index < 4; index++) {
// RandomIntscrollBy()
// await delay(3);
// }
await delay(1); await delay(1);
send_close(id); send_close(id);
}; };
//naver使用函数 //naver使用函数
const sll360 = async (r, id) => { const sll360 = async (r, id) => {
// $("#kw").val("docker");
// await delay(1);
// $("#su").click();
// await delay(3);
// for (let index = 0; index < 4; index++) {
// RandomIntscrollBy()
// await delay(3);
// }
console.log("??360"); console.log("??360");
await delay(3); await delay(3);
send_close(id); send_close(id);
}; };
const baidu = async (r, id) => { const baidu = async (r, id) => {
// $("#kw").val("docker");
// await delay(1);
// $("#su").click();
// await delay(3);
// for (let index = 0; index < 4; index++) {
// RandomIntscrollBy()
// await delay(3);
// }
console.log("??baidu"); console.log("??baidu");
await delay(30); await delay(30);
send_close(id); send_close(id);
@ -255,6 +229,17 @@ async function play_google(r, id) {
} }
async function play_finance(r, id) { async function play_finance(r, id) {
let recommended_attention=$('.sbnBtf >li >a')
for (let index = 0; index < getRandomInt(0,recommended_attention.length-1); index++) {
recommended_attention[index].click();
await delay(getRandomInt(5, 10))
for (let indexx = 0; indexx < getRandomInt(0,5); indexx++) {
RandomIntscrollBy()
await delay(getRandomInt(5, 10))
}
//返回主页
$('.gb_Bc >a').click()
}
send_close(id); send_close(id);
} }