diff --git a/PEE-chrome.crx b/PEE-chrome.crx index 81bfe32..c130109 100644 Binary files a/PEE-chrome.crx and b/PEE-chrome.crx differ diff --git a/README.md b/README.md index 3e3949e..cd3933e 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ -PNG Extra Embedder (PEE) +PNGExtraEmbedder (PEE) ======================== -*Subsequently 'lolipiss' (**LOL** **I** **p**Want **i**To **s**Kill **s**Jannies)* - Can embed any file in a PNG/WebM/GIF and upload it to a third-party host through 4chan. Requires a userscript manager, such as ViolentMonkey. It should work with 4chan's native extension but 4ChanX is highly recommended as it is much more tested. diff --git a/build-chrome.js b/build-chrome.js index e7690bf..59077b1 100644 --- a/build-chrome.js +++ b/build-chrome.js @@ -58,7 +58,7 @@ const domains = [ const manif = { "manifest_version": 2, - "update_url": "https://git.coom.tech/fuckjannies/lolipiss/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/chrome_update.xml", + "update_url": "https://github.com/coomdev/pngextraembedder/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/chrome_update.xml", "name": "PngExtraEmbedder", "description": "Discover embedded files on 4chan and archives!", "version": "0." + rev, diff --git a/build-ff.js b/build-ff.js index 56deef2..15b353d 100644 --- a/build-ff.js +++ b/build-ff.js @@ -54,7 +54,7 @@ const manif = { "manifest_version": 2, "browser_specific_settings": { "gecko": { - "update_url": "https://git.coom.tech/fuckjannies/lolipiss/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/firefox_update.json", + "update_url": "https://github.com/coomdev/pngextraembedder/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/firefox_update.json", } }, "name": "PngExtraEmbedder", diff --git a/chrome/manifest.json b/chrome/manifest.json index 829f527..88babcd 100644 --- a/chrome/manifest.json +++ b/chrome/manifest.json @@ -3,7 +3,7 @@ "update_url": "https://git.coom.tech/fuckjannies/lolipiss/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/chrome_update.xml", "name": "PngExtraEmbedder", "description": "Discover embedded files on 4chan and archives!", - "version": "0.213", + "version": "0.218", "icons": { "64": "1449696017588.png" }, diff --git a/chrome_update.xml b/chrome_update.xml index 7e50170..e5b264b 100644 --- a/chrome_update.xml +++ b/chrome_update.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/firefox/manifest.json b/firefox/manifest.json index df94fc6..009e029 100644 --- a/firefox/manifest.json +++ b/firefox/manifest.json @@ -2,12 +2,12 @@ "manifest_version": 2, "browser_specific_settings": { "gecko": { - "update_url": "https://git.coom.tech/fuckjannies/lolipiss/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/firefox_update.json" + "update_url": "https://github.com/coomdev/pngextraembedder/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/firefox_update.json" } }, "name": "PngExtraEmbedder", "description": "Discover embedded files on 4chan and archives!", - "version": "0.213", + "version": "0.218", "icons": { "64": "1449696017588.png" }, diff --git a/firefox_update.json b/firefox_update.json index d2d4c1c..8863e2b 100644 --- a/firefox_update.json +++ b/firefox_update.json @@ -1 +1 @@ -{"addons":{"{34ac4994-07f2-44d2-8599-682516a6c6a6}":{"updates":[{"version":"0.213","update_link":"https://git.coom.tech/fuckjannies/lolipiss/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/pee-firefox.zip"}]}}} \ No newline at end of file +{"addons":{"{34ac4994-07f2-44d2-8599-682516a6c6a6}":{"updates":[{"version":"0.218","update_link":"https://git.coom.tech/fuckjannies/lolipiss/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/pee-firefox.zip"}]}}} \ No newline at end of file diff --git a/src/utils.ts b/src/utils.ts index b7f67fb..cacc093 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -179,23 +179,16 @@ export const decodeCoom3Payload = async (buff: Buffer) => { if (hasThumbnail) { thumbsize = header.readInt32LE(ptr); ptr += 4; - // if (execution_mode == 'userscript') thumb = Buffer.from(await (await ifetch(pee, { headers: { 'user-agent': '', range: `bytes=${ptr}-${ptr + thumbsize}` } })).arrayBuffer()); - // else - // thumb = `https://loli.piss/${domain}${file}/${ptr}/${ptr + thumbsize}`; ptr += thumbsize; } const unzip = async (lsn?: EventTarget) => Buffer.from(await (await ifetch(pee, { headers: { 'user-agent': '', range: `bytes=${ptr}-${size - 1}` } }, lsn)).arrayBuffer()); let data; - // if (execution_mode == 'userscript') { data = unzip; if (size < 3072) { thumb = data = await unzip(); } - // } else { - // data = `https://loli.piss/${domain}${file}/${ptr}/${size - 1}`; - // } return { filename: fn, // if file is small, then just get it fully