您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
自动领取任务。
当前为
// ==UserScript== // @name mcbbs 自动领取任务 // @version 0.9.2 // @include https://www.mcbbs.net/* // @author xmdhs // @description 自动领取任务。 // @namespace https://greasyfork.org/users/166541 // ==/UserScript== (async () => { const times = localStorage.getItem("autoapply") if (Math.round(new Date().getTime() / 1000) - times >= 60) { localStorage.setItem("autoapply", Math.round(new Date().getTime() / 1000)) } else { return } const url = document.querySelector(`#user_info_menu a[href^="member.php?mod=logging"]`).href const key = new URL(url).searchParams.get("formhash") const taskList = ["39", "22", "40", "24", "55"] sign() async function sign() { taskList.forEach(task => run(key, task, "draw")) await new Promise(rs => setTimeout(rs, 1500)) taskList.forEach(task => run(key, task, "apply")) } function run(key, task, type) { return fetch("home.php?mod=task&do=" + type + "&id=" + a + "&hash=" + key, { credentials: "same-origin" }) } } )();