mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
Postimages cannot support WebView automation (site blocks automated uploads). Imgur works reliably. Keep only Catbox and Imgur as supported providers.
21 lines
752 B
HTML
21 lines
752 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head><meta charset="utf-8"><title>Success</title></head>
|
|
<body>
|
|
<!-- Real file input - DataTransfer injection sets files, change event fires -->
|
|
<input type="file" id="uploadFile" />
|
|
<!-- Success extractor: imgur looks for a[href*="i.imgur.com"]. Link shown only after input.files change. -->
|
|
<span id="result-container" style="display:none">
|
|
<a id="result" href="https://i.imgur.com/abc123.png">Link</a>
|
|
</span>
|
|
<script>
|
|
document.getElementById('uploadFile').addEventListener('change', function() {
|
|
if (this.files && this.files.length > 0) {
|
|
document.getElementById('result-container').style.display = '';
|
|
}
|
|
});
|
|
</script>
|
|
<p>Full flow: DataTransfer injection, change fires, success URL extracted.</p>
|
|
</body>
|
|
</html>
|