问题描述
脚本猫的 GMxhr 原本前台脚本支持 responseType: "document",但后台脚本不支持
结果现在前台脚本也开始报错了
不知道是否可以fallback一下或者干脆直接用DOMParser的方式实现,让前台、后台脚本都能支持responseType: "document"
重现步骤
脚本猫版本
v1.0.2
操作系统以及浏览器信息
Edge v139
补充信息 (选填)
GM_xmlhttpRequest({
url:'.',
method:'GET',
responseType: "document",
onload:(xhr)=>console.log(xhr),
})