// ==UserScript== // @name Get Microsoft Rewards (安卓移动端优化版) // @namespace https://github.com/Muverix/Get-Microsoft-Rewards // @version 1.7.3 // @description 微软 Rewards 自动助手:本地自动搜索、每日活动与自动签到。移动端适配、授权码自动获取、真实页面搜索、逐字输入与模糊搜索(错字/数字尾缀/拼音/模糊音),个人词库(导入浏览器历史 CSV,只提取搜索词、本机解析不联网,按个人/混搭/热搜配比选词,无历史可用话题包),可调额度比例、搜索与阅读间隔、分批搜索与机型 UA,面板显示今日积分。1.7.3 起界面改为 Apple 风格(液态玻璃悬浮球、iOS 式开关与分组设置,支持深色模式);1.7.2 起支持 iPhone / iPad(用户脚本 App),脚本存储缺失时自动改用本机存储。本脚本代码由 AI 生成。 // @author Muverix // @license MIT // @icon https://rewards.bing.com/rewardscdn/images/rewards.png // @homepage https://scriptcat.org/zh-CN/script-show-page/7354 // @supportURL https://github.com/Muverix/Get-Microsoft-Rewards/issues // 注:脚本猫发布时会剥离下面两行;自建/第三方托管时才生效。 // @match https://www.bing.com/* // @match https://cn.bing.com/* // @match https://rewards.bing.com/* // @match https://login.live.com/* // @grant GM_xmlhttpRequest // @grant GM_addStyle // @grant GM_setValue // @grant GM_getValue // @grant GM_notification // @grant GM_cookie // @grant GM_registerMenuCommand // @grant GM_openInTab // @grant GM_log // @connect bing.com // @connect rewards.bing.com // @connect www.bing.com // @connect cn.bing.com // @connect login.live.com // @connect prod.rewardsplatform.microsoft.com // @connect hot.baiwumm.com // @connect hotapi.nntool.cc // @connect cnxiaobai.com // @run-at document-end // ==/UserScript== /* ========================================================================= * 📜 版权声明与免责条款 (License & Disclaimer) * ------------------------------------------------------------------------- * 0. 本脚本基于原作者 QingJ 的《Get Microsoft Rewards》v1.0.6 版本改编。 * 原作者主页:https://github.com/QingJ01 * 原项目仓库:https://github.com/QingJ01/Get-Microsoft-Rewards * 1. 本脚本基于 QingJ 的开源项目《Get Microsoft Rewards》二次开发; * 并接续 Muverix 的《Get Microsoft Rewards (修复/增强版)》继续开发, * 感谢其在 Bing 界面报错修复、会员等级识别、多区域兼容与积分卡片过滤上的工作。 * Muverix 脚本页面:https://scriptcat.org/zh-CN/script-show-page/7354 * Muverix 作者主页:https://scriptcat.org/zh-CN/users/211142 * 2. 借助 Gemini AI,参考并融合了 liyan20001124-byte 的《微软积分商城签到(全能智能重构版)》的核心逻辑与优化思路。 * 3. 本脚本 1.5.0 之后的改动(真实页面搜索、机型 UA、逐字输入、模糊搜索等)均由 AI 编写, * 代码由 AI 生成、经维护者人工验收后发布;如有问题欢迎在 Issues 反馈。 * 4. 本脚本遵循 MIT 开源许可协议,仅供个人学习研究与自动化测试使用。 * 5. 作者不对使用本脚本可能产生的任何风险(如账号积分变动或风控等)承担任何法律责任,请合理使用。 * ========================================================================= */ (function () { 'use strict'; /* ========================================================================= * 🆕 1.7.2 Apple 双端兼容层(iPhone / iPad 的用户脚本 App) * ------------------------------------------------------------------------- * iOS 上的「用户脚本 / Userscripts」App 只提供 Promise 版 GM.addStyle / * GM.getValue / GM.setValue,没有旧式同步的 GM_addStyle / GM_getValue / * GM_setValue。旧代码在顶层直接调用会抛 ReferenceError,整个脚本当场中断, * 连悬浮球都不会出现。 * * 这里加一层垫片,保证「有就用、没有就退」: * 样式 → 没有 GM_addStyle 就自己插一个