Browse Source

God I fucking hate FF

pull/54/head
coomdev 2 years ago
parent
commit
6f8650b192
  1. 2
      README.md
  2. 10
      firefox/dist/main.js
  3. 2
      firefox/manifest.json
  4. 2
      firefox_update.json
  5. 9
      src/Components/App.svelte

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 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 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.320.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.321.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. For FF users, the extension is signed so you can just drag and drop it on your about:addons tab.

10
firefox/dist/main.js

@ -73,7 +73,7 @@
var define_BUILD_VERSION_default; var define_BUILD_VERSION_default;
var init_define_BUILD_VERSION = __esm({ var init_define_BUILD_VERSION = __esm({
"<define:BUILD_VERSION>"() { "<define:BUILD_VERSION>"() {
define_BUILD_VERSION_default = [0, 320]; define_BUILD_VERSION_default = [0, 321];
} }
}); });
@ -18656,8 +18656,12 @@
} catch { } catch {
try { try {
const content = prompt("Paste it in here") || ""; const content = prompt("Paste it in here") || "";
set_store_value(settings, $settings.rsources = JSON.parse(content), $settings); let v = JSON.parse(content);
} catch { if (true)
v = cloneInto(v, window);
set_store_value(settings, $settings.rsources = v, $settings);
} catch (e) {
console.log(e);
alert("How can you fail so badly? pathetic..."); alert("How can you fail so badly? pathetic...");
} }
} }

2
firefox/manifest.json

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

2
firefox_update.json

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

9
src/Components/App.svelte

@ -66,9 +66,12 @@
$settings.rsources = JSON.parse(content); $settings.rsources = JSON.parse(content);
} catch { } catch {
try { try {
const content = prompt("Paste it in here") || ''; const content = prompt("Paste it in here") || "";
$settings.rsources = JSON.parse(content); let v = JSON.parse(content);
} catch { if (execution_mode == "ff_api") v = cloneInto(v, window);
$settings.rsources = v;
} catch (e) {
console.log(e);
alert("How can you fail so badly? pathetic..."); alert("How can you fail so badly? pathetic...");
} }
} }

Loading…
Cancel
Save