>>107093901
Nope, it's another site just using catbox
sync function uploadFile(file, key) {
const data = new Uint8Array(await file.arrayBuffer())
const encryptedFile = await encrypt(data, key)
const form = new FormData()
form.set("reqtype", "fileupload")
form.set("fileToUpload", encryptedFile, file.name)
return GM_fetch("
https://catbox.moe/user/api.php", { method: "POST", body: form }).then(res => res.text())
}
async function downloadFile(file, key, progressCallback) {
const link = `
https://files.catbox.moe/${file}`;
console.log(`SecretAttachment: Fetching ${link}`);
// Catbox blocks vpn from downloading, replace with catbox if not working
const response = await GM_fetch(link, {
onProgress: (percent) => {
if (progressCallback) {
progressCallback(percent);
}
}