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
i test get loadAsBlob imagetwist.com image
sometimes imagetwist.com return some links blob some links wait response without time limit
I try
try { const extractor = urlExtractor.getExtractorByHost(imageHost) //console.log(extractor,imageURL, extractor.viewMode) if (extractor.viewMode === 'origin-download') { imageURL = await image.CheckOnline(imageURL) //imageURL = await image.loadAsBlob(imageURL) } } catch { console.log(imageURL) image.markAsBroken(link) link.setAttribute('target', '_blank') }
CheckOnline(url) { return new Promise((resolve, reject) => { let timer = setTimeout(() => resolve(url), 5000); GM_xmlhttpRequest({ method: "GET", url: url, headers: { referer: url, origin: url }, responseType: 'blob', onload: function(resp) { resolve(window.URL.createObjectURL(resp.response)) }, onerror: function(error) { reject(error); } }) }) },
after 2hour
i test
imagetwist.com return all links blob
request loadAsBlob add time limit
The text was updated successfully, but these errors were encountered:
No branches or pull requests
i test get loadAsBlob imagetwist.com image
sometimes imagetwist.com return some links blob
some links wait response without time limit
I try
after 2hour
i test
imagetwist.com return all links blob
request loadAsBlob add time limit
The text was updated successfully, but these errors were encountered: