Browse Source

Fix PNG embeds not being visible.

pull/54/head
coomdev 2 years ago
parent
commit
0923695a24
  1. 3
      .gitignore
  2. 2
      README.md
  3. 6
      chrome/dist/main.js
  4. 2
      chrome/manifest.json
  5. 6
      dist/main.js
  6. 6
      firefox/dist/main.js
  7. 2
      firefox/manifest.json
  8. 2
      firefox_update.json
  9. 2
      main.meta.js
  10. 8
      main.user.js
  11. BIN
      pngextraembedder-0.313.xpi
  12. 2
      src/pngv3.ts

3
.gitignore

@ -44,8 +44,7 @@ a.py
aa
aa.json
bu.json
efdb47d2f0e04144bbaa-0.235.xpi
efdb47d2f0e04144bbaa-0.245.xpi
build-test.js
dist/test.js
src/pngv4.ts
efdb47d2f0e04144bbaa-*

2
README.md

@ -26,7 +26,7 @@ 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.311.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.313.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.

6
chrome/dist/main.js

File diff suppressed because one or more lines are too long

2
chrome/manifest.json

@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "PngExtraEmbedder",
"description": "Discover embedded files on 4chan and archives!",
"version": "0.311",
"version": "0.313",
"icons": {
"64": "1449696017588.png"
},

6
dist/main.js

File diff suppressed because one or more lines are too long

6
firefox/dist/main.js

File diff suppressed because one or more lines are too long

2
firefox/manifest.json

@ -7,7 +7,7 @@
},
"name": "PngExtraEmbedder",
"description": "Discover embedded files on 4chan and archives!",
"version": "0.311",
"version": "0.313",
"icons": {
"64": "1449696017588.png"
},

2
firefox_update.json

@ -1 +1 @@
{"addons":{"{34ac4994-07f2-44d2-8599-682516a6c6a6}":{"updates":[{"version":"0.311","update_link":"https://git.coom.tech/fuckjannies/lolipiss/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/pngextraembedder-0.311.xpi"}]}}}
{"addons":{"{34ac4994-07f2-44d2-8599-682516a6c6a6}":{"updates":[{"version":"0.313","update_link":"https://git.coom.tech/fuckjannies/lolipiss/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/pngextraembedder-0.313.xpi"}]}}}

2
main.meta.js

@ -1,7 +1,7 @@
// ==UserScript==
// @name PNGExtraEmbed
// @namespace https://coom.tech/
// @version 0.311
// @version 0.313
// @description uhh
// @author You
// @match https://boards.4channel.org/*

8
main.user.js

File diff suppressed because one or more lines are too long

BIN
pngextraembedder-0.313.xpi

Binary file not shown.

2
src/pngv3.ts

@ -234,7 +234,7 @@ const extract = async (png: Buffer, doextract = true) => {
.toString()
.split(' ')
.map(e => {
if (!(e[0] in rprefs) || e[1].length < 5) // link needs to be long enough, avoid false positives
if (!(e[0] in rprefs) || e.length < 5) // link needs to be long enough, avoid false positives
throw "Uhh";
return `https://${rprefs[e[0]]}/${e.slice(1)}`;
}).join(' ');

Loading…
Cancel
Save