Browse Source

Fix double inclusion for real

pull/46/head
coomdev 2 years ago
parent
commit
017120aeed
  1. BIN
      PEE-chrome.crx
  2. 21
      README.md
  3. 4
      build-chrome.js
  4. 2
      build-ff.js
  5. 4
      chrome/manifest.json
  6. 2
      chrome_update.xml
  7. 2
      firefox/manifest.json
  8. 2
      firefox_update.json
  9. 2
      src/Components/PostOptions.svelte
  10. 2
      src/main.ts

BIN
PEE-chrome.crx

Binary file not shown.

21
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.

4
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,

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

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

2
chrome_update.xml

@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<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.218' prodversionmin='64.0.3242' />
<updatecheck codebase='https://github.com/coomdev/pngextraembedder/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/PEE-chrome.crx' version='0.220' prodversionmin='64.0.3242' />
</app>
</gupdate>

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

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

2
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) => {

2
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);

Loading…
Cancel
Save