userscript...

This commit is contained in:
Gabe Yuan
2023-08-05 16:32:49 +08:00
parent 1e82c280ad
commit f5dd215ae7
4 changed files with 19 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ import {
const fetchGM = async (input, { method = "GET", headers, body } = {}) =>
new Promise((resolve, reject) => {
try {
window.GM_xmlhttpRequest({
(window.GM_xmlhttpRequest || window.GM.xmlhttpRequest)({
method,
url: input,
headers,