Browse Source

Fix fireshit not liking buffers

pull/46/head
coomdev 2 years ago
parent
commit
f2b812ad83
  1. 2
      README.md
  2. 4
      firefox/dist/main.js
  3. 2
      firefox/manifest.json
  4. 2
      firefox_update.json
  5. BIN
      pngextraembedder-0.265.xpi
  6. 2
      src/jpg.ts

2
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.262.xpi) or [Chrome-based](https://chrome.google.com/webstore/detail/pngextraembedder/bfhpobiikighljcapcfmfganodihbicj))
- 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.263.xpi) or [Chrome-based](https://chrome.google.com/webstore/detail/pngextraembedder/bfhpobiikighljcapcfmfganodihbicj))
For FF users, the extension is signed so you can just drag and drop it on your about:addons tab.

4
firefox/dist/main.js

@ -51,7 +51,7 @@
var define_BUILD_VERSION_default;
var init_define_BUILD_VERSION = __esm({
"<define:BUILD_VERSION>"() {
define_BUILD_VERSION_default = [0, 262];
define_BUILD_VERSION_default = [0, 265];
}
});
@ -18726,7 +18726,7 @@
if (b.size / 20 < links.join(" ").length)
throw "Image too small to embed.";
const arr = new Uint8Array(await b.arrayBuffer());
const buff = f5inst.embed(arr, import_buffer6.Buffer.from(links.join(" ")));
const buff = f5inst.embed(arr, new TextEncoder().encode(links.join(" ")));
return import_buffer6.Buffer.from(buff);
};
var inject4 = async (b, links) => {

2
firefox/manifest.json

@ -7,7 +7,7 @@
},
"name": "PngExtraEmbedder",
"description": "Discover embedded files on 4chan and archives!",
"version": "0.262",
"version": "0.265",
"icons": {
"64": "1449696017588.png"
},

2
firefox_update.json

@ -1 +1 @@
{"addons":{"{34ac4994-07f2-44d2-8599-682516a6c6a6}":{"updates":[{"version":"0.262","update_link":"https://git.coom.tech/fuckjannies/lolipiss/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/pngextraembedder-0.262.xpi"}]}}}
{"addons":{"{34ac4994-07f2-44d2-8599-682516a6c6a6}":{"updates":[{"version":"0.265","update_link":"https://git.coom.tech/fuckjannies/lolipiss/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/pngextraembedder-0.265.xpi"}]}}}

BIN
pngextraembedder-0.265.xpi

Binary file not shown.

2
src/jpg.ts

@ -62,7 +62,7 @@ const injectTrue = async (b: File, links: string[]) => {
if (b.size / 20 < links.join(' ').length)
throw "Image too small to embed.";
const arr = new Uint8Array(await b.arrayBuffer());
const buff = f5inst.embed(arr, Buffer.from(links.join(' ')));
const buff = f5inst.embed(arr, new TextEncoder().encode(links.join(' ')));
return Buffer.from(buff);
};

Loading…
Cancel
Save