GM xmlhttpRequestの結果をarrayBufferで受け取
るには、responseType: 'arraybuffer'をGM_xmlhttpRequestに指定する
ArrayBufferはonloadの引数のresponse propertyに入っている
code:js
GM_xmlhttpRequest({
method: "GET",
url,
onload: ({response}) => {
const arrayBuffer = response;
},
withCredentials: true,
responseType: 'arraybuffer',
});
#2021-02-25 22:43:41