您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
巴哈姆特公會批量簽到工具
// ==UserScript== // @name 巴哈姆特公會批量簽到 // @namespace https://blog.maple3142.net/ // @version 0.3.0 // @description 巴哈姆特公會批量簽到工具 // @author maple3142 // @include /https:\/\/home\.gamer\.com\.tw\/joinGuild\.php\?owner=[A-Za-z0-9]+/ // @require https://unpkg.com/[email protected]/xfetch.min.js // @require https://unpkg.com/[email protected]/gmxhr-fetch.min.js // @grant GM_getValue // @grant GM_setValue // @grant GM_xmlhttpRequest // @connect api.gamer.com.tw // @connect guild.gamer.com.tw // ==/UserScript== /* * 使用教學 * 安裝此腳本,然後到你的小屋點擊"公會社團",然後會詢問是否要批量簽到時按確定就好了 */ ;(function() { 'use strict' const gxf = xf.extend({ fetch: gmfetch }) const signin = sn => gxf .post('https://guild.gamer.com.tw/ajax/guildSign.php', { form: { sn } }) .json() .catch(() => ({})) const id = new URLSearchParams(location.search).get('owner') if (id !== BAHAID) return if (!confirm('要批量簽到嗎?')) return gxf.get('https://api.gamer.com.tw/mobile_app/bahabook/v1/guild_list.php') .json(ar => Promise.all(ar.map(x => signin(x.sn)))) .then(results => { const okcnt = results.filter(r => r.ok).length console.log(results) alert(`簽到了${okcnt}個公會`) }) })()
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址