// ==UserScript== // @name 微软积分商城签到(改进版)授权助手 // @namespace https://geoisam.github.io // @version 1.0.0 // @description 自动获取并填写“微软积分商城签到(改进版)”脚本的授权码,需配合主脚本使用 // @author geoisam@qq.com // @match https://login.live.com/oauth20_desktop.srf* // @run-at document-start // @grant GM_setValue // @grant GM_notification // @storageName FuckScripts_Shared_Auth // ==/UserScript== (function() { 'use strict'; GM_setValue("Config.helperActive", Date.now()); const urlParams = new URLSearchParams(window.location.search); const authCode = urlParams.get("code"); if (authCode) { const fullCode = `https://login.live.com/oauth20_desktop.srf?code=${authCode.trim()}`; GM_setValue("Config.code", fullCode); GM_setValue("Config.token", false); window.open('', '_self', ''); window.close(); } })();