Skip to content

Conversation

@adamtokyo
Copy link

@adamtokyo adamtokyo commented Nov 1, 2025

Use GM_xmlhtmlRequest() where available to avoid cross-origin fetch errors when downloading files for a zip file.

For unknown reasons, sometimes downloading images with XMLHttpRequest results in CORS errors. By using the TamperMonkey built-in function GM_xmlhttpRequest() we can avoid these errors.

The old XMLHttpRequest code path is automatically used if GM_xmlhttpRequest is unavailable for some reason.

Use GM_xmlhtmlRequest() where available to avoid cross-origin fetch
errors when downloading files for a zip file.

For unknown reasons, sometimes downloading images with XMLHttpRequest
results in CORS errors. By using the TamperMonkey built-in function
GM_xmlhttpRequest() we can avoid these errors.

The old XMLHttpRequest code path is automatically used if
GM_xmlhttpRequest is unavailable for some reason.
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant