您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Modify request body to api.paimon.moe/corsproxy on paimon.moe
// ==UserScript== // @name Paimon.moe Wish Import fix // @namespace https://jogerj.com // @version 0.2.0 // @description Modify request body to api.paimon.moe/corsproxy on paimon.moe // @author JogerJ // @match https://paimon.moe/wish/import* // @downloadUrl https://gist.github.com/jogerj/5ab40acfb77e0fd3c89de7c798a3b4b8/raw/paimon-moe-fix-wish-import.user.js // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; console.warn('JogerJ: Wish import requests will be intercepted!'); // Store the original fetch function const originalFetch = window.fetch; // Override the global fetch function window.fetch = async (...args) => { let [resource, init] = args; // Intercept corsproxy requests if (resource && typeof resource === 'string' && resource.includes('https://api.paimon.moe/corsproxy') && init && init.method === 'POST' ) { init.body = init.body.replace('hk4e-api-os\.hoyoverse\.com', 'public-operation-hk4e-sg.hoyoverse.com') } // Call the original fetch function with modified body return originalFetch(resource, init); }; })();