Browse Source

Some cleanup

pull/52/head
Araragi 1 year ago
parent
commit
bba1915321
  1. 26
      README.md
  2. 2
      build-chrome.js
  3. 2
      build-ff.js
  4. 36
      main.meta.js
  5. 22259
      main.user.js

26
README.md

@ -11,27 +11,23 @@ Also supports desuarchive.
Kohlchan support is being worked on. Right now works barely on Chrome.
There's no server-side caching for kohlchan. Buttons to embed will only be added to the quick reply form.
Supported boards:
- [x] 4chan
- [x] FoolFuuka (desuarchive, b4k, etc)
- [x] Kohlchan (WIP)
How to Install
==============
Note: 4chanX isn't a hard requirement, just recommended because it's overall a nicer experience. If you don't want to use 4chanX, make sure the native 4chan extension is enabled in your settings.
## Teh olde way
Note for 4chan: 4chanX isn't a hard requirement, just recommended because it's overall a nicer experience. If you don't want to use 4chanX, make sure the native 4chan extension is enabled in your settings.
- Make sure you're using a decent Webkit-based browser (Chromium derivatives) or Firefox.
- [Install ViolentMonkey](https://violentmonkey.github.io/get-it/) (it is preferable to TamperMonkey(closed source) and GreaseMonkey(abandonned shit)), use [ViolentMonkey Beta](https://violentmonkey.github.io/get-it/#beta-release) if you want to spite the b4k meanie admin (based & redpilled). Be sure to read the trouble shooting section to know how to set this up.
- [Install 4chanX (recommended)](https://www.4chan-x.net/builds/4chan-X.user.js)
- Use the prebuilt [main.user.js](https://git.coom.tech/coomdev/PEE/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/main.user.js)
- Reorder PEE and 4chanX in the dashboard so that PEE runs BEFORE 4chanX (or add blob: to your 4chanX JS whitelist)
## The newer way (WIP)
## PEE 4 Dummies
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 JKCS (recommended)](https://git.coom.tech/araragi/JKCS/src/branch/master/README.md)
- 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.325.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.
@ -40,7 +36,7 @@ Chrom* users can now install directly from the chrome webstore.
Known bugs:
- JPEG embedding might not work with some very big files (> 1MB).
- GIFs and WebMs got patched :(
- 4chan: GIFs and WebMs got patched :(
### Side loading
@ -85,7 +81,7 @@ Copy paste this and click "bulk-import"
"domain": "danbooru.donmai.us",
"endpoint": "/posts.json?tags=md5:",
"view": "https://danbooru.donmai.us/posts/"
},
}
{"name": "Lolibooru",
"domain": "lolibooru.moe",
"endpoint": "/post.json?tags=md5:",
@ -105,7 +101,7 @@ How to Build
`npm i` and
`npm run build` to build the userscript version.
`npm run build` to build the userscript version. (!!! DEPRECIATED !!!)
`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)
@ -238,4 +234,4 @@ We reached 1000+ downloads on the Chrome WebStore.
![ack](842173-2.png)
Original character drawn by monmon.
Original character drawn by monmon.

2
build-chrome.js

@ -107,7 +107,7 @@ const manif3 = {
minify: false,
bundle: true,
treeShaking: true,
target: "es2021",
target: "es2022",
loader: {
'.css': 'text',
'.png': 'binary'

2
build-ff.js

@ -122,7 +122,7 @@ const manif = {
minify: false,
bundle: true,
treeShaking: true,
target: "es2021",
target: "es2022",
loader: {
'.css': 'text',
'.png': 'binary'

36
main.meta.js

@ -1,36 +0,0 @@
// ==UserScript==
// @name PNGExtraEmbed
// @namespace https://coom.tech/
// @version 0.324
// @description uhh
// @author You
// @match https://boards.4channel.org/*
// @match https://boards.4chan.org/*
// @match https://desuarchive.org/*
// @match https://archived.moe/*
// @match https://archive.nyafuu.org/*
// @match https://arch.b4k.co/*
// @match https://archive.wakarimasen.moe/*
// @match https://fireden.net/*
// @match https://thebarchive.com/*
// @match https://archiveofsins.com/*
// @require https://unpkg.com/web-streams-polyfill/dist/polyfill.min.js
// @grant GM_xmlhttpRequest
// @grant GM.xmlHttpRequest
// @grant GM_getValue
// @grant GM.getValue
// @grant GM_setValue
// @grant GM.setValue
// @grant GM_openInTab
// @grant GM.openInTab
// @grant GM_addElement
// @grant unsafeWindow
// @run-at document-start
// @connect 4chan.org
// @connect 4channel.org
// @connect i.4cdn.org
// @connect *
// @icon https://coom.tech/resources/assets/1449696017588.png
// ==/UserScript==
const _DOMParser = DOMParser;

22259
main.user.js

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save