Browse Source

Update link references

pull/46/head
coomdev 2 years ago
parent
commit
70367118ce
  1. BIN
      PEE-chrome.crx
  2. 4
      README.md
  3. 2
      build-chrome.js
  4. 2
      build-ff.js
  5. 2
      chrome/manifest.json
  6. 2
      chrome_update.xml
  7. 4
      firefox/manifest.json
  8. 2
      firefox_update.json
  9. 7
      src/utils.ts

BIN
PEE-chrome.crx

Binary file not shown.

4
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. 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. 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. It should work with 4chan's native extension but 4ChanX is highly recommended as it is much more tested.

2
build-chrome.js

@ -58,7 +58,7 @@ const domains = [
const manif = { const manif = {
"manifest_version": 2, "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", "name": "PngExtraEmbedder",
"description": "Discover embedded files on 4chan and archives!", "description": "Discover embedded files on 4chan and archives!",
"version": "0." + rev, "version": "0." + rev,

2
build-ff.js

@ -54,7 +54,7 @@ const manif = {
"manifest_version": 2, "manifest_version": 2,
"browser_specific_settings": { "browser_specific_settings": {
"gecko": { "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", "name": "PngExtraEmbedder",

2
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", "update_url": "https://git.coom.tech/fuckjannies/lolipiss/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/chrome_update.xml",
"name": "PngExtraEmbedder", "name": "PngExtraEmbedder",
"description": "Discover embedded files on 4chan and archives!", "description": "Discover embedded files on 4chan and archives!",
"version": "0.213", "version": "0.218",
"icons": { "icons": {
"64": "1449696017588.png" "64": "1449696017588.png"
}, },

2
chrome_update.xml

@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?> <?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'> <gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='ilffidhdekahjldemialkgahicnajchb'> <app appid='ilffidhdekahjldemialkgahicnajchb'>
<updatecheck codebase='https://git.coom.tech/coomdev/PEE/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/PEE-chrome.crx' version='0.213' prodversionmin='64.0.3242' /> <updatecheck codebase='https://git.coom.tech/coomdev/PEE/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/PEE-chrome.crx' version='0.218' prodversionmin='64.0.3242' />
</app> </app>
</gupdate> </gupdate>

4
firefox/manifest.json

@ -2,12 +2,12 @@
"manifest_version": 2, "manifest_version": 2,
"browser_specific_settings": { "browser_specific_settings": {
"gecko": { "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", "name": "PngExtraEmbedder",
"description": "Discover embedded files on 4chan and archives!", "description": "Discover embedded files on 4chan and archives!",
"version": "0.213", "version": "0.218",
"icons": { "icons": {
"64": "1449696017588.png" "64": "1449696017588.png"
}, },

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

7
src/utils.ts

@ -179,23 +179,16 @@ export const decodeCoom3Payload = async (buff: Buffer) => {
if (hasThumbnail) { if (hasThumbnail) {
thumbsize = header.readInt32LE(ptr); thumbsize = header.readInt32LE(ptr);
ptr += 4; ptr += 4;
// if (execution_mode == 'userscript')
thumb = Buffer.from(await (await ifetch(pee, { headers: { 'user-agent': '', range: `bytes=${ptr}-${ptr + thumbsize}` } })).arrayBuffer()); 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; ptr += thumbsize;
} }
const unzip = async (lsn?: EventTarget) => const unzip = async (lsn?: EventTarget) =>
Buffer.from(await (await ifetch(pee, { headers: { 'user-agent': '', range: `bytes=${ptr}-${size - 1}` } }, lsn)).arrayBuffer()); Buffer.from(await (await ifetch(pee, { headers: { 'user-agent': '', range: `bytes=${ptr}-${size - 1}` } }, lsn)).arrayBuffer());
let data; let data;
// if (execution_mode == 'userscript') {
data = unzip; data = unzip;
if (size < 3072) { if (size < 3072) {
thumb = data = await unzip(); thumb = data = await unzip();
} }
// } else {
// data = `https://loli.piss/${domain}${file}/${ptr}/${size - 1}`;
// }
return { return {
filename: fn, filename: fn,
// if file is small, then just get it fully // if file is small, then just get it fully

Loading…
Cancel
Save