On iOS Userscripts, the following yields {} and undefined respectively for a given URL to a binary file:
GM.xmlHttpRequest({
method: "GET",
url: href,
responseType: "arraybuffer", // or blob
onload: function(res) {
console.log(res.response);
console.log(res.response.prototype);
}
})
.. whereas the same on Tampermonkey passes back a complete ArrayBuffer as part of its response.
On iOS Userscripts, the following yields
{}andundefinedrespectively for a given URL to a binary file:.. whereas the same on Tampermonkey passes back a complete
ArrayBufferas part of its response.