diff --git a/firefox/.web-extension-id b/firefox/.web-extension-id index ce7a6b7..6e610c2 100644 --- a/firefox/.web-extension-id +++ b/firefox/.web-extension-id @@ -1,3 +1,3 @@ # This file was created by https://github.com/mozilla/web-ext # Your auto-generated extension ID for addons.mozilla.org is: -{34ac4994-07f2-44d2-8599-682516a6c6a6} \ No newline at end of file +{acaec1b2-c3cc-4127-a884-37022cf5d0ef} \ No newline at end of file diff --git a/src/utils.ts b/src/utils.ts index 4f0ee50..1532c41 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -294,9 +294,9 @@ export const decodeCoom3Payload = async (buff: Buffer) => { const { domain, file } = m.groups!; const headers = await getHeaders(pee); const res = await ifetch(pee, { - headers: { range: 'bytes=0-32767', 'user-agent': '' }, + headers: { range: 'bytes=0-32767' }, mode: 'cors', - referrerPolicy: 'no-referrer', + //referrerPolicy: 'no-referrer', // apparently this makes fireshit shit itself }); const size = +headers['content-length'] || 0; const header = Buffer.from(await res.arrayBuffer());