We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// ==UserScript== // @name GM.xmlHttpRequest // @version 1.0 // @description GM.xmlHttpRequest // @match <all_urls> // @include * // @connect * // @grant GM_xmlhttpRequest // @grant GM.xmlHttpRequest // ==/UserScript== var GM_xmlhttpRequest = GM_xmlhttpRequest || GM.xmlHttpRequest; GM_xmlhttpRequest({ method: 'GET', url: 'http://localhost/100MB.bin', responseType: 'arraybuffer', onprogress: res => console.log(res), onload: res => console.log('loaded', res.response.byteLength, res.responseHeaders), onerror: () => console.log('error') }); console.log('request started');
The log when using GreaseMonkey (onprogress event is not working):
The log when using Tampermonkey (expected, despite the annoying ArrayBuffer converter):
The text was updated successfully, but these errors were encountered:
Merge pull request #2713 from ccloli/gm-xhr-onprogress
4895b18
Fix GM.xhr onprogress event is not working Fixes #2712
This is in build 4.1beta5 ( https://addons.mozilla.org/firefox/downloads/file/793791/greasemonkey-4.1beta5-an+fx.xpi?src=devhub ). Testing and confirming would be appreciated!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The log when using GreaseMonkey (onprogress event is not working):
The log when using Tampermonkey (expected, despite the annoying ArrayBuffer converter):
The text was updated successfully, but these errors were encountered: