diff --git a/PEE-chrome.crx b/PEE-chrome.crx index c130109..4a505dd 100644 Binary files a/PEE-chrome.crx and b/PEE-chrome.crx differ diff --git a/README.md b/README.md index cd3933e..1330525 100644 --- a/README.md +++ b/README.md @@ -20,16 +20,25 @@ Note: 4chanX isn't a hard requirement, just recommended because it's overall a n ## The newer way (WIP) +Hint: WIP means it's not for you if you don't know what you're doing! + - [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/coomdev/PEE/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/pngextraembedder-0.213-an+fx.xpi) or [Chrome-based](https://git.coom.tech/coomdev/PEE/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/PEE-chrome.crx)) +If you're a chr*me/\*dge user, unzip the crx somewhere, go to `chrome/edge]://extensions`, enable dev mode, and "load unpacked" the extracted thing. + +For FF users, the extension is signed so you can just drag and drop it on your `about:addons` tab. + How to Build ============ (You only need to care about this section if you're auditing the code or contributing to development) -`npm i` and `npm run build` -then install the generated main.user.js +`npm i` and + +`npm run build` to build the userscript version. +`npm run build_chrome` to build the chromium webextension. +`npm run build_ff` to build the firefox webextension. (You'll have to do the signing yourself, though) How to use ========== @@ -60,11 +69,11 @@ The "Contribute" checkbox makes your browser report posts with embeds you come a ## [NEW] b4k -b4k is a meanie, i disabled lazyloading of thumbnails, heck you person of african american descent. +b4k is a meanie, i disabled lazyloading of thumbnails, heck. **ACK!** -If you want to use b4k, you will get warning prompts. I added a ton of warning screen so it shouldn't happen to you. +If you want to use b4k, you will get warning prompts. I added a ton of warning screens so it shouldn't happen to you. Switch to the beta and enable this setting. If you're using TamperMonkey, it has something similar called "Instant Injection" ![ack](spm.png) @@ -96,13 +105,13 @@ The file-type detection package is huge as it detect many file types, but also d ## How do I know it's not a botnet??? -You're free to audit the code. You don't have to audit the 18000 loc file, you just need to audit the 2000-something lines of typescript code in the `src` folder, build it as instructed, and compare it to the one distributed. If you're incapable of doing that, chances are you're already using unauditable extensions with backdoors anyway? dumb schizoposter. +You're free to audit the code. You don't have to audit the 22000 loc file, you just need to audit the 3000-something lines of typescript code in the `src` folder, build it as instructed, and compare it to the one distributed. ## But embedding is a bannable offense!!!11 Yeah, well use at your own risk, you double baka. -While it is true PEE used to allow you to embed complete files in your uploads, recent changes have made it much less practical (limited to really small files), so it's falling back to linking external content hosted on pomf-clones such as catbox. +While it is true PEE used to allow you to embed complete files in your uploads, recent changes to 4chans have made it much less practical (limited to really small files), so it's falling back to linking external content hosted on pomf-clones such as catbox. Links are much smaller and as some PNG editing software injects their own metadata, 4chan is basically required to allow some little amount of it to go through, lest they inconvenience a lot of their users, so a link-embedding detection method cannot be generalized, meaning they rely on unpaid janny labor to moderate this kind of content. diff --git a/build-chrome.js b/build-chrome.js index 59077b1..ef8d6a0 100644 --- a/build-chrome.js +++ b/build-chrome.js @@ -11,7 +11,7 @@ import path from 'path'; import ChromeExtension from 'crx'; const crx = new ChromeExtension({ - codebase: 'https://git.coom.tech/coomdev/PEE/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/PEE-chrome.crx', + codebase: 'https://github.com/coomdev/pngextraembedder/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/PEE-chrome.crx', privateKey: readFileSync('./key.pem') }); @@ -95,7 +95,7 @@ const manif = { const manif3 = { "manifest_version": 3, - "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 15b353d..9220fa8 100644 --- a/build-ff.js +++ b/build-ff.js @@ -161,7 +161,7 @@ const manif = { "updates": [ { "version": manif.version, - "update_link": "https://git.coom.tech/fuckjannies/lolipiss/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/pee-firefox.zip", + "update_link": "https://github.com/coomdev/pngextraembedder/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/pee-firefox.zip", } ] } diff --git a/chrome/manifest.json b/chrome/manifest.json index 88babcd..bbf4898 100644 --- a/chrome/manifest.json +++ b/chrome/manifest.json @@ -1,9 +1,9 @@ { "manifest_version": 3, - "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.218", + "version": "0.220", "icons": { "64": "1449696017588.png" }, diff --git a/chrome_update.xml b/chrome_update.xml index e5b264b..fec7a38 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 009e029..4ff65ad 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.218", + "version": "0.220", "icons": { "64": "1449696017588.png" }, diff --git a/firefox_update.json b/firefox_update.json index 8863e2b..f85ca48 100644 --- a/firefox_update.json +++ b/firefox_update.json @@ -1 +1 @@ -{"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 +{"addons":{"{34ac4994-07f2-44d2-8599-682516a6c6a6}":{"updates":[{"version":"0.220","update_link":"https://github.com/coomdev/pngextraembedder/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/pee-firefox.zip"}]}}} \ No newline at end of file diff --git a/src/Components/PostOptions.svelte b/src/Components/PostOptions.svelte index 55e4251..648158e 100644 --- a/src/Components/PostOptions.svelte +++ b/src/Components/PostOptions.svelte @@ -36,7 +36,7 @@ const isSame = (a: File | null, b: File | null) => { if (a == null || b == null) return false; - (["size", "name", "lastModified"] as const).every((e) => a[e] == b[e]); + return (["size", "name", "lastModified"] as const).every((e) => a[e] == b[e]); }; document.addEventListener("PEEFile", async (e) => { diff --git a/src/main.ts b/src/main.ts index 786fbcd..f3454b5 100644 --- a/src/main.ts +++ b/src/main.ts @@ -194,7 +194,7 @@ const processPost = async (post: HTMLDivElement) => { }; const versionCheck = async () => { - const txt = (await (await ifetch("https://git.coom.tech/coomdev/PEE/raw/branch/%e4%b8%ad%e5%87%ba%e3%81%97/main.meta.js")).text()); + const txt = (await (await ifetch("https://github.com/coomdev/pngextraembedder/raw/branch/%e4%b8%ad%e5%87%ba%e3%81%97/main.meta.js")).text()); const [lmajor, lminor] = txt.split('\n') .filter(e => e.includes("// @version"))[0].match(/.*version\s+(.*)/)![1].split('.') .map(e => +e);