diff --git a/README.md b/README.md index c423113..136ce4a 100644 --- a/README.md +++ b/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.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. diff --git a/firefox/dist/main.js b/firefox/dist/main.js index a6898c3..04609d2 100644 --- a/firefox/dist/main.js +++ b/firefox/dist/main.js @@ -73,7 +73,7 @@ var define_BUILD_VERSION_default; var init_define_BUILD_VERSION = __esm({ ""() { - define_BUILD_VERSION_default = [0, 320]; + define_BUILD_VERSION_default = [0, 321]; } }); @@ -18656,8 +18656,12 @@ } catch { try { const content = prompt("Paste it in here") || ""; - set_store_value(settings, $settings.rsources = JSON.parse(content), $settings); - } catch { + let v = JSON.parse(content); + 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..."); } } diff --git a/firefox/manifest.json b/firefox/manifest.json index bcc5015..9b6283d 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.320", + "version": "0.321", "icons": { "64": "1449696017588.png" }, diff --git a/firefox_update.json b/firefox_update.json index dfeec41..eff7864 100644 --- a/firefox_update.json +++ b/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"}]}}} \ No newline at end of file +{"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"}]}}} \ No newline at end of file diff --git a/src/Components/App.svelte b/src/Components/App.svelte index e8e1506..595b26f 100644 --- a/src/Components/App.svelte +++ b/src/Components/App.svelte @@ -66,9 +66,12 @@ $settings.rsources = JSON.parse(content); } catch { try { - const content = prompt("Paste it in here") || ''; - $settings.rsources = JSON.parse(content); - } catch { + const content = prompt("Paste it in here") || ""; + let v = JSON.parse(content); + 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..."); } }