diff --git a/README.md b/README.md index e1ef2b6..b50a2dd 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Please report any issue you have with those (only for mainstream browsers) Also, use this if you plan to use b4k's archive. - [Install 4chanX (recommended)](https://www.4chan-x.net/builds/4chan-X.user.js) -- Install the correct WebExtension for your Browser ([Firefox](https://git.coom.tech/fuckjannies/lolipiss/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/pngextraembedder-0.287.xpi) or Chrome-based (Down for "maintainance")) +- Install the correct WebExtension for your Browser ([Firefox](https://git.coom.tech/fuckjannies/lolipiss/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/pngextraembedder-0.288.xpi) or Chrome-based (Down for "maintainance")) For FF users, the extension is signed so you can just drag and drop it on your about:addons tab. diff --git a/chrome/dist/main.js b/chrome/dist/main.js index 5dd38ec..cbddff2 100644 --- a/chrome/dist/main.js +++ b/chrome/dist/main.js @@ -73,7 +73,7 @@ var define_BUILD_VERSION_default; var init_define_BUILD_VERSION = __esm({ ""() { - define_BUILD_VERSION_default = [0, 287]; + define_BUILD_VERSION_default = [0, 288]; } }); @@ -21908,9 +21908,9 @@ } magic4 = true; } - encoder.insertchunk([name, chunk, crc, offset]); + await encoder.insertchunk([name, chunk, crc, offset]); } - encoder.insertchunk([ + await encoder.insertchunk([ "IEND", buildChunk("IEND", import_buffer3.Buffer.from([])), 0, @@ -29681,7 +29681,6 @@ currentEmbed = { file: new File([buff], file.name, { type }) }; - downloadFile(currentEmbed); externalDispatch("QRSetFile", currentEmbed); fireNotification("success", `File${links.length > 1 ? "s" : ""} successfully embedded!`); } catch (err) { diff --git a/chrome/manifest.json b/chrome/manifest.json index 0b8d69e..860eadc 100644 --- a/chrome/manifest.json +++ b/chrome/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "PngExtraEmbedder", "description": "Discover embedded files on 4chan and archives!", - "version": "0.287", + "version": "0.288", "icons": { "64": "1449696017588.png" }, diff --git a/dist/main.js b/dist/main.js index 633c8e2..82ea68e 100644 --- a/dist/main.js +++ b/dist/main.js @@ -73,7 +73,7 @@ var define_BUILD_VERSION_default; var init_define_BUILD_VERSION = __esm({ ""() { - define_BUILD_VERSION_default = [0, 287]; + define_BUILD_VERSION_default = [0, 288]; } }); @@ -21743,9 +21743,9 @@ } magic4 = true; } - encoder.insertchunk([name, chunk, crc, offset]); + await encoder.insertchunk([name, chunk, crc, offset]); } - encoder.insertchunk([ + await encoder.insertchunk([ "IEND", buildChunk("IEND", import_buffer3.Buffer.from([])), 0, @@ -29516,7 +29516,6 @@ currentEmbed = { file: new File([buff], file.name, { type }) }; - downloadFile(currentEmbed); externalDispatch("QRSetFile", currentEmbed); fireNotification("success", `File${links.length > 1 ? "s" : ""} successfully embedded!`); } catch (err) { diff --git a/firefox/dist/main.js b/firefox/dist/main.js index 216c401..bda91e8 100644 --- a/firefox/dist/main.js +++ b/firefox/dist/main.js @@ -73,7 +73,7 @@ var define_BUILD_VERSION_default; var init_define_BUILD_VERSION = __esm({ ""() { - define_BUILD_VERSION_default = [0, 287]; + define_BUILD_VERSION_default = [0, 288]; } }); @@ -21885,9 +21885,9 @@ } magic4 = true; } - encoder.insertchunk([name, chunk, crc, offset]); + await encoder.insertchunk([name, chunk, crc, offset]); } - encoder.insertchunk([ + await encoder.insertchunk([ "IEND", buildChunk("IEND", import_buffer3.Buffer.from([])), 0, @@ -29658,7 +29658,6 @@ currentEmbed = { file: new File([buff], file.name, { type }) }; - downloadFile(currentEmbed); externalDispatch("QRSetFile", currentEmbed); fireNotification("success", `File${links.length > 1 ? "s" : ""} successfully embedded!`); } catch (err) { diff --git a/firefox/manifest.json b/firefox/manifest.json index 5530451..28cf593 100644 --- a/firefox/manifest.json +++ b/firefox/manifest.json @@ -7,7 +7,7 @@ }, "name": "PngExtraEmbedder", "description": "Discover embedded files on 4chan and archives!", - "version": "0.287", + "version": "0.288", "icons": { "64": "1449696017588.png" }, diff --git a/firefox_update.json b/firefox_update.json index 5a21c8c..d945c65 100644 --- a/firefox_update.json +++ b/firefox_update.json @@ -1 +1 @@ -{"addons":{"{34ac4994-07f2-44d2-8599-682516a6c6a6}":{"updates":[{"version":"0.287","update_link":"https://git.coom.tech/fuckjannies/lolipiss/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/pngextraembedder-0.287.xpi"}]}}} \ No newline at end of file +{"addons":{"{34ac4994-07f2-44d2-8599-682516a6c6a6}":{"updates":[{"version":"0.288","update_link":"https://git.coom.tech/fuckjannies/lolipiss/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/pngextraembedder-0.288.xpi"}]}}} \ No newline at end of file diff --git a/main.meta.js b/main.meta.js index 37ab255..af504d4 100644 --- a/main.meta.js +++ b/main.meta.js @@ -1,7 +1,7 @@ // ==UserScript== // @name PNGExtraEmbed // @namespace https://coom.tech/ -// @version 0.287 +// @version 0.288 // @description uhh // @author You // @match https://boards.4channel.org/* diff --git a/main.user.js b/main.user.js index 208f4b0..7311e6d 100644 --- a/main.user.js +++ b/main.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name PNGExtraEmbed // @namespace https://coom.tech/ -// @version 0.287 +// @version 0.288 // @description uhh // @author You // @match https://boards.4channel.org/* @@ -109,7 +109,7 @@ const _DOMParser = DOMParser; var define_BUILD_VERSION_default; var init_define_BUILD_VERSION = __esm({ ""() { - define_BUILD_VERSION_default = [0, 287]; + define_BUILD_VERSION_default = [0, 288]; } }); @@ -21779,9 +21779,9 @@ const _DOMParser = DOMParser; } magic4 = true; } - encoder.insertchunk([name, chunk, crc, offset]); + await encoder.insertchunk([name, chunk, crc, offset]); } - encoder.insertchunk([ + await encoder.insertchunk([ "IEND", buildChunk("IEND", import_buffer3.Buffer.from([])), 0, @@ -29552,7 +29552,6 @@ const _DOMParser = DOMParser; currentEmbed = { file: new File([buff], file.name, { type }) }; - downloadFile(currentEmbed); externalDispatch("QRSetFile", currentEmbed); fireNotification("success", `File${links.length > 1 ? "s" : ""} successfully embedded!`); } catch (err) { diff --git a/pngextraembedder-0.288.xpi b/pngextraembedder-0.288.xpi new file mode 100644 index 0000000..b5274ef Binary files /dev/null and b/pngextraembedder-0.288.xpi differ diff --git a/src/Components/PostOptions.svelte b/src/Components/PostOptions.svelte index e9a99f7..2fd43b9 100644 --- a/src/Components/PostOptions.svelte +++ b/src/Components/PostOptions.svelte @@ -171,7 +171,7 @@ currentEmbed = { file: new File([buff], file.name, { type }), } as { file: File }; - downloadFile(currentEmbed); + //downloadFile(currentEmbed); externalDispatch("QRSetFile", currentEmbed); fireNotification( "success", diff --git a/src/pngv3.ts b/src/pngv3.ts index 743b40c..4e25e01 100644 --- a/src/pngv3.ts +++ b/src/pngv3.ts @@ -306,9 +306,9 @@ export const inject_data = async (container: File, injb: Buffer) => { } magic = true; } - encoder.insertchunk([name, chunk, crc, offset]); + await encoder.insertchunk([name, chunk, crc, offset]); } - encoder.insertchunk(["IEND", + await encoder.insertchunk(["IEND", buildChunk("IEND", Buffer.from([])), 0, 0]);