Browse Source

Remove debug embedded file download. Properly wait for encoding on methods <= 4

pull/46/head
coomdev 2 years ago
parent
commit
691c1eb89c
  1. 2
      README.md
  2. 7
      chrome/dist/main.js
  3. 2
      chrome/manifest.json
  4. 7
      dist/main.js
  5. 7
      firefox/dist/main.js
  6. 2
      firefox/manifest.json
  7. 2
      firefox_update.json
  8. 2
      main.meta.js
  9. 9
      main.user.js
  10. BIN
      pngextraembedder-0.288.xpi
  11. 2
      src/Components/PostOptions.svelte
  12. 4
      src/pngv3.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.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.

7
chrome/dist/main.js

@ -73,7 +73,7 @@
var define_BUILD_VERSION_default;
var init_define_BUILD_VERSION = __esm({
"<define:BUILD_VERSION>"() {
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) {

2
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"
},

7
dist/main.js

@ -73,7 +73,7 @@
var define_BUILD_VERSION_default;
var init_define_BUILD_VERSION = __esm({
"<define:BUILD_VERSION>"() {
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) {

7
firefox/dist/main.js

@ -73,7 +73,7 @@
var define_BUILD_VERSION_default;
var init_define_BUILD_VERSION = __esm({
"<define:BUILD_VERSION>"() {
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) {

2
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"
},

2
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"}]}}}
{"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"}]}}}

2
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/*

9
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>"() {
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) {

BIN
pngextraembedder-0.288.xpi

Binary file not shown.

2
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",

4
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]);

Loading…
Cancel
Save