From 8d553cb21cf8e1020f1c146c505dc117b7801e09 Mon Sep 17 00:00:00 2001 From: SwingTheVine Date: Sun, 17 Aug 2025 05:47:15 -0400 Subject: [PATCH 1/4] Made Blue Marble work on wplace.live// (#197) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update to 0.80.0 (#108) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * counts and colors for 81 * updated color palette and counts for transparent pixels * Implement #44 Ability to auto paste coordinates in their proper field (#45) * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * v0.82.0; Merge branch 'code' into main * Git is such a pain * v0.81.0; Git is such a pain * Stupid automation AAAAAA * v0.80.0; Stupid automation AAAAAA * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: Filip Struzik Co-authored-by: SwingTheVine Co-authored-by: github-actions[bot] * Fixed checkerboard patterns on black pixels (#143) Close #122 * Added telemetry * Debugging CSS * Telemetry and color filter are stable * Forgot to remove this before commiting * Begin update for v0.83.0 (#188) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * Added a Shield for Pages * Added markdown support to the wiki * fixed broken links firefox related links were broken * fixed latest pre-releases links * Cleanup of bugs related to one-click install link * feat: Add new official Blue Marble website and update documentation Add newly created official Blue Marble website and update project documentation - Add official website badge to README.md - Include website link in Quick Guide section - Add website creator credits in CREDITS.md - Update CONTRIBUTING.md with website reference - Add new official website URL: https://bluemarble.camilledaguin.fr/ This commit introduces the newly created official Blue Marble website and updates all documentation to reference it. The website provides a dedicated platform for Blue Marble users and information. * Markdown links are used in CREDITS.md * Website Shield Moved Next to Social Shields * Website should not take priority over download information... ...also, removed the word "official" due to the fact that the website being linked on the GitHub indicates that the website is official. Just like how the Discord server being linked on GitHub indicates that the Discord server is "official." * Since the website does not contain security information... ...it should not be in SECURITY.md * Removed redundant @website meta attribute... ...since @website and @homepageURL do the exact same thing * Added @WondaMegapon to the CREDITS.md file * Fix some issues with the README (#124) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Update README.md Fix some issues with the readme * Added version Shield back --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update documentation branch (#164) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update Wplace status badge (#140) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Update Wplace status badge --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Fix spelling mistakes (#151) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Fix spelling mistakes --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Remove `@run-at` (#161) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Remove `@run-at` --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update `@match` to match only the frontend (#162) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Updae `@match` to match only the frontend --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * docs: correction of typographical errors (#178) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * docs: correction of typographical errors recieved -> received --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> * Potential fix for code scanning alert no. 30: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Updated README Shields * Update code branch (#190) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * Fix minor comment typo Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Made Blue Marble work on wplace.live// * Fixed duplication of Quick Guide --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: vishnuvardhan33 <93069382+vishnuvardhan33@users.noreply.github.com> Co-authored-by: Filip Str Co-authored-by: Filip Struzik Co-authored-by: East Monster 🍉 <89259667+EastMonster@users.noreply.github.com> Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- dist/BlueMarble.user.css | 2 +- dist/BlueMarble.user.js | 5 ++- docs/README.md | 74 ---------------------------------------- src/BlueMarble.meta.js | 7 ++-- 4 files changed, 6 insertions(+), 82 deletions(-) diff --git a/dist/BlueMarble.user.css b/dist/BlueMarble.user.css index a0db136..9ccc311 100644 --- a/dist/BlueMarble.user.css +++ b/dist/BlueMarble.user.css @@ -1 +1 @@ -#bm-A,#bm-d{position:fixed;background-color:#153063e6;color:#fff;padding:10px;border-radius:8px;z-index:9000;transition:all .3s ease,transform 0s;max-width:300px;width:auto;will-change:transform;backface-visibility:hidden;-webkit-backface-visibility:hidden;transform-style:preserve-3d;-webkit-transform-style:preserve-3d}#bm-f,#bm-A hr,#bm-d hr,#bm-c,#bm-6{transition:opacity .2s ease,height .2s ease}div#bm-A,div#bm-d{font-family:Roboto Mono,Courier New,Monaco,DejaVu Sans Mono,monospace,Arial;letter-spacing:.05em}#bm-z,#bm-z-telemetry{margin-bottom:.5em;background:url('data:image/svg+xml;utf8,') repeat;cursor:grab;width:100%;height:1em}#bm-z.dragging,#bm-z-telemetry.dragging{cursor:grabbing}#bm-A:has(#bm-z.dragging),#bm-d:has(#bm-z-telemetry.dragging){pointer-events:none;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}#bm-z.dragging,#bm-z-telemetry.dragging{pointer-events:auto}#bm-j,#bm-1{margin-bottom:.5em}#bm-j[style*="text-align: center"],#bm-1[style*="text-align: center"]{display:flex;flex-direction:column;align-items:center;justify-content:center}#bm-A[style*="padding: 5px"],#bm-d[style*="padding: 5px"]{width:auto!important;max-width:300px;min-width:200px}#bm-A img{display:inline-block;height:2.5em;margin-right:1ch;vertical-align:middle;transition:opacity .2s ease}#bm-j[style*="text-align: center"] img{display:block;margin:0 auto}#bm-z,#bm-z-telemetry{transition:margin-bottom .2s ease}#bm-A h1,#bm-d h1{display:inline-block;font-size:x-large;font-weight:700;vertical-align:middle}#bm-c input[type=checkbox]{vertical-align:middle;margin-right:.5ch}#bm-c label{margin-right:.5ch}.bm-D{border:white 1px solid;height:1.5em;width:1.5em;margin-top:2px;text-align:center;line-height:1em;padding:0!important}#bm-q{vertical-align:middle}#bm-q svg{width:50%;margin:0 auto;fill:#111}div:has(>#bm-button-teleport){display:flex;gap:.5ch}#bm-button-favorite svg,#bm-button-template svg{height:1em;margin:2px auto 0;text-align:center;line-height:1em;vertical-align:bottom}#bm-k input[type=number]{appearance:auto;-moz-appearance:textfield;width:5.5ch;margin-left:1ch;background-color:#0003;padding:0 .5ch;font-size:small}#bm-k input[type=number]::-webkit-outer-spin-button,#bm-k input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#bm-4{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;justify-content:center;align-items:center;gap:1ch}div:has(>#bm-a)>button{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#bm-a,input[type=file][id*=template]{display:none!important;visibility:hidden!important;position:absolute!important;left:-9999px!important;top:-9999px!important;width:0!important;height:0!important;opacity:0!important;z-index:-9999!important;pointer-events:none!important}#bm-o{font-size:small;background-color:#0003;padding:0 .5ch;height:3.75em;width:100%}#bm-6{display:flex;justify-content:space-between}#bm-A small{font-size:x-small;color:#d3d3d3}#bm-f,#bm-c,#bm-k,#bm-4,div:has(>#bm-a),#bm-o{margin-top:.5em}#bm-A button,#bm-d button{background-color:#144eb9;border-radius:1em;padding:0 .75ch}#bm-A button:hover,#bm-A button:focus-visible,#bm-d button:hover,#bm-d button:focus-visible{background-color:#1061e5}#bm-A button:active,#bm-d button:active #bm-A button:disabled,#bm-d button:disabled{background-color:#2e97ff}#bm-A button:disabled,#bm-d button:disabled{text-decoration:line-through} +#bm-s,#bm-s-telemetry{position:fixed;background-color:#153063e6;color:#fff;padding:10px;border-radius:8px;z-index:9000;transition:all .3s ease,transform 0s;max-width:300px;width:auto;will-change:transform;backface-visibility:hidden;-webkit-backface-visibility:hidden;transform-style:preserve-3d;-webkit-transform-style:preserve-3d}#bm-8,#bm-s hr,#bm-s-telemetry hr,#bm-7,#bm-3{transition:opacity .2s ease,height .2s ease}div#bm-s,div#bm-s-telemetry{font-family:Roboto Mono,Courier New,Monaco,DejaVu Sans Mono,monospace,Arial;letter-spacing:.05em}#bm-r,#bm-r-telemetry{margin-bottom:.5em;background:url('data:image/svg+xml;utf8,') repeat;cursor:grab;width:100%;height:1em}#bm-r.dragging,#bm-r-telemetry.dragging{cursor:grabbing}#bm-s:has(#bm-r.dragging),#bm-s-telemetry:has(#bm-r-telemetry.dragging){pointer-events:none;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}#bm-r.dragging,#bm-r-telemetry.dragging{pointer-events:auto}#bm-c,#bm-c-telemetry{margin-bottom:.5em}#bm-c[style*="text-align: center"],#bm-c-telemetry[style*="text-align: center"]{display:flex;flex-direction:column;align-items:center;justify-content:center}#bm-s[style*="padding: 5px"],#bm-s-telemetry[style*="padding: 5px"]{width:auto!important;max-width:300px;min-width:200px}#bm-s img{display:inline-block;height:2.5em;margin-right:1ch;vertical-align:middle;transition:opacity .2s ease}#bm-c[style*="text-align: center"] img{display:block;margin:0 auto}#bm-r,#bm-r-telemetry{transition:margin-bottom .2s ease}#bm-s h1,#bm-s-telemetry h1{display:inline-block;font-size:x-large;font-weight:700;vertical-align:middle}#bm-7 input[type=checkbox]{vertical-align:middle;margin-right:.5ch}#bm-7 label{margin-right:.5ch}.bm-v{border:white 1px solid;height:1.5em;width:1.5em;margin-top:2px;text-align:center;line-height:1em;padding:0!important}#bm-i{vertical-align:middle}#bm-i svg{width:50%;margin:0 auto;fill:#111}div:has(>#bm-button-teleport){display:flex;gap:.5ch}#bm-button-favorite svg,#bm-button-template svg{height:1em;margin:2px auto 0;text-align:center;line-height:1em;vertical-align:bottom}#bm-d input[type=number]{appearance:auto;-moz-appearance:textfield;width:5.5ch;margin-left:1ch;background-color:#0003;padding:0 .5ch;font-size:small}#bm-d input[type=number]::-webkit-outer-spin-button,#bm-d input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#bm-2{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;justify-content:center;align-items:center;gap:1ch}div:has(>#bm-5)>button{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#bm-5,input[type=file][id*=template]{display:none!important;visibility:hidden!important;position:absolute!important;left:-9999px!important;top:-9999px!important;width:0!important;height:0!important;opacity:0!important;z-index:-9999!important;pointer-events:none!important}#bm-g{font-size:small;background-color:#0003;padding:0 .5ch;height:3.75em;width:100%}#bm-3{display:flex;justify-content:space-between}#bm-s small{font-size:x-small;color:#d3d3d3}#bm-8,#bm-7,#bm-d,#bm-2,div:has(>#bm-5),#bm-g{margin-top:.5em}#bm-s button,#bm-s-telemetry button{background-color:#144eb9;border-radius:1em;padding:0 .75ch}#bm-s button:hover,#bm-s button:focus-visible,#bm-s-telemetry button:hover,#bm-s-telemetry button:focus-visible{background-color:#1061e5}#bm-s button:active,#bm-s-telemetry button:active #bm-s button:disabled,#bm-s-telemetry button:disabled{background-color:#2e97ff}#bm-s button:disabled,#bm-s-telemetry button:disabled{text-decoration:line-through} diff --git a/dist/BlueMarble.user.js b/dist/BlueMarble.user.js index 56c2b03..149eeb8 100644 --- a/dist/BlueMarble.user.js +++ b/dist/BlueMarble.user.js @@ -10,8 +10,7 @@ // @icon https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/509c030292c264477d6571d46f03d14fc1f32a1a/dist/assets/Favicon.png // @updateURL https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/dist/BlueMarble.user.js // @downloadURL https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/dist/BlueMarble.user.js -// @match https://wplace.live/ -// @match https://wplace.live/?* +// @match https://wplace.live/* // @grant GM_getResourceText // @grant GM_addStyle // @grant GM.setValue @@ -24,4 +23,4 @@ // Wplace --> https://wplace.live // License --> https://www.mozilla.org/en-US/MPL/2.0/ -(()=>{var t,e,n=t=>{throw TypeError(t)},i=(t,e,i)=>e.has(t)?n("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),o=(t,e,i)=>(((t,e)=>{e.has(t)||n("Cannot access private method")})(t,e),i),r=class{constructor(e,n){i(this,t),this.name=e,this.version=n,this.t=null,this.i="bm-o",this.o=null,this.m=null,this.l=[]}u(t){this.t=t}h(){return this.l.length>0&&(this.m=this.l.pop()),this}p(t){t?.appendChild(this.o),this.o=null,this.m=null,this.l=[]}v(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"div",{},n)),this}$(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"p",{},n)),this}S(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"small",{},n)),this}M(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"img",{},n)),this}O(n,i={},r=()=>{}){return r(this,o(this,t,e).call(this,"h"+n,{},i)),this}C(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"hr",{},n)),this}D(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"br",{},n)),this}T(n={},i=()=>{}){const r=o(this,t,e).call(this,"label",{textContent:n.textContent??""});delete n.textContent;const s=o(this,t,e).call(this,"input",{type:"checkbox"},n);return r.insertBefore(s,r.firstChild),this.h(),i(this,r,s),this}k(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"button",{},n)),this}N(n={},i=()=>{}){const r=n.title??n.textContent??"Help: No info";delete n.textContent,n.title=`Help: ${r}`;const s={textContent:"?",className:"bm-D",onclick:()=>{this.B(this.i,r)}};return i(this,o(this,t,e).call(this,"button",s,n)),this}I(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"input",{},n)),this}L(n={},i=()=>{}){const r=n.textContent??"";delete n.textContent;const s=o(this,t,e).call(this,"div"),a=o(this,t,e).call(this,"input",{type:"file",style:"display: none !important; visibility: hidden !important; position: absolute !important; left: -9999px !important; width: 0 !important; height: 0 !important; opacity: 0 !important;"},n);this.h();const m=o(this,t,e).call(this,"button",{textContent:r});return this.h(),this.h(),a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),m.addEventListener("click",()=>{a.click()}),a.addEventListener("change",()=>{m.style.maxWidth=`${m.offsetWidth}px`,a.files.length>0?m.textContent=a.files[0].name:m.textContent=r}),i(this,s,a,m),this}G(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"textarea",{},n)),this}B(t,e,n=!1){const i=document.getElementById(t.replace(/^#/,""));i&&(i instanceof HTMLInputElement?i.value=e:n?i.textContent=e:i.innerHTML=e)}W(t,e){let n,i=!1,o=0,r=null,s=0,a=0,m=0,l=0;if(t=document.querySelector("#"==t?.[0]?t:"#"+t),e=document.querySelector("#"==e?.[0]?e:"#"+e),!t||!e)return void this.P(`Can not drag! ${t?"":"moveMe"} ${t||e?"":"and "}${e?"":"iMoveThings "}was not found!`);const c=()=>{if(i){const e=Math.abs(s-m),n=Math.abs(a-l);(e>.5||n>.5)&&(s=m,a=l,t.style.transform=`translate(${s}px, ${a}px)`,t.style.left="0px",t.style.top="0px",t.style.right=""),r=requestAnimationFrame(c)}};let u=null;const d=(d,h)=>{i=!0,u=t.getBoundingClientRect(),n=d-u.left,o=h-u.top;const b=window.getComputedStyle(t).transform;if(b&&"none"!==b){const t=new DOMMatrix(b);s=t.m41,a=t.m42}else s=u.left,a=u.top;m=s,l=a,document.body.style.userSelect="none",e.classList.add("dragging"),r&&cancelAnimationFrame(r),c()},h=()=>{i=!1,r&&(cancelAnimationFrame(r),r=null),document.body.style.userSelect="",e.classList.remove("dragging")};e.addEventListener("mousedown",function(t){t.preventDefault(),d(t.clientX,t.clientY)}),e.addEventListener("touchstart",function(t){const e=t?.touches?.[0];e&&(d(e.clientX,e.clientY),t.preventDefault())},{passive:!1}),document.addEventListener("mousemove",function(t){i&&u&&(m=t.clientX-n,l=t.clientY-o)},{passive:!0}),document.addEventListener("touchmove",function(t){if(i&&u){const e=t?.touches?.[0];if(!e)return;m=e.clientX-n,l=e.clientY-o,t.preventDefault()}},{passive:!1}),document.addEventListener("mouseup",h),document.addEventListener("touchend",h),document.addEventListener("touchcancel",h)}_(t){(0,console.info)(`${this.name}: ${t}`),this.B(this.i,"Status: "+t,!0)}P(t){(0,console.error)(`${this.name}: ${t}`),this.B(this.i,"Error: "+t,!0)}};function s(...t){(0,console.error)(...t)}function a(t,e){if(0===t)return e[0];let n="";const i=e.length;for(;t>0;)n=e[t%i]+n,t=Math.floor(t/i);return n}function m(t){let e="";for(let n=0;n"transparent"!==(t?.name||"").toLowerCase()&&Array.isArray(t?.rgb)).map(t=>`${t.rgb[0]},${t.rgb[1]},${t.rgb[2]}`));const l="222,250,206";this.Y.add(l),this.K=new Map(m.filter(t=>Array.isArray(t?.rgb)).map(t=>[`${t.rgb[0]},${t.rgb[1]},${t.rgb[2]}`,{id:t.id,premium:!!t.premium,name:t.name}]));try{const t=m.find(t=>"transparent"===(t?.name||"").toLowerCase());t&&Array.isArray(t.rgb)&&this.K.set(l,{id:t.id,premium:!!t.premium,name:t.name})}catch(t){}}async Z(){const t=await createImageBitmap(this.file),e=t.width,n=t.height,i=e*n;this.J=i;try{const i=new OffscreenCanvas(e,n).getContext("2d",{tt:!0});i.imageSmoothingEnabled=!1,i.clearRect(0,0,e,n),i.drawImage(t,0,0);const o=i.getImageData(0,0,e,n).data;let r=0,s=0;const a=new Map;for(let t=0;t0){for(const t in e){const n=t,i=e[t];if(e.hasOwnProperty(t)){const t=n.split(" "),o=Number(t?.[0]),r=t?.[1]||"0",s=i.name||`Template ${o||""}`,a=i.tiles,m={};let c=0;const u=new Map;for(const t in a)if(a.hasOwnProperty(t)){const e=l(a[t]),n=new Blob([e],{type:"image/png"}),i=await createImageBitmap(n);m[t]=i;try{const t=i.width,e=i.height,n=new OffscreenCanvas(t,e).getContext("2d",{tt:!0});n.imageSmoothingEnabled=!1,n.clearRect(0,0,t,e),n.drawImage(i,0,0);const o=n.getImageData(0,0,t,e).data;for(let n=0;n{d.q?.add(t.split(",").slice(0,2).join(","))})}catch(t){}try{const t=e?.[n]?.palette;if(t)for(const[e,n]of Object.entries(t))d.X[e]?d.X[e].enabled=!!n?.enabled:d.X[e]={count:n?.count||0,enabled:!!n?.enabled}}catch(t){}d.H=n,this.rt.push(d)}}try{const t=document.querySelector("#bm-9");t&&(t.style.display=""),window.postMessage({source:"blue-marble",st:"bm-b"},"*")}catch(t){}}},h=new WeakSet,b=async function(t=navigator.userAgent){return(t=t||"").includes("OPR/")||t.includes("Opera")?"Opera":t.includes("Edg/")?"Edge":t.includes("Vivaldi")?"Vivaldi":t.includes("YaBrowser")?"Yandex":t.includes("Kiwi")?"Kiwi":t.includes("Brave")?"Brave":t.includes("Firefox/")?"Firefox":t.includes("Chrome/")?"Chrome":t.includes("Safari/")?"Safari":navigator.brave&&"function"==typeof navigator.brave.isBrave&&await navigator.brave.isBrave()?"Brave":"Unknown"},p=function(t=navigator.userAgent){return/Windows NT 11/i.test(t=t||"")?"Windows 11":/Windows NT 10/i.test(t)?"Windows 10":/Windows NT 6\.3/i.test(t)?"Windows 8.1":/Windows NT 6\.2/i.test(t)?"Windows 8":/Windows NT 6\.1/i.test(t)?"Windows 7":/Windows NT 6\.0/i.test(t)?"Windows Vista":/Windows NT 5\.1|Windows XP/i.test(t)?"Windows XP":/Mac OS X 10[_\.]15/i.test(t)?"macOS Catalina":/Mac OS X 10[_\.]14/i.test(t)?"macOS Mojave":/Mac OS X 10[_\.]13/i.test(t)?"macOS High Sierra":/Mac OS X 10[_\.]12/i.test(t)?"macOS Sierra":/Mac OS X 10[_\.]11/i.test(t)?"OS X El Capitan":/Mac OS X 10[_\.]10/i.test(t)?"OS X Yosemite":/Mac OS X 10[_\.]/i.test(t)?"macOS":/Android/i.test(t)?"Android":/iPhone|iPad|iPod/i.test(t)?"iOS":/Linux/i.test(t)?"Linux":"Unknown"};var w=GM_info.script.name.toString(),y=GM_info.script.version.toString();!function(t){const e=document.createElement("script");e.setAttribute("bm-E",w),e.setAttribute("bm-B","color: cornflowerblue;"),e.textContent=`(${t})();`,document.documentElement?.appendChild(e),e.remove()}(()=>{const t=document.currentScript,e=t?.getAttribute("bm-E")||"Blue Marble",n=t?.getAttribute("bm-B")||"",i=new Map;window.addEventListener("message",t=>{const{source:o,endpoint:r,blobID:s,blobData:a,blink:m}=t.data;if(Date.now(),"blue-marble"==o&&s&&a&&!r){const t=i.get(s);"function"==typeof t?t(a):function(...t){(0,console.warn)(...t)}(`%c${e}%c: Attempted to retrieve a blob (%s) from queue, but the blobID was not a function! Skipping...`,n,"",s),i.delete(s)}});const o=window.fetch;window.fetch=async function(...t){const e=await o.apply(this,t),n=e.clone(),r=(t[0]instanceof Request?t[0]?.url:t[0])||"ignore",s=n.headers.get("content-type")||"";if(s.includes("application/json"))n.json().then(t=>{window.postMessage({source:"blue-marble",endpoint:r,jsonData:t},"*")}).catch(t=>{});else if(s.includes("image/")&&!r.includes("openfreemap")&&!r.includes("maps")){const t=Date.now(),e=await n.blob();return new Promise(o=>{const s=crypto.randomUUID();i.set(s,t=>{o(new Response(t,{headers:n.headers,status:n.status,statusText:n.statusText}))}),window.postMessage({source:"blue-marble",endpoint:r,blobID:s,blobData:e,blink:t})}).catch(t=>{Date.now()})}return e}});var v=GM_getResourceText("CSS-BM-File");GM_addStyle(v);var x=document.createElement("link");x.href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap",x.rel="preload",x.as="style",x.onload=function(){this.onload=null,this.rel="stylesheet"},document.head?.appendChild(x),new class{constructor(){this.lt=null,this.ct=null,this.ut="#bm-h"}dt(t){return this.ct=t,this.lt=new MutationObserver(t=>{for(const e of t)for(const t of e.addedNodes)t instanceof HTMLElement&&t.matches?.(this.ut)}),this}ht(){return this.lt}observe(t,e=!1,n=!1){t.observe(this.ct,{childList:e,subtree:n})}};var $=new r(w,y),S=(new r(w,y),new class{constructor(t,e,n){i(this,c),this.name=t,this.version=e,this.o=n,this.bt="1.0.0",this.gt=null,this.ft="!#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~",this.A=1e3,this.ot=3,this.wt=null,this.yt=null,this.vt="bm-C",this.xt="div#map canvas.maplibregl-canvas",this.$t=null,this.St="",this.rt=[],this.it=null,this.Mt=!0,this.Ot=new Map}Ct(){if(document.body.contains(this.wt))return this.wt;document.getElementById(this.vt)?.remove();const t=document.querySelector(this.xt),e=document.createElement("canvas");return e.id=this.vt,e.className="maplibregl-canvas",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.height=t?.clientHeight*(window.devicePixelRatio||1)+"px",e.style.width=t?.clientWidth*(window.devicePixelRatio||1)+"px",e.height=t?.clientHeight*(window.devicePixelRatio||1),e.width=t?.clientWidth*(window.devicePixelRatio||1),e.style.zIndex="8999",e.style.pointerEvents="none",t?.parentElement?.appendChild(e),this.wt=e,window.addEventListener("move",this.Dt),window.addEventListener("zoom",this.Tt),window.addEventListener("resize",this.kt),this.wt}async Nt(){return{whoami:this.name.replace(" ",""),scriptVersion:this.version,schemaVersion:this.bt,templates:{}}}async Bt(t,e,n){this.it||(this.it=await this.Nt()),this.o._(`Creating template at ${n.join(", ")}...`);const i=new f({displayName:e,F:0,j:a(this.gt||0,this.ft),file:t,coords:n}),{et:r,nt:s}=await i.Z(this.A);i.R=r;const m=`${i.F} ${i.j}`;i.H=m,this.it.templates[m]={name:i.displayName,coords:n.join(", "),enabled:!0,tiles:s,palette:i.X},this.rt=[],this.rt.push(i);const l=(new Intl.NumberFormat).format(i.J);this.o._(`Template created at ${n.join(", ")}! Total pixels: ${l}`);try{const t=document.querySelector("#bm-9");t&&(t.style.display=""),window.postMessage({source:"blue-marble",st:"bm-b"},"*")}catch(t){}await o(this,c,u).call(this)}It(){}async Lt(){this.it||(this.it=await this.Nt())}async Gt(t,e){if(!this.Mt)return t;const n=this.A*this.ot;e=e[0].toString().padStart(4,"0")+","+e[1].toString().padStart(4,"0");const i=this.rt;if(i.sort((t,e)=>t.F-e.F),!i.some(t=>!!t?.R&&(t.q&&t.q.size>0?t.q.has(e):Object.keys(t.R).some(t=>t.startsWith(e)))))return t;const o=i.map(t=>{const n=Object.keys(t.R).filter(t=>t.startsWith(e));if(0===n.length)return null;const i=n.map(e=>{const n=e.split(",");return{Wt:t.R[e],Pt:[n[0],n[1]],_t:[n[2],n[3]]}});return i?.[0]}).filter(Boolean),r=o?.length||0;let s=0,a=0,m=0;const l=await createImageBitmap(t),c=new OffscreenCanvas(n,n),u=c.getContext("2d");u.imageSmoothingEnabled=!1,u.beginPath(),u.rect(0,0,n,n),u.clip(),u.clearRect(0,0,n,n),u.drawImage(l,0,0,n,n);let d=null;try{d=u.getImageData(0,0,n,n).data}catch(t){}for(const t of o){if(d)try{const e=t.Wt.width,i=t.Wt.height,o=new OffscreenCanvas(e,i).getContext("2d",{tt:!0});o.imageSmoothingEnabled=!1,o.clearRect(0,0,e,i),o.drawImage(t.Wt,0,0);const r=o.getImageData(0,0,e,i).data,l=Number(t._t[0])*this.ot,c=Number(t._t[1])*this.ot;for(let t=0;t=n||u>=n)continue;const h=4*(t*e+i),b=r[h],p=r[h+1],g=r[h+2];if(r[h+3]<64){try{const t=this.rt?.[0],e=4*(u*n+o),i=d[e],r=d[e+1],s=d[e+2],m=d[e+3],l=`${i},${r},${s}`,c=!!t?.Y&&t.Y.has(l);m>=64&&c&&a++}catch(t){}continue}try{const t=this.rt?.[0];if(t?.Y&&!t.Y.has(`${b},${p},${g}`))continue}catch(t){}m++;const f=4*(u*n+o),w=d[f],y=d[f+1],v=d[f+2];d[f+3]<64||(w===b&&y===p&&v===g?s++:a++)}}catch(t){}try{const e=this.rt?.[0],n=e?.X||{};if(Object.values(n).some(t=>!1===t?.enabled)){const i=t.Wt.width,o=t.Wt.height,r=new OffscreenCanvas(i,o),s=r.getContext("2d",{tt:!0});s.imageSmoothingEnabled=!1,s.clearRect(0,0,i,o),s.drawImage(t.Wt,0,0);const a=s.getImageData(0,0,i,o),m=a.data;for(let t=0;t0){const t=e;this.Ot.set(t,{Et:s,required:m,Ft:a});let n=0,i=0,o=0;for(const t of this.Ot.values())n+=t.Et||0,i+=t.required||0,o+=t.Ft||0;const l=this.rt.reduce((t,e)=>t+(e.U||e.J||0),0),c=l>0?l:i,u=(new Intl.NumberFormat).format(n),d=(new Intl.NumberFormat).format(c),h=(new Intl.NumberFormat).format(c-n);this.o._(`Displaying ${r} template${1==r?"":"s"}.\nPainted ${u} / ${d} • Wrong ${h}`)}else this.o._(`Displaying ${r} templates.`);return await c.convertToBlob({type:"image/png"})}jt(t){"BlueMarble"==t?.whoami&&o(this,c,d).call(this,t)}Rt(t){this.Mt=t}}(w,y,$)),M=new class{constructor(t){i(this,h),this.At=t,this.Jt=!1,this.Ut=[],this.Vt=[]}Xt(t){window.addEventListener("message",async e=>{const n=e.data,i=n.jsonData;if(!n||"blue-marble"!==n.source)return;if(!n.endpoint)return;const o=n.endpoint?.split("?")[0].split("/").filter(t=>t&&isNaN(Number(t))).filter(t=>t&&!t.includes(".")).pop();switch(o){case"me":if(i.status&&"2"!=i.status?.toString()[0])return void t.P("You are not logged in!\nCould not fetch userdata.");const e=Math.ceil(Math.pow(Math.floor(i.level)*Math.pow(30,.65),1/.65)-i.pixelsPainted);i.id||i.id,this.At.gt=i.id,t.B("bm-u",`Username: ${function(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}(i.name)}`),t.B("bm-p",`Droplets: ${(new Intl.NumberFormat).format(i.droplets)}`),t.B("bm-i",`Next level in ${(new Intl.NumberFormat).format(e)} pixel${1==e?"":"s"}`);break;case"pixel":const o=n.endpoint.split("?")[0].split("/").filter(t=>t&&!isNaN(Number(t))),a=new URLSearchParams(n.endpoint.split("?")[1]),m=[a.get("x"),a.get("y")];if(this.Ut.length&&(!o.length||!m.length))return void t.P("Coordinates are malformed!\nDid you try clicking the canvas first?");this.Ut=[...o,...m];const l=(r=o,s=m,[parseInt(r[0])%4*1e3+parseInt(s[0]),parseInt(r[1])%4*1e3+parseInt(s[1])]),c=document.querySelectorAll("span");for(const t of c)if(t.textContent.trim().includes(`${l[0]}, ${l[1]}`)){let e=document.querySelector("#bm-h");const n=`(Tl X: ${o[0]}, Tl Y: ${o[1]}, Px X: ${m[0]}, Px Y: ${m[1]})`;e?e.textContent=n:(e=document.createElement("span"),e.id="bm-h",e.textContent=n,e.style="margin-left: calc(var(--spacing)*3); font-size: small;",t.parentNode.parentNode.parentNode.insertAdjacentElement("afterend",e))}break;case"tiles":let u=n.endpoint.split("/");u=[parseInt(u[u.length-2]),parseInt(u[u.length-1].replace(".png",""))];const d=n.blobID,h=n.blobData,b=await this.At.Gt(h,u);window.postMessage({source:"blue-marble",blobID:d,blobData:b,blink:n.blink});break;case"robots":this.Jt="false"==i.userscript?.toString().toLowerCase()}var r,s})}async qt(t){let e=GM_getValue("bmUserSettings","{}");if(e=JSON.parse(e),!e||!e.telemetry||!e.uuid)return;const n=navigator.userAgent;let i=await o(this,h,b).call(this,n),r=o(this,h,p).call(this,n);GM_xmlhttpRequest({method:"POST",url:"https://telemetry.thebluecorner.net/heartbeat",headers:{"Content-Type":"application/json"},data:JSON.stringify({uuid:e.uuid,version:t,browser:i,os:r}),onload:t=>{200!==t.status&&s("Failed to send heartbeat:",t.statusText)},onerror:t=>{s("Error sending heartbeat:",t)}})}}(S);$.u(M);var O=JSON.parse(GM_getValue("bmTemplates","{}"));S.jt(O);var C=JSON.parse(GM_getValue("bmUserSettings","{}"));if(0==Object.keys(C).length){const t=crypto.randomUUID();GM.setValue("bmUserSettings",JSON.stringify({uuid:t}))}if(setInterval(()=>M.qt(y),18e5),null==C?.telemetry||C?.telemetry>1){const t=new r(w,y);t.u(M),t.v({id:"bm-d",style:"top: 0px; left: 0px; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; z-index: 9999;"}).v({id:"bm-7",style:"display: flex; flex-direction: column; align-items: center;"}).v({id:"bm-1",style:"margin-top: 10%;"}).O(1,{textContent:`${w} Telemetry`}).h().h().v({id:"bm-e",style:"max-width: 50%; overflow-y: auto; max-height: 80vh;"}).C().h().D().h().v({style:"width: fit-content; margin: auto; text-align: center;"}).k({id:"bm-8",textContent:"More Information"},(t,e)=>{e.onclick=()=>{window.open("https://github.com/SwingTheVine/Wplace-TelemetryServer#telemetry-data","_blank","noopener noreferrer")}}).h().h().D().h().v({style:"width: fit-content; margin: auto; text-align: center;"}).k({id:"bm-5",textContent:"Enable Telemetry",style:"margin-right: 2ch;"},(t,e)=>{e.onclick=()=>{const t=JSON.parse(GM_getValue("bmUserSettings","{}"));t.telemetry=1,GM.setValue("bmUserSettings",JSON.stringify(t));const e=document.getElementById("bm-d");e&&(e.style.display="none")}}).h().k({id:"bm-2",textContent:"Disable Telemetry"},(t,e)=>{e.onclick=()=>{const t=JSON.parse(GM_getValue("bmUserSettings","{}"));t.telemetry=0,GM.setValue("bmUserSettings",JSON.stringify(t));const e=document.getElementById("bm-d");e&&(e.style.display="none")}}).h().h().D().h().$({textContent:"We collect anonymous telemetry data such as your browser, OS, and script version to make the experience better for everyone. The data is never shared personally. The data is never sold. You can turn this off by pressing the 'Disable' button, but keeping it on helps us improve features and reliability faster. Thank you for supporting the Blue Marble!"}).h().$({textContent:'You can disable telemetry by pressing the "Disable" button below.'}).h().h().h().p(document.body)}!function(){let t=!1,e={};try{e=JSON.parse(GM_getValue("bmCoords","{}"))||{}}catch(t){e={}}const n=()=>{try{const t=Number(document.querySelector("#bm-v")?.value||""),e=Number(document.querySelector("#bm-w")?.value||""),n={Ht:t,Yt:e,px:Number(document.querySelector("#bm-x")?.value||""),zt:Number(document.querySelector("#bm-y")?.value||"")};GM.setValue("bmCoords",JSON.stringify(n))}catch(t){}};$.v({id:"bm-A",style:"top: 10px; right: 75px;"}).v({id:"bm-j"}).v({id:"bm-z"}).h().M({alt:"Blue Marble Icon - Click to minimize/maximize",src:"https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/dist/assets/Favicon.png",style:"cursor: pointer;"},(e,n)=>{n.addEventListener("click",()=>{t=!t;const i=document.querySelector("#bm-A"),o=document.querySelector("#bm-j"),r=document.querySelector("#bm-z"),s=document.querySelector("#bm-k"),a=document.querySelector("#bm-q"),m=document.querySelector("#bm-r"),l=document.querySelector("#bm-s"),c=document.querySelector("#bm-l"),u=document.querySelectorAll("#bm-k input");t||(i.style.width="auto",i.style.maxWidth="300px",i.style.minWidth="200px",i.style.padding="10px"),["#bm-A h1","#bm-f","#bm-A hr","#bm-c > *:not(#bm-k)","#bm-a","#bm-6",`#${e.i}`,"#bm-9"].forEach(e=>{document.querySelectorAll(e).forEach(e=>{e.style.display=t?"none":""})}),t?(s&&(s.style.display="none"),a&&(a.style.display="none"),m&&(m.style.display="none"),l&&(l.style.display="none"),c&&(c.style.display="none"),u.forEach(t=>{t.style.display="none"}),i.style.width="60px",i.style.height="76px",i.style.maxWidth="60px",i.style.minWidth="60px",i.style.padding="8px",n.style.marginLeft="3px",o.style.textAlign="center",o.style.margin="0",o.style.marginBottom="0",r&&(r.style.display="",r.style.marginBottom="0.25em")):(s&&(s.style.display="",s.style.flexDirection="",s.style.justifyContent="",s.style.alignItems="",s.style.gap="",s.style.textAlign="",s.style.margin=""),a&&(a.style.display=""),m&&(m.style.display="",m.style.marginTop=""),l&&(l.style.display="",l.style.marginTop=""),c&&(c.style.display="",c.style.marginTop=""),u.forEach(t=>{t.style.display=""}),n.style.marginLeft="",i.style.padding="10px",o.style.textAlign="",o.style.margin="",o.style.marginBottom="",r&&(r.style.marginBottom="0.5em"),i.style.width="",i.style.height=""),n.alt=t?"Blue Marble Icon - Minimized (Click to maximize)":"Blue Marble Icon - Maximized (Click to minimize)"})}).h().O(1,{textContent:w}).h().h().C().h().v({id:"bm-f"}).$({id:"bm-u",textContent:"Username:"}).h().$({id:"bm-p",textContent:"Droplets:"}).h().$({id:"bm-i",textContent:"Next level in..."}).h().h().C().h().v({id:"bm-c"}).v({id:"bm-k"}).k({id:"bm-q",className:"bm-D",style:"margin-top: 0;",innerHTML:''},(t,e)=>{e.onclick=()=>{const e=t.t?.Ut;e?.[0]?(t.B("bm-v",e?.[0]||""),t.B("bm-w",e?.[1]||""),t.B("bm-x",e?.[2]||""),t.B("bm-y",e?.[3]||""),n()):t.P("Coordinates are malformed! Did you try clicking on the canvas first?")}}).h().I({type:"number",id:"bm-v",placeholder:"Tl X",min:0,max:2047,step:1,required:!0,value:e.Ht??""},(t,e)=>{e.addEventListener("paste",t=>{let e=(t.clipboardData||window.clipboardData).getData("text").split(" ").filter(t=>t).map(Number).filter(t=>!isNaN(t));if(4!==e.length)return;let n=(i=document,coords=[],coords.push(i.querySelector("#bm-v")),coords.push(i.querySelector("#bm-w")),coords.push(i.querySelector("#bm-x")),coords.push(i.querySelector("#bm-y")),coords);var i;for(let t=0;tn();e.addEventListener("input",i),e.addEventListener("change",i)}).h().I({type:"number",id:"bm-w",placeholder:"Tl Y",min:0,max:2047,step:1,required:!0,value:e.Yt??""},(t,e)=>{const i=()=>n();e.addEventListener("input",i),e.addEventListener("change",i)}).h().I({type:"number",id:"bm-x",placeholder:"Px X",min:0,max:2047,step:1,required:!0,value:e.px??""},(t,e)=>{const i=()=>n();e.addEventListener("input",i),e.addEventListener("change",i)}).h().I({type:"number",id:"bm-y",placeholder:"Px Y",min:0,max:2047,step:1,required:!0,value:e.zt??""},(t,e)=>{const i=()=>n();e.addEventListener("input",i),e.addEventListener("change",i)}).h().h().v({id:"bm-9",style:"max-height: 140px; overflow: auto; border: 1px solid rgba(255,255,255,0.1); padding: 4px; border-radius: 4px; display: none;"}).v({style:"display: flex; gap: 6px; margin-bottom: 6px;"}).k({id:"bm-3",textContent:"Enable All"},(t,e)=>{e.onclick=()=>{const e=S.rt[0];e?.X&&(Object.values(e.X).forEach(t=>t.enabled=!0),buildColorFilterList(),t._("Enabled all colors"))}}).h().k({id:"bm-0",textContent:"Disable All"},(t,e)=>{e.onclick=()=>{const e=S.rt[0];e?.X&&(Object.values(e.X).forEach(t=>t.enabled=!1),buildColorFilterList(),t._("Disabled all colors"))}}).h().h().v({id:"bm-g"}).h().h().L({id:"bm-a",textContent:"Upload Template",accept:"image/png, image/jpeg, image/webp, image/bmp, image/gif"}).h().v({id:"bm-4"}).k({id:"bm-s",textContent:"Enable"},(t,e)=>{e.onclick=()=>{t.t?.At?.Rt(!0),t._("Enabled templates!")}}).h().k({id:"bm-r",textContent:"Create"},(t,e)=>{e.onclick=()=>{const e=document.querySelector("#bm-a"),n=document.querySelector("#bm-v");if(!n.checkValidity())return n.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");const i=document.querySelector("#bm-w");if(!i.checkValidity())return i.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");const o=document.querySelector("#bm-x");if(!o.checkValidity())return o.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");const r=document.querySelector("#bm-y");if(!r.checkValidity())return r.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");e?.files[0]?(S.Bt(e.files[0],e.files[0]?.name.replace(/\.[^/.]+$/,""),[Number(n.value),Number(i.value),Number(o.value),Number(r.value)]),t._("Drew to canvas!")):t.P("No file selected!")}}).h().k({id:"bm-l",textContent:"Disable"},(t,e)=>{e.onclick=()=>{t.t?.At?.Rt(!1),t._("Disabled templates!")}}).h().h().G({id:$.i,placeholder:`Status: Sleeping...\nVersion: ${y}`,readOnly:!0}).h().v({id:"bm-6"}).v().k({id:"bm-m",className:"bm-D",innerHTML:"🎨",title:"Template Color Converter"},(t,e)=>{e.addEventListener("click",()=>{window.open("https://pepoafonso.github.io/color_converter_wplace/","_blank","noopener noreferrer")})}).h().k({id:"bm-n",className:"bm-D",innerHTML:"🌐",title:"Official Blue Marble Website"},(t,e)=>{e.addEventListener("click",()=>{window.open("https://bluemarble.camilledaguin.fr/","_blank","noopener noreferrer")})}).h().h().S({textContent:"Made by SwingTheVine",style:"margin-top: auto;"}).h().h().h().p(document.body),window.buildColorFilterList=function(){const t=document.querySelector("#bm-g"),e=S.rt?.[0];if(!t||!e?.X)return void(t&&(t.innerHTML="No template colors to display."));t.innerHTML="";const n=Object.entries(e.X).sort((t,e)=>e[1].count-t[1].count);for(const[e,i]of n){const[n,o,r]=e.split(",").map(Number),s=document.createElement("div");s.style.display="flex",s.style.alignItems="center",s.style.gap="8px",s.style.margin="4px 0";const a=document.createElement("div");a.style.width="14px",a.style.height="14px",a.style.border="1px solid rgba(255,255,255,0.5)",a.style.background=`rgb(${n},${o},${r})`;const m=document.createElement("span");m.style.fontSize="12px";let l=`${i.count.toLocaleString()}`;try{const t=S.rt?.[0]?.K?.get(e);if(t&&"number"==typeof t.id){const e=t?.name||`rgb(${n},${o},${r})`,i=t.premium?"★ ":"";l=`#${t.id} ${i}${e} • ${l}`}}catch(t){}m.textContent=l;const c=document.createElement("input");c.type="checkbox",c.checked=!!i.enabled,c.addEventListener("change",()=>{i.enabled=c.checked,$._(`${c.checked?"Enabled":"Disabled"} ${e}`);try{const t=S.rt?.[0],e=t?.H;t&&e&&S.it?.templates?.[e]&&(S.it.templates[e].palette=t.X,GM.setValue("bmTemplates",JSON.stringify(S.it)))}catch(t){}}),s.appendChild(c),s.appendChild(a),s.appendChild(m),t.appendChild(s)}},window.addEventListener("message",t=>{if("bm-b"===t?.data?.st)try{buildColorFilterList()}catch(t){}}),setTimeout(()=>{try{if(S.rt?.length>0){const t=document.querySelector("#bm-9");t&&(t.style.display=""),buildColorFilterList()}}catch(t){}},0)}(),$.W("#bm-A","#bm-z"),M.Xt($),new MutationObserver((t,e)=>{const n=document.querySelector("#color-1");if(!n)return;let i=document.querySelector("#bm-t");if(!i){i=document.createElement("button"),i.id="bm-t",i.textContent="Move ↑",i.className="btn btn-soft",i.onclick=function(){const t=this.parentNode.parentNode.parentNode.parentNode,e="Move ↑"==this.textContent;t.parentNode.className=t.parentNode.className.replace(e?"bottom":"top",e?"top":"bottom"),t.style.borderTopLeftRadius=e?"0px":"var(--radius-box)",t.style.borderTopRightRadius=e?"0px":"var(--radius-box)",t.style.borderBottomLeftRadius=e?"var(--radius-box)":"0px",t.style.borderBottomRightRadius=e?"var(--radius-box)":"0px",this.textContent=e?"Move ↓":"Move ↑"};const t=n.parentNode.parentNode.parentNode.parentNode.querySelector("h2");t.parentNode?.appendChild(i)}}).observe(document.body,{childList:!0,subtree:!0}),function(...t){(0,console.log)(...t)}(`%c${w}%c (${y}) userscript has loaded!`,"color: cornflowerblue;","")})(); \ No newline at end of file +(()=>{var t,e,n=t=>{throw TypeError(t)},i=(t,e,i)=>e.has(t)?n("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),o=(t,e,i)=>(((t,e)=>{e.has(t)||n("Cannot access private method")})(t,e),i),r=class{constructor(e,n){i(this,t),this.name=e,this.version=n,this.t=null,this.i="bm-o",this.o=null,this.m=null,this.l=[]}u(t){this.t=t}h(){return this.l.length>0&&(this.m=this.l.pop()),this}p(t){t?.appendChild(this.o),this.o=null,this.m=null,this.l=[]}v(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"div",{},n)),this}$(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"p",{},n)),this}S(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"small",{},n)),this}M(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"img",{},n)),this}O(n,i={},r=()=>{}){return r(this,o(this,t,e).call(this,"h"+n,{},i)),this}C(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"hr",{},n)),this}D(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"br",{},n)),this}T(n={},i=()=>{}){const r=o(this,t,e).call(this,"label",{textContent:n.textContent??""});delete n.textContent;const s=o(this,t,e).call(this,"input",{type:"checkbox"},n);return r.insertBefore(s,r.firstChild),this.h(),i(this,r,s),this}k(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"button",{},n)),this}N(n={},i=()=>{}){const r=n.title??n.textContent??"Help: No info";delete n.textContent,n.title=`Help: ${r}`;const s={textContent:"?",className:"bm-D",onclick:()=>{this.B(this.i,r)}};return i(this,o(this,t,e).call(this,"button",s,n)),this}I(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"input",{},n)),this}L(n={},i=()=>{}){const r=n.textContent??"";delete n.textContent;const s=o(this,t,e).call(this,"div"),a=o(this,t,e).call(this,"input",{type:"file",style:"display: none !important; visibility: hidden !important; position: absolute !important; left: -9999px !important; width: 0 !important; height: 0 !important; opacity: 0 !important;"},n);this.h();const m=o(this,t,e).call(this,"button",{textContent:r});return this.h(),this.h(),a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),m.addEventListener("click",()=>{a.click()}),a.addEventListener("change",()=>{m.style.maxWidth=`${m.offsetWidth}px`,a.files.length>0?m.textContent=a.files[0].name:m.textContent=r}),i(this,s,a,m),this}G(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"textarea",{},n)),this}B(t,e,n=!1){const i=document.getElementById(t.replace(/^#/,""));i&&(i instanceof HTMLInputElement?i.value=e:n?i.textContent=e:i.innerHTML=e)}W(t,e){let n,i=!1,o=0,r=null,s=0,a=0,m=0,l=0;if(t=document.querySelector("#"==t?.[0]?t:"#"+t),e=document.querySelector("#"==e?.[0]?e:"#"+e),!t||!e)return void this.P(`Can not drag! ${t?"":"moveMe"} ${t||e?"":"and "}${e?"":"iMoveThings "}was not found!`);const c=()=>{if(i){const e=Math.abs(s-m),n=Math.abs(a-l);(e>.5||n>.5)&&(s=m,a=l,t.style.transform=`translate(${s}px, ${a}px)`,t.style.left="0px",t.style.top="0px",t.style.right=""),r=requestAnimationFrame(c)}};let u=null;const d=(d,h)=>{i=!0,u=t.getBoundingClientRect(),n=d-u.left,o=h-u.top;const b=window.getComputedStyle(t).transform;if(b&&"none"!==b){const t=new DOMMatrix(b);s=t.m41,a=t.m42}else s=u.left,a=u.top;m=s,l=a,document.body.style.userSelect="none",e.classList.add("dragging"),r&&cancelAnimationFrame(r),c()},h=()=>{i=!1,r&&(cancelAnimationFrame(r),r=null),document.body.style.userSelect="",e.classList.remove("dragging")};e.addEventListener("mousedown",function(t){t.preventDefault(),d(t.clientX,t.clientY)}),e.addEventListener("touchstart",function(t){const e=t?.touches?.[0];e&&(d(e.clientX,e.clientY),t.preventDefault())},{passive:!1}),document.addEventListener("mousemove",function(t){i&&u&&(m=t.clientX-n,l=t.clientY-o)},{passive:!0}),document.addEventListener("touchmove",function(t){if(i&&u){const e=t?.touches?.[0];if(!e)return;m=e.clientX-n,l=e.clientY-o,t.preventDefault()}},{passive:!1}),document.addEventListener("mouseup",h),document.addEventListener("touchend",h),document.addEventListener("touchcancel",h)}_(t){(0,console.info)(`${this.name}: ${t}`),this.B(this.i,"Status: "+t,!0)}P(t){(0,console.error)(`${this.name}: ${t}`),this.B(this.i,"Error: "+t,!0)}};function s(...t){(0,console.error)(...t)}function a(t,e){if(0===t)return e[0];let n="";const i=e.length;for(;t>0;)n=e[t%i]+n,t=Math.floor(t/i);return n}function m(t){let e="";for(let n=0;n"transparent"!==(t?.name||"").toLowerCase()&&Array.isArray(t?.rgb)).map(t=>`${t.rgb[0]},${t.rgb[1]},${t.rgb[2]}`));const l="222,250,206";this.Y.add(l),this.K=new Map(m.filter(t=>Array.isArray(t?.rgb)).map(t=>[`${t.rgb[0]},${t.rgb[1]},${t.rgb[2]}`,{id:t.id,premium:!!t.premium,name:t.name}]));try{const t=m.find(t=>"transparent"===(t?.name||"").toLowerCase());t&&Array.isArray(t.rgb)&&this.K.set(l,{id:t.id,premium:!!t.premium,name:t.name})}catch(t){}}async Z(){const t=await createImageBitmap(this.file),e=t.width,n=t.height,i=e*n;this.J=i;try{const i=new OffscreenCanvas(e,n).getContext("2d",{tt:!0});i.imageSmoothingEnabled=!1,i.clearRect(0,0,e,n),i.drawImage(t,0,0);const o=i.getImageData(0,0,e,n).data;let r=0,s=0;const a=new Map;for(let t=0;t0){for(const t in e){const n=t,i=e[t];if(e.hasOwnProperty(t)){const t=n.split(" "),o=Number(t?.[0]),r=t?.[1]||"0",s=i.name||`Template ${o||""}`,a=i.tiles,m={};let c=0;const u=new Map;for(const t in a)if(a.hasOwnProperty(t)){const e=l(a[t]),n=new Blob([e],{type:"image/png"}),i=await createImageBitmap(n);m[t]=i;try{const t=i.width,e=i.height,n=new OffscreenCanvas(t,e).getContext("2d",{tt:!0});n.imageSmoothingEnabled=!1,n.clearRect(0,0,t,e),n.drawImage(i,0,0);const o=n.getImageData(0,0,t,e).data;for(let n=0;n{d.q?.add(t.split(",").slice(0,2).join(","))})}catch(t){}try{const t=e?.[n]?.palette;if(t)for(const[e,n]of Object.entries(t))d.X[e]?d.X[e].enabled=!!n?.enabled:d.X[e]={count:n?.count||0,enabled:!!n?.enabled}}catch(t){}d.H=n,this.rt.push(d)}}try{const t=document.querySelector("#bm-9");t&&(t.style.display=""),window.postMessage({source:"blue-marble",st:"bm-b"},"*")}catch(t){}}},h=new WeakSet,b=async function(t=navigator.userAgent){return(t=t||"").includes("OPR/")||t.includes("Opera")?"Opera":t.includes("Edg/")?"Edge":t.includes("Vivaldi")?"Vivaldi":t.includes("YaBrowser")?"Yandex":t.includes("Kiwi")?"Kiwi":t.includes("Brave")?"Brave":t.includes("Firefox/")?"Firefox":t.includes("Chrome/")?"Chrome":t.includes("Safari/")?"Safari":navigator.brave&&"function"==typeof navigator.brave.isBrave&&await navigator.brave.isBrave()?"Brave":"Unknown"},p=function(t=navigator.userAgent){return/Windows NT 11/i.test(t=t||"")?"Windows 11":/Windows NT 10/i.test(t)?"Windows 10":/Windows NT 6\.3/i.test(t)?"Windows 8.1":/Windows NT 6\.2/i.test(t)?"Windows 8":/Windows NT 6\.1/i.test(t)?"Windows 7":/Windows NT 6\.0/i.test(t)?"Windows Vista":/Windows NT 5\.1|Windows XP/i.test(t)?"Windows XP":/Mac OS X 10[_\.]15/i.test(t)?"macOS Catalina":/Mac OS X 10[_\.]14/i.test(t)?"macOS Mojave":/Mac OS X 10[_\.]13/i.test(t)?"macOS High Sierra":/Mac OS X 10[_\.]12/i.test(t)?"macOS Sierra":/Mac OS X 10[_\.]11/i.test(t)?"OS X El Capitan":/Mac OS X 10[_\.]10/i.test(t)?"OS X Yosemite":/Mac OS X 10[_\.]/i.test(t)?"macOS":/Android/i.test(t)?"Android":/iPhone|iPad|iPod/i.test(t)?"iOS":/Linux/i.test(t)?"Linux":"Unknown"};var w=GM_info.script.name.toString(),y=GM_info.script.version.toString();!function(t){const e=document.createElement("script");e.setAttribute("bm-E",w),e.setAttribute("bm-B","color: cornflowerblue;"),e.textContent=`(${t})();`,document.documentElement?.appendChild(e),e.remove()}(()=>{const t=document.currentScript,e=t?.getAttribute("bm-E")||"Blue Marble",n=t?.getAttribute("bm-B")||"",i=new Map;window.addEventListener("message",t=>{const{source:o,endpoint:r,blobID:s,blobData:a,blink:m}=t.data;if(Date.now(),"blue-marble"==o&&s&&a&&!r){const t=i.get(s);"function"==typeof t?t(a):function(...t){(0,console.warn)(...t)}(`%c${e}%c: Attempted to retrieve a blob (%s) from queue, but the blobID was not a function! Skipping...`,n,"",s),i.delete(s)}});const o=window.fetch;window.fetch=async function(...t){const e=await o.apply(this,t),n=e.clone(),r=(t[0]instanceof Request?t[0]?.url:t[0])||"ignore",s=n.headers.get("content-type")||"";if(s.includes("application/json"))n.json().then(t=>{window.postMessage({source:"blue-marble",endpoint:r,jsonData:t},"*")}).catch(t=>{});else if(s.includes("image/")&&!r.includes("openfreemap")&&!r.includes("maps")){const t=Date.now(),e=await n.blob();return new Promise(o=>{const s=crypto.randomUUID();i.set(s,t=>{o(new Response(t,{headers:n.headers,status:n.status,statusText:n.statusText}))}),window.postMessage({source:"blue-marble",endpoint:r,blobID:s,blobData:e,blink:t})}).catch(t=>{Date.now()})}return e}});var v=GM_getResourceText("CSS-BM-File");GM_addStyle(v);var x=document.createElement("link");x.href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap",x.rel="preload",x.as="style",x.onload=function(){this.onload=null,this.rel="stylesheet"},document.head?.appendChild(x),new class{constructor(){this.lt=null,this.ct=null,this.ut="#bm-h"}dt(t){return this.ct=t,this.lt=new MutationObserver(t=>{for(const e of t)for(const t of e.addedNodes)t instanceof HTMLElement&&t.matches?.(this.ut)}),this}ht(){return this.lt}observe(t,e=!1,n=!1){t.observe(this.ct,{childList:e,subtree:n})}};var $=new r(w,y),S=(new r(w,y),new class{constructor(t,e,n){i(this,c),this.name=t,this.version=e,this.o=n,this.bt="1.0.0",this.gt=null,this.ft="!#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~",this.A=1e3,this.ot=3,this.wt=null,this.yt=null,this.vt="bm-C",this.xt="div#map canvas.maplibregl-canvas",this.$t=null,this.St="",this.rt=[],this.it=null,this.Mt=!0,this.Ot=new Map}Ct(){if(document.body.contains(this.wt))return this.wt;document.getElementById(this.vt)?.remove();const t=document.querySelector(this.xt),e=document.createElement("canvas");return e.id=this.vt,e.className="maplibregl-canvas",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.height=t?.clientHeight*(window.devicePixelRatio||1)+"px",e.style.width=t?.clientWidth*(window.devicePixelRatio||1)+"px",e.height=t?.clientHeight*(window.devicePixelRatio||1),e.width=t?.clientWidth*(window.devicePixelRatio||1),e.style.zIndex="8999",e.style.pointerEvents="none",t?.parentElement?.appendChild(e),this.wt=e,window.addEventListener("move",this.Dt),window.addEventListener("zoom",this.Tt),window.addEventListener("resize",this.kt),this.wt}async Nt(){return{whoami:this.name.replace(" ",""),scriptVersion:this.version,schemaVersion:this.bt,templates:{}}}async Bt(t,e,n){this.it||(this.it=await this.Nt()),this.o._(`Creating template at ${n.join(", ")}...`);const i=new f({displayName:e,F:0,j:a(this.gt||0,this.ft),file:t,coords:n}),{et:r,nt:s}=await i.Z(this.A);i.R=r;const m=`${i.F} ${i.j}`;i.H=m,this.it.templates[m]={name:i.displayName,coords:n.join(", "),enabled:!0,tiles:s,palette:i.X},this.rt=[],this.rt.push(i);const l=(new Intl.NumberFormat).format(i.J);this.o._(`Template created at ${n.join(", ")}! Total pixels: ${l}`);try{const t=document.querySelector("#bm-9");t&&(t.style.display=""),window.postMessage({source:"blue-marble",st:"bm-b"},"*")}catch(t){}await o(this,c,u).call(this)}It(){}async Lt(){this.it||(this.it=await this.Nt())}async Gt(t,e){if(!this.Mt)return t;const n=this.A*this.ot;e=e[0].toString().padStart(4,"0")+","+e[1].toString().padStart(4,"0");const i=this.rt;if(i.sort((t,e)=>t.F-e.F),!i.some(t=>!!t?.R&&(t.q&&t.q.size>0?t.q.has(e):Object.keys(t.R).some(t=>t.startsWith(e)))))return t;const o=i.map(t=>{const n=Object.keys(t.R).filter(t=>t.startsWith(e));if(0===n.length)return null;const i=n.map(e=>{const n=e.split(",");return{Wt:t.R[e],Pt:[n[0],n[1]],_t:[n[2],n[3]]}});return i?.[0]}).filter(Boolean),r=o?.length||0;let s=0,a=0,m=0;const l=await createImageBitmap(t),c=new OffscreenCanvas(n,n),u=c.getContext("2d");u.imageSmoothingEnabled=!1,u.beginPath(),u.rect(0,0,n,n),u.clip(),u.clearRect(0,0,n,n),u.drawImage(l,0,0,n,n);let d=null;try{d=u.getImageData(0,0,n,n).data}catch(t){}for(const t of o){if(d)try{const e=t.Wt.width,i=t.Wt.height,o=new OffscreenCanvas(e,i).getContext("2d",{tt:!0});o.imageSmoothingEnabled=!1,o.clearRect(0,0,e,i),o.drawImage(t.Wt,0,0);const r=o.getImageData(0,0,e,i).data,l=Number(t._t[0])*this.ot,c=Number(t._t[1])*this.ot;for(let t=0;t=n||u>=n)continue;const h=4*(t*e+i),b=r[h],p=r[h+1],g=r[h+2];if(r[h+3]<64){try{const t=this.rt?.[0],e=4*(u*n+o),i=d[e],r=d[e+1],s=d[e+2],m=d[e+3],l=`${i},${r},${s}`,c=!!t?.Y&&t.Y.has(l);m>=64&&c&&a++}catch(t){}continue}try{const t=this.rt?.[0];if(t?.Y&&!t.Y.has(`${b},${p},${g}`))continue}catch(t){}m++;const f=4*(u*n+o),w=d[f],y=d[f+1],v=d[f+2];d[f+3]<64||(w===b&&y===p&&v===g?s++:a++)}}catch(t){}try{const e=this.rt?.[0],n=e?.X||{};if(Object.values(n).some(t=>!1===t?.enabled)){const i=t.Wt.width,o=t.Wt.height,r=new OffscreenCanvas(i,o),s=r.getContext("2d",{tt:!0});s.imageSmoothingEnabled=!1,s.clearRect(0,0,i,o),s.drawImage(t.Wt,0,0);const a=s.getImageData(0,0,i,o),m=a.data;for(let t=0;t0){const t=e;this.Ot.set(t,{Et:s,required:m,Ft:a});let n=0,i=0,o=0;for(const t of this.Ot.values())n+=t.Et||0,i+=t.required||0,o+=t.Ft||0;const l=this.rt.reduce((t,e)=>t+(e.U||e.J||0),0),c=l>0?l:i,u=(new Intl.NumberFormat).format(n),d=(new Intl.NumberFormat).format(c),h=(new Intl.NumberFormat).format(c-n);this.o._(`Displaying ${r} template${1==r?"":"s"}.\nPainted ${u} / ${d} • Wrong ${h}`)}else this.o._(`Displaying ${r} templates.`);return await c.convertToBlob({type:"image/png"})}jt(t){"BlueMarble"==t?.whoami&&o(this,c,d).call(this,t)}Rt(t){this.Mt=t}}(w,y,$)),M=new class{constructor(t){i(this,h),this.At=t,this.Jt=!1,this.Ut=[],this.Vt=[]}Xt(t){window.addEventListener("message",async e=>{const n=e.data,i=n.jsonData;if(!n||"blue-marble"!==n.source)return;if(!n.endpoint)return;const o=n.endpoint?.split("?")[0].split("/").filter(t=>t&&isNaN(Number(t))).filter(t=>t&&!t.includes(".")).pop();switch(o){case"me":if(i.status&&"2"!=i.status?.toString()[0])return void t.P("You are not logged in!\nCould not fetch userdata.");const e=Math.ceil(Math.pow(Math.floor(i.level)*Math.pow(30,.65),1/.65)-i.pixelsPainted);i.id||i.id,this.At.gt=i.id,t.B("bm-u",`Username: ${function(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}(i.name)}`),t.B("bm-p",`Droplets: ${(new Intl.NumberFormat).format(i.droplets)}`),t.B("bm-i",`Next level in ${(new Intl.NumberFormat).format(e)} pixel${1==e?"":"s"}`);break;case"pixel":const o=n.endpoint.split("?")[0].split("/").filter(t=>t&&!isNaN(Number(t))),a=new URLSearchParams(n.endpoint.split("?")[1]),m=[a.get("x"),a.get("y")];if(this.Ut.length&&(!o.length||!m.length))return void t.P("Coordinates are malformed!\nDid you try clicking the canvas first?");this.Ut=[...o,...m];const l=(r=o,s=m,[parseInt(r[0])%4*1e3+parseInt(s[0]),parseInt(r[1])%4*1e3+parseInt(s[1])]),c=document.querySelectorAll("span");for(const t of c)if(t.textContent.trim().includes(`${l[0]}, ${l[1]}`)){let e=document.querySelector("#bm-h");const n=`(Tl X: ${o[0]}, Tl Y: ${o[1]}, Px X: ${m[0]}, Px Y: ${m[1]})`;e?e.textContent=n:(e=document.createElement("span"),e.id="bm-h",e.textContent=n,e.style="margin-left: calc(var(--spacing)*3); font-size: small;",t.parentNode.parentNode.parentNode.insertAdjacentElement("afterend",e))}break;case"tiles":let u=n.endpoint.split("/");u=[parseInt(u[u.length-2]),parseInt(u[u.length-1].replace(".png",""))];const d=n.blobID,h=n.blobData,b=await this.At.Gt(h,u);window.postMessage({source:"blue-marble",blobID:d,blobData:b,blink:n.blink});break;case"robots":this.Jt="false"==i.userscript?.toString().toLowerCase()}var r,s})}async qt(t){let e=GM_getValue("bmUserSettings","{}");if(e=JSON.parse(e),!e||!e.telemetry||!e.uuid)return;const n=navigator.userAgent;let i=await o(this,h,b).call(this,n),r=o(this,h,p).call(this,n);GM_xmlhttpRequest({method:"POST",url:"https://telemetry.thebluecorner.net/heartbeat",headers:{"Content-Type":"application/json"},data:JSON.stringify({uuid:e.uuid,version:t,browser:i,os:r}),onload:t=>{200!==t.status&&s("Failed to send heartbeat:",t.statusText)},onerror:t=>{s("Error sending heartbeat:",t)}})}}(S);$.u(M);var O=JSON.parse(GM_getValue("bmTemplates","{}"));S.jt(O);var C=JSON.parse(GM_getValue("bmUserSettings","{}"));if(0==Object.keys(C).length){const t=crypto.randomUUID();GM.setValue("bmUserSettings",JSON.stringify({uuid:t}))}if(setInterval(()=>M.qt(y),18e5),null==C?.telemetry||C?.telemetry>1){const t=new r(w,y);t.u(M),t.v({id:"bm-d",style:"top: 0px; left: 0px; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; z-index: 9999;"}).v({id:"bm-7",style:"display: flex; flex-direction: column; align-items: center;"}).v({id:"bm-1",style:"margin-top: 10%;"}).O(1,{textContent:`${w} Telemetry`}).h().h().v({id:"bm-e",style:"max-width: 50%; overflow-y: auto; max-height: 80vh;"}).C().h().D().h().v({style:"width: fit-content; margin: auto; text-align: center;"}).k({id:"bm-8",textContent:"More Information"},(t,e)=>{e.onclick=()=>{window.open("https://github.com/SwingTheVine/Wplace-TelemetryServer#telemetry-data","_blank","noopener noreferrer")}}).h().h().D().h().v({style:"width: fit-content; margin: auto; text-align: center;"}).k({id:"bm-5",textContent:"Enable Telemetry",style:"margin-right: 2ch;"},(t,e)=>{e.onclick=()=>{const t=JSON.parse(GM_getValue("bmUserSettings","{}"));t.telemetry=1,GM.setValue("bmUserSettings",JSON.stringify(t));const e=document.getElementById("bm-d");e&&(e.style.display="none")}}).h().k({id:"bm-2",textContent:"Disable Telemetry"},(t,e)=>{e.onclick=()=>{const t=JSON.parse(GM_getValue("bmUserSettings","{}"));t.telemetry=0,GM.setValue("bmUserSettings",JSON.stringify(t));const e=document.getElementById("bm-d");e&&(e.style.display="none")}}).h().h().D().h().$({textContent:"We collect anonymous telemetry data such as your browser, OS, and script version to make the experience better for everyone. The data is never shared personally. The data is never sold. You can turn this off by pressing the 'Disable' button, but keeping it on helps us improve features and reliability faster. Thank you for supporting the Blue Marble!"}).h().$({textContent:'You can disable telemetry by pressing the "Disable" button below.'}).h().h().h().p(document.body)}!function(){let t=!1,e={};try{e=JSON.parse(GM_getValue("bmCoords","{}"))||{}}catch(t){e={}}const n=()=>{try{const t=Number(document.querySelector("#bm-v")?.value||""),e=Number(document.querySelector("#bm-w")?.value||""),n={Ht:t,Yt:e,px:Number(document.querySelector("#bm-x")?.value||""),zt:Number(document.querySelector("#bm-y")?.value||"")};GM.setValue("bmCoords",JSON.stringify(n))}catch(t){}};$.v({id:"bm-A",style:"top: 10px; right: 75px;"}).v({id:"bm-j"}).v({id:"bm-z"}).h().M({alt:"Blue Marble Icon - Click to minimize/maximize",src:"https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/dist/assets/Favicon.png",style:"cursor: pointer;"},(e,n)=>{n.addEventListener("click",()=>{t=!t;const i=document.querySelector("#bm-A"),o=document.querySelector("#bm-j"),r=document.querySelector("#bm-z"),s=document.querySelector("#bm-k"),a=document.querySelector("#bm-q"),m=document.querySelector("#bm-r"),l=document.querySelector("#bm-s"),c=document.querySelector("#bm-l"),u=document.querySelectorAll("#bm-k input");t||(i.style.width="auto",i.style.maxWidth="300px",i.style.minWidth="200px",i.style.padding="10px"),["#bm-A h1","#bm-f","#bm-A hr","#bm-c > *:not(#bm-k)","#bm-a","#bm-6",`#${e.i}`,"#bm-9"].forEach(e=>{document.querySelectorAll(e).forEach(e=>{e.style.display=t?"none":""})}),t?(s&&(s.style.display="none"),a&&(a.style.display="none"),m&&(m.style.display="none"),l&&(l.style.display="none"),c&&(c.style.display="none"),u.forEach(t=>{t.style.display="none"}),i.style.width="60px",i.style.height="76px",i.style.maxWidth="60px",i.style.minWidth="60px",i.style.padding="8px",n.style.marginLeft="3px",o.style.textAlign="center",o.style.margin="0",o.style.marginBottom="0",r&&(r.style.display="",r.style.marginBottom="0.25em")):(s&&(s.style.display="",s.style.flexDirection="",s.style.justifyContent="",s.style.alignItems="",s.style.gap="",s.style.textAlign="",s.style.margin=""),a&&(a.style.display=""),m&&(m.style.display="",m.style.marginTop=""),l&&(l.style.display="",l.style.marginTop=""),c&&(c.style.display="",c.style.marginTop=""),u.forEach(t=>{t.style.display=""}),n.style.marginLeft="",i.style.padding="10px",o.style.textAlign="",o.style.margin="",o.style.marginBottom="",r&&(r.style.marginBottom="0.5em"),i.style.width="",i.style.height=""),n.alt=t?"Blue Marble Icon - Minimized (Click to maximize)":"Blue Marble Icon - Maximized (Click to minimize)"})}).h().O(1,{textContent:w}).h().h().C().h().v({id:"bm-f"}).$({id:"bm-u",textContent:"Username:"}).h().$({id:"bm-p",textContent:"Droplets:"}).h().$({id:"bm-i",textContent:"Next level in..."}).h().h().C().h().v({id:"bm-c"}).v({id:"bm-k"}).k({id:"bm-q",className:"bm-D",style:"margin-top: 0;",innerHTML:''},(t,e)=>{e.onclick=()=>{const e=t.t?.Ut;e?.[0]?(t.B("bm-v",e?.[0]||""),t.B("bm-w",e?.[1]||""),t.B("bm-x",e?.[2]||""),t.B("bm-y",e?.[3]||""),n()):t.P("Coordinates are malformed! Did you try clicking on the canvas first?")}}).h().I({type:"number",id:"bm-v",placeholder:"Tl X",min:0,max:2047,step:1,required:!0,value:e.Ht??""},(t,e)=>{e.addEventListener("paste",t=>{let e=(t.clipboardData||window.clipboardData).getData("text").split(" ").filter(t=>t).map(Number).filter(t=>!isNaN(t));if(4!==e.length)return;let n=(i=document,coords=[],coords.push(i.querySelector("#bm-v")),coords.push(i.querySelector("#bm-w")),coords.push(i.querySelector("#bm-x")),coords.push(i.querySelector("#bm-y")),coords);var i;for(let t=0;tn();e.addEventListener("input",i),e.addEventListener("change",i)}).h().I({type:"number",id:"bm-w",placeholder:"Tl Y",min:0,max:2047,step:1,required:!0,value:e.Yt??""},(t,e)=>{const i=()=>n();e.addEventListener("input",i),e.addEventListener("change",i)}).h().I({type:"number",id:"bm-x",placeholder:"Px X",min:0,max:2047,step:1,required:!0,value:e.px??""},(t,e)=>{const i=()=>n();e.addEventListener("input",i),e.addEventListener("change",i)}).h().I({type:"number",id:"bm-y",placeholder:"Px Y",min:0,max:2047,step:1,required:!0,value:e.zt??""},(t,e)=>{const i=()=>n();e.addEventListener("input",i),e.addEventListener("change",i)}).h().h().v({id:"bm-9",style:"max-height: 140px; overflow: auto; border: 1px solid rgba(255,255,255,0.1); padding: 4px; border-radius: 4px; display: none;"}).v({style:"display: flex; gap: 6px; margin-bottom: 6px;"}).k({id:"bm-3",textContent:"Enable All"},(t,e)=>{e.onclick=()=>{const e=S.rt[0];e?.X&&(Object.values(e.X).forEach(t=>t.enabled=!0),buildColorFilterList(),t._("Enabled all colors"))}}).h().k({id:"bm-0",textContent:"Disable All"},(t,e)=>{e.onclick=()=>{const e=S.rt[0];e?.X&&(Object.values(e.X).forEach(t=>t.enabled=!1),buildColorFilterList(),t._("Disabled all colors"))}}).h().h().v({id:"bm-g"}).h().h().L({id:"bm-a",textContent:"Upload Template",accept:"image/png, image/jpeg, image/webp, image/bmp, image/gif"}).h().v({id:"bm-4"}).k({id:"bm-s",textContent:"Enable"},(t,e)=>{e.onclick=()=>{t.t?.At?.Rt(!0),t._("Enabled templates!")}}).h().k({id:"bm-r",textContent:"Create"},(t,e)=>{e.onclick=()=>{const e=document.querySelector("#bm-a"),n=document.querySelector("#bm-v");if(!n.checkValidity())return n.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");const i=document.querySelector("#bm-w");if(!i.checkValidity())return i.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");const o=document.querySelector("#bm-x");if(!o.checkValidity())return o.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");const r=document.querySelector("#bm-y");if(!r.checkValidity())return r.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");e?.files[0]?(S.Bt(e.files[0],e.files[0]?.name.replace(/\.[^/.]+$/,""),[Number(n.value),Number(i.value),Number(o.value),Number(r.value)]),t._("Drew to canvas!")):t.P("No file selected!")}}).h().k({id:"bm-l",textContent:"Disable"},(t,e)=>{e.onclick=()=>{t.t?.At?.Rt(!1),t._("Disabled templates!")}}).h().h().G({id:$.i,placeholder:`Status: Sleeping...\nVersion: ${y}`,readOnly:!0}).h().v({id:"bm-6"}).v().k({id:"bm-m",className:"bm-D",innerHTML:"🎨",title:"Template Color Converter"},(t,e)=>{e.addEventListener("click",()=>{window.open("https://pepoafonso.github.io/color_converter_wplace/","_blank","noopener noreferrer")})}).h().k({id:"bm-n",className:"bm-D",innerHTML:"🌐",title:"Official Blue Marble Website"},(t,e)=>{e.addEventListener("click",()=>{window.open("https://bluemarble.camilledaguin.fr/","_blank","noopener noreferrer")})}).h().h().S({textContent:"Made by SwingTheVine",style:"margin-top: auto;"}).h().h().h().p(document.body),window.buildColorFilterList=function(){const t=document.querySelector("#bm-g"),e=S.rt?.[0];if(!t||!e?.X)return void(t&&(t.innerHTML="No template colors to display."));t.innerHTML="";const n=Object.entries(e.X).sort((t,e)=>e[1].count-t[1].count);for(const[e,i]of n){const[n,o,r]=e.split(",").map(Number),s=document.createElement("div");s.style.display="flex",s.style.alignItems="center",s.style.gap="8px",s.style.margin="4px 0";const a=document.createElement("div");a.style.width="14px",a.style.height="14px",a.style.border="1px solid rgba(255,255,255,0.5)",a.style.background=`rgb(${n},${o},${r})`;const m=document.createElement("span");m.style.fontSize="12px";let l=`${i.count.toLocaleString()}`;try{const t=S.rt?.[0]?.K?.get(e);if(t&&"number"==typeof t.id){const e=t?.name||`rgb(${n},${o},${r})`,i=t.premium?"★ ":"";l=`#${t.id} ${i}${e} • ${l}`}}catch(t){}m.textContent=l;const c=document.createElement("input");c.type="checkbox",c.checked=!!i.enabled,c.addEventListener("change",()=>{i.enabled=c.checked,$._(`${c.checked?"Enabled":"Disabled"} ${e}`);try{const t=S.rt?.[0],e=t?.H;t&&e&&S.it?.templates?.[e]&&(S.it.templates[e].palette=t.X,GM.setValue("bmTemplates",JSON.stringify(S.it)))}catch(t){}}),s.appendChild(c),s.appendChild(a),s.appendChild(m),t.appendChild(s)}},window.addEventListener("message",t=>{if("bm-b"===t?.data?.st)try{buildColorFilterList()}catch(t){}}),setTimeout(()=>{try{if(S.rt?.length>0){const t=document.querySelector("#bm-9");t&&(t.style.display=""),buildColorFilterList()}}catch(t){}},0)}(),$.W("#bm-A","#bm-z"),M.Xt($),new MutationObserver((t,e)=>{const n=document.querySelector("#color-1");if(!n)return;let i=document.querySelector("#bm-t");if(!i){i=document.createElement("button"),i.id="bm-t",i.textContent="Move ↑",i.className="btn btn-soft",i.onclick=function(){const t=this.parentNode.parentNode.parentNode.parentNode,e="Move ↑"==this.textContent;t.parentNode.className=t.parentNode.className.replace(e?"bottom":"top",e?"top":"bottom"),t.style.borderTopLeftRadius=e?"0px":"var(--radius-box)",t.style.borderTopRightRadius=e?"0px":"var(--radius-box)",t.style.borderBottomLeftRadius=e?"var(--radius-box)":"0px",t.style.borderBottomRightRadius=e?"var(--radius-box)":"0px",this.textContent=e?"Move ↓":"Move ↑"};const t=n.parentNode.parentNode.parentNode.parentNode.querySelector("h2");t.parentNode?.appendChild(i)}}).observe(document.body,{childList:!0,subtree:!0}),function(...t){(0,console.log)(...t)}(`%c${w}%c (${y}) userscript has loaded!`,"color: cornflowerblue;","")})(); diff --git a/docs/README.md b/docs/README.md index 2134b18..4ef661e 100644 --- a/docs/README.md +++ b/docs/README.md @@ -110,80 +110,6 @@

-

Quick Guide

-

- Press the arrows to reveal the option you want. -

- - I want to download Blue Marble. (Click to Expand) - - Click here to view the installation instructions. -
-
- - I want to ask questions about Blue Marble. (Click to Expand) - - Click here for the Discord server invite to the Blue Marble support server. -
- Click here for the GitHub help & question page for Blue Marble. -
-
- - I want to report a bug. (Click to Expand) - - Click here to report a bug, then choose the "Bug Report" option. -
-
- - I want to suggest a feature. (Click to Expand) - - Click here to suggest a feature, then choose the Feature Request" option. -
-
- - I want to contribute. (Click to Expand) - - Click here to read the contributing guidelines. -
-

- -

Quick Guide

-

- Press the arrows to reveal the option you want. -

- - I want to download Blue Marble. (Click to Expand) - - Click here to view the installation instructions. -
-
- - I want to ask questions about Blue Marble. (Click to Expand) - - Click here for the Discord server invite to the Blue Marble support server. -
- Click here for the GitHub help & question page for Blue Marble. -
-
- - I want to report a bug. (Click to Expand) - - Click here to report a bug, then choose the "Bug Report" option. -
-
- - I want to suggest a feature. (Click to Expand) - - Click here to suggest a feature, then choose the Feature Request" option. -
-
- - I want to contribute. (Click to Expand) - - Click here to read the contributing guidelines. -
-

-

Overview

Welcome to Blue Marble! Blue Marble is a userscript for the website wplace.live. The purpose of Blue Marble is to allow you to take an image, and layer it onto the canvas! That way, you can easily trace the image of your art, without having to look back and forth between multiple tabs/monitors. In addition, Blue Marble supports some neat extra features such as: diff --git a/src/BlueMarble.meta.js b/src/BlueMarble.meta.js index 41e1769..6a26317 100644 --- a/src/BlueMarble.meta.js +++ b/src/BlueMarble.meta.js @@ -7,18 +7,17 @@ // @license MPL-2.0 // @supportURL https://discord.gg/tpeBPy46hf // @homepageURL https://bluemarble.camilledaguin.fr/ -// @icon https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/509c030292c264477d6571d46f03d14fc1f32a1a/dist/assets/Favicon.png +// @icon https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/f3ee47c55505d29255b29e320891453884f13369/dist/assets/Favicon.png // @updateURL https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/dist/BlueMarble.user.js // @downloadURL https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/dist/BlueMarble.user.js -// @match https://wplace.live/ -// @match https://wplace.live/?* +// @match https://wplace.live/* // @grant GM_getResourceText // @grant GM_addStyle // @grant GM.setValue // @grant GM_getValue // @grant GM_xmlhttpRequest // @connect telemetry.thebluecorner.net -// @resource CSS-BM-File https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/509c030292c264477d6571d46f03d14fc1f32a1a/dist/BlueMarble.user.css +// @resource CSS-BM-File https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/1b71f0f8403b459cec0e1e298b73823570ed6016/dist/BlueMarble.user.css // ==/UserScript== // Wplace --> https://wplace.live From 3fb250dd756f32d40cd5b96238532ea2f715944e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 17 Aug 2025 09:48:01 +0000 Subject: [PATCH 2/4] v0.84.0; Made Blue Marble work on wplace.live// (#197) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update to 0.80.0 (#108) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * counts and colors for 81 * updated color palette and counts for transparent pixels * Implement #44 Ability to auto paste coordinates in their proper field (#45) * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * v0.82.0; Merge branch 'code' into main * Git is such a pain * v0.81.0; Git is such a pain * Stupid automation AAAAAA * v0.80.0; Stupid automation AAAAAA * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: Filip Struzik Co-authored-by: SwingTheVine Co-authored-by: github-actions[bot] * Fixed checkerboard patterns on black pixels (#143) Close #122 * Added telemetry * Debugging CSS * Telemetry and color filter are stable * Forgot to remove this before commiting * Begin update for v0.83.0 (#188) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * Added a Shield for Pages * Added markdown support to the wiki * fixed broken links firefox related links were broken * fixed latest pre-releases links * Cleanup of bugs related to one-click install link * feat: Add new official Blue Marble website and update documentation Add newly created official Blue Marble website and update project documentation - Add official website badge to README.md - Include website link in Quick Guide section - Add website creator credits in CREDITS.md - Update CONTRIBUTING.md with website reference - Add new official website URL: https://bluemarble.camilledaguin.fr/ This commit introduces the newly created official Blue Marble website and updates all documentation to reference it. The website provides a dedicated platform for Blue Marble users and information. * Markdown links are used in CREDITS.md * Website Shield Moved Next to Social Shields * Website should not take priority over download information... ...also, removed the word official due to the fact that the website being linked on the GitHub indicates that the website is official. Just like how the Discord server being linked on GitHub indicates that the Discord server is official. * Since the website does not contain security information... ...it should not be in SECURITY.md * Removed redundant @website meta attribute... ...since @website and @homepageURL do the exact same thing * Added @WondaMegapon to the CREDITS.md file * Fix some issues with the README (#124) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Update README.md Fix some issues with the readme * Added version Shield back --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update documentation branch (#164) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update Wplace status badge (#140) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Update Wplace status badge --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Fix spelling mistakes (#151) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Fix spelling mistakes --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Remove (#161) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Remove --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update to match only the frontend (#162) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Updae to match only the frontend --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * docs: correction of typographical errors (#178) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * docs: correction of typographical errors recieved -> received --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> * Potential fix for code scanning alert no. 30: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Updated README Shields * Update code branch (#190) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * Fix minor comment typo Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Made Blue Marble work on wplace.live// * Fixed duplication of Quick Guide --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: vishnuvardhan33 <93069382+vishnuvardhan33@users.noreply.github.com> Co-authored-by: Filip Str Co-authored-by: Filip Struzik Co-authored-by: East Monster 🍉 <89259667+EastMonster@users.noreply.github.com> Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- dist/BlueMarble.user.css | 2 +- dist/BlueMarble.user.js | 8 ++++---- docs/README.md | 4 ++-- package.json | 2 +- src/BlueMarble.meta.js | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/dist/BlueMarble.user.css b/dist/BlueMarble.user.css index 9ccc311..a0db136 100644 --- a/dist/BlueMarble.user.css +++ b/dist/BlueMarble.user.css @@ -1 +1 @@ -#bm-s,#bm-s-telemetry{position:fixed;background-color:#153063e6;color:#fff;padding:10px;border-radius:8px;z-index:9000;transition:all .3s ease,transform 0s;max-width:300px;width:auto;will-change:transform;backface-visibility:hidden;-webkit-backface-visibility:hidden;transform-style:preserve-3d;-webkit-transform-style:preserve-3d}#bm-8,#bm-s hr,#bm-s-telemetry hr,#bm-7,#bm-3{transition:opacity .2s ease,height .2s ease}div#bm-s,div#bm-s-telemetry{font-family:Roboto Mono,Courier New,Monaco,DejaVu Sans Mono,monospace,Arial;letter-spacing:.05em}#bm-r,#bm-r-telemetry{margin-bottom:.5em;background:url('data:image/svg+xml;utf8,') repeat;cursor:grab;width:100%;height:1em}#bm-r.dragging,#bm-r-telemetry.dragging{cursor:grabbing}#bm-s:has(#bm-r.dragging),#bm-s-telemetry:has(#bm-r-telemetry.dragging){pointer-events:none;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}#bm-r.dragging,#bm-r-telemetry.dragging{pointer-events:auto}#bm-c,#bm-c-telemetry{margin-bottom:.5em}#bm-c[style*="text-align: center"],#bm-c-telemetry[style*="text-align: center"]{display:flex;flex-direction:column;align-items:center;justify-content:center}#bm-s[style*="padding: 5px"],#bm-s-telemetry[style*="padding: 5px"]{width:auto!important;max-width:300px;min-width:200px}#bm-s img{display:inline-block;height:2.5em;margin-right:1ch;vertical-align:middle;transition:opacity .2s ease}#bm-c[style*="text-align: center"] img{display:block;margin:0 auto}#bm-r,#bm-r-telemetry{transition:margin-bottom .2s ease}#bm-s h1,#bm-s-telemetry h1{display:inline-block;font-size:x-large;font-weight:700;vertical-align:middle}#bm-7 input[type=checkbox]{vertical-align:middle;margin-right:.5ch}#bm-7 label{margin-right:.5ch}.bm-v{border:white 1px solid;height:1.5em;width:1.5em;margin-top:2px;text-align:center;line-height:1em;padding:0!important}#bm-i{vertical-align:middle}#bm-i svg{width:50%;margin:0 auto;fill:#111}div:has(>#bm-button-teleport){display:flex;gap:.5ch}#bm-button-favorite svg,#bm-button-template svg{height:1em;margin:2px auto 0;text-align:center;line-height:1em;vertical-align:bottom}#bm-d input[type=number]{appearance:auto;-moz-appearance:textfield;width:5.5ch;margin-left:1ch;background-color:#0003;padding:0 .5ch;font-size:small}#bm-d input[type=number]::-webkit-outer-spin-button,#bm-d input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#bm-2{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;justify-content:center;align-items:center;gap:1ch}div:has(>#bm-5)>button{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#bm-5,input[type=file][id*=template]{display:none!important;visibility:hidden!important;position:absolute!important;left:-9999px!important;top:-9999px!important;width:0!important;height:0!important;opacity:0!important;z-index:-9999!important;pointer-events:none!important}#bm-g{font-size:small;background-color:#0003;padding:0 .5ch;height:3.75em;width:100%}#bm-3{display:flex;justify-content:space-between}#bm-s small{font-size:x-small;color:#d3d3d3}#bm-8,#bm-7,#bm-d,#bm-2,div:has(>#bm-5),#bm-g{margin-top:.5em}#bm-s button,#bm-s-telemetry button{background-color:#144eb9;border-radius:1em;padding:0 .75ch}#bm-s button:hover,#bm-s button:focus-visible,#bm-s-telemetry button:hover,#bm-s-telemetry button:focus-visible{background-color:#1061e5}#bm-s button:active,#bm-s-telemetry button:active #bm-s button:disabled,#bm-s-telemetry button:disabled{background-color:#2e97ff}#bm-s button:disabled,#bm-s-telemetry button:disabled{text-decoration:line-through} +#bm-A,#bm-d{position:fixed;background-color:#153063e6;color:#fff;padding:10px;border-radius:8px;z-index:9000;transition:all .3s ease,transform 0s;max-width:300px;width:auto;will-change:transform;backface-visibility:hidden;-webkit-backface-visibility:hidden;transform-style:preserve-3d;-webkit-transform-style:preserve-3d}#bm-f,#bm-A hr,#bm-d hr,#bm-c,#bm-6{transition:opacity .2s ease,height .2s ease}div#bm-A,div#bm-d{font-family:Roboto Mono,Courier New,Monaco,DejaVu Sans Mono,monospace,Arial;letter-spacing:.05em}#bm-z,#bm-z-telemetry{margin-bottom:.5em;background:url('data:image/svg+xml;utf8,') repeat;cursor:grab;width:100%;height:1em}#bm-z.dragging,#bm-z-telemetry.dragging{cursor:grabbing}#bm-A:has(#bm-z.dragging),#bm-d:has(#bm-z-telemetry.dragging){pointer-events:none;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}#bm-z.dragging,#bm-z-telemetry.dragging{pointer-events:auto}#bm-j,#bm-1{margin-bottom:.5em}#bm-j[style*="text-align: center"],#bm-1[style*="text-align: center"]{display:flex;flex-direction:column;align-items:center;justify-content:center}#bm-A[style*="padding: 5px"],#bm-d[style*="padding: 5px"]{width:auto!important;max-width:300px;min-width:200px}#bm-A img{display:inline-block;height:2.5em;margin-right:1ch;vertical-align:middle;transition:opacity .2s ease}#bm-j[style*="text-align: center"] img{display:block;margin:0 auto}#bm-z,#bm-z-telemetry{transition:margin-bottom .2s ease}#bm-A h1,#bm-d h1{display:inline-block;font-size:x-large;font-weight:700;vertical-align:middle}#bm-c input[type=checkbox]{vertical-align:middle;margin-right:.5ch}#bm-c label{margin-right:.5ch}.bm-D{border:white 1px solid;height:1.5em;width:1.5em;margin-top:2px;text-align:center;line-height:1em;padding:0!important}#bm-q{vertical-align:middle}#bm-q svg{width:50%;margin:0 auto;fill:#111}div:has(>#bm-button-teleport){display:flex;gap:.5ch}#bm-button-favorite svg,#bm-button-template svg{height:1em;margin:2px auto 0;text-align:center;line-height:1em;vertical-align:bottom}#bm-k input[type=number]{appearance:auto;-moz-appearance:textfield;width:5.5ch;margin-left:1ch;background-color:#0003;padding:0 .5ch;font-size:small}#bm-k input[type=number]::-webkit-outer-spin-button,#bm-k input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#bm-4{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;justify-content:center;align-items:center;gap:1ch}div:has(>#bm-a)>button{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#bm-a,input[type=file][id*=template]{display:none!important;visibility:hidden!important;position:absolute!important;left:-9999px!important;top:-9999px!important;width:0!important;height:0!important;opacity:0!important;z-index:-9999!important;pointer-events:none!important}#bm-o{font-size:small;background-color:#0003;padding:0 .5ch;height:3.75em;width:100%}#bm-6{display:flex;justify-content:space-between}#bm-A small{font-size:x-small;color:#d3d3d3}#bm-f,#bm-c,#bm-k,#bm-4,div:has(>#bm-a),#bm-o{margin-top:.5em}#bm-A button,#bm-d button{background-color:#144eb9;border-radius:1em;padding:0 .75ch}#bm-A button:hover,#bm-A button:focus-visible,#bm-d button:hover,#bm-d button:focus-visible{background-color:#1061e5}#bm-A button:active,#bm-d button:active #bm-A button:disabled,#bm-d button:disabled{background-color:#2e97ff}#bm-A button:disabled,#bm-d button:disabled{text-decoration:line-through} diff --git a/dist/BlueMarble.user.js b/dist/BlueMarble.user.js index 149eeb8..ca618b0 100644 --- a/dist/BlueMarble.user.js +++ b/dist/BlueMarble.user.js @@ -1,13 +1,13 @@ // ==UserScript== // @name Blue Marble // @namespace https://github.com/SwingTheVine/ -// @version 0.83.0 +// @version 0.84.0 // @description A userscript to automate and/or enhance the user experience on Wplace.live. Make sure to comply with the site's Terms of Service, and rules! This script is not affiliated with Wplace.live in any way, use at your own risk. This script is not affiliated with TamperMonkey. The author of this userscript is not responsible for any damages, issues, loss of data, or punishment that may occur as a result of using this script. This script is provided "as is" under the MPL-2.0 license. The "Blue Marble" icon is licensed under CC0 1.0 Universal (CC0 1.0) Public Domain Dedication. The image is owned by NASA. // @author SwingTheVine // @license MPL-2.0 // @supportURL https://discord.gg/tpeBPy46hf // @homepageURL https://bluemarble.camilledaguin.fr/ -// @icon https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/509c030292c264477d6571d46f03d14fc1f32a1a/dist/assets/Favicon.png +// @icon https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/8d02ac9cbe8f6861248152f2b0d632a0b4a830ee/dist/assets/Favicon.png // @updateURL https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/dist/BlueMarble.user.js // @downloadURL https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/dist/BlueMarble.user.js // @match https://wplace.live/* @@ -17,10 +17,10 @@ // @grant GM_getValue // @grant GM_xmlhttpRequest // @connect telemetry.thebluecorner.net -// @resource CSS-BM-File https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/509c030292c264477d6571d46f03d14fc1f32a1a/dist/BlueMarble.user.css +// @resource CSS-BM-File https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/8d02ac9cbe8f6861248152f2b0d632a0b4a830ee/dist/BlueMarble.user.css // ==/UserScript== // Wplace --> https://wplace.live // License --> https://www.mozilla.org/en-US/MPL/2.0/ -(()=>{var t,e,n=t=>{throw TypeError(t)},i=(t,e,i)=>e.has(t)?n("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),o=(t,e,i)=>(((t,e)=>{e.has(t)||n("Cannot access private method")})(t,e),i),r=class{constructor(e,n){i(this,t),this.name=e,this.version=n,this.t=null,this.i="bm-o",this.o=null,this.m=null,this.l=[]}u(t){this.t=t}h(){return this.l.length>0&&(this.m=this.l.pop()),this}p(t){t?.appendChild(this.o),this.o=null,this.m=null,this.l=[]}v(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"div",{},n)),this}$(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"p",{},n)),this}S(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"small",{},n)),this}M(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"img",{},n)),this}O(n,i={},r=()=>{}){return r(this,o(this,t,e).call(this,"h"+n,{},i)),this}C(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"hr",{},n)),this}D(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"br",{},n)),this}T(n={},i=()=>{}){const r=o(this,t,e).call(this,"label",{textContent:n.textContent??""});delete n.textContent;const s=o(this,t,e).call(this,"input",{type:"checkbox"},n);return r.insertBefore(s,r.firstChild),this.h(),i(this,r,s),this}k(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"button",{},n)),this}N(n={},i=()=>{}){const r=n.title??n.textContent??"Help: No info";delete n.textContent,n.title=`Help: ${r}`;const s={textContent:"?",className:"bm-D",onclick:()=>{this.B(this.i,r)}};return i(this,o(this,t,e).call(this,"button",s,n)),this}I(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"input",{},n)),this}L(n={},i=()=>{}){const r=n.textContent??"";delete n.textContent;const s=o(this,t,e).call(this,"div"),a=o(this,t,e).call(this,"input",{type:"file",style:"display: none !important; visibility: hidden !important; position: absolute !important; left: -9999px !important; width: 0 !important; height: 0 !important; opacity: 0 !important;"},n);this.h();const m=o(this,t,e).call(this,"button",{textContent:r});return this.h(),this.h(),a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),m.addEventListener("click",()=>{a.click()}),a.addEventListener("change",()=>{m.style.maxWidth=`${m.offsetWidth}px`,a.files.length>0?m.textContent=a.files[0].name:m.textContent=r}),i(this,s,a,m),this}G(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"textarea",{},n)),this}B(t,e,n=!1){const i=document.getElementById(t.replace(/^#/,""));i&&(i instanceof HTMLInputElement?i.value=e:n?i.textContent=e:i.innerHTML=e)}W(t,e){let n,i=!1,o=0,r=null,s=0,a=0,m=0,l=0;if(t=document.querySelector("#"==t?.[0]?t:"#"+t),e=document.querySelector("#"==e?.[0]?e:"#"+e),!t||!e)return void this.P(`Can not drag! ${t?"":"moveMe"} ${t||e?"":"and "}${e?"":"iMoveThings "}was not found!`);const c=()=>{if(i){const e=Math.abs(s-m),n=Math.abs(a-l);(e>.5||n>.5)&&(s=m,a=l,t.style.transform=`translate(${s}px, ${a}px)`,t.style.left="0px",t.style.top="0px",t.style.right=""),r=requestAnimationFrame(c)}};let u=null;const d=(d,h)=>{i=!0,u=t.getBoundingClientRect(),n=d-u.left,o=h-u.top;const b=window.getComputedStyle(t).transform;if(b&&"none"!==b){const t=new DOMMatrix(b);s=t.m41,a=t.m42}else s=u.left,a=u.top;m=s,l=a,document.body.style.userSelect="none",e.classList.add("dragging"),r&&cancelAnimationFrame(r),c()},h=()=>{i=!1,r&&(cancelAnimationFrame(r),r=null),document.body.style.userSelect="",e.classList.remove("dragging")};e.addEventListener("mousedown",function(t){t.preventDefault(),d(t.clientX,t.clientY)}),e.addEventListener("touchstart",function(t){const e=t?.touches?.[0];e&&(d(e.clientX,e.clientY),t.preventDefault())},{passive:!1}),document.addEventListener("mousemove",function(t){i&&u&&(m=t.clientX-n,l=t.clientY-o)},{passive:!0}),document.addEventListener("touchmove",function(t){if(i&&u){const e=t?.touches?.[0];if(!e)return;m=e.clientX-n,l=e.clientY-o,t.preventDefault()}},{passive:!1}),document.addEventListener("mouseup",h),document.addEventListener("touchend",h),document.addEventListener("touchcancel",h)}_(t){(0,console.info)(`${this.name}: ${t}`),this.B(this.i,"Status: "+t,!0)}P(t){(0,console.error)(`${this.name}: ${t}`),this.B(this.i,"Error: "+t,!0)}};function s(...t){(0,console.error)(...t)}function a(t,e){if(0===t)return e[0];let n="";const i=e.length;for(;t>0;)n=e[t%i]+n,t=Math.floor(t/i);return n}function m(t){let e="";for(let n=0;n"transparent"!==(t?.name||"").toLowerCase()&&Array.isArray(t?.rgb)).map(t=>`${t.rgb[0]},${t.rgb[1]},${t.rgb[2]}`));const l="222,250,206";this.Y.add(l),this.K=new Map(m.filter(t=>Array.isArray(t?.rgb)).map(t=>[`${t.rgb[0]},${t.rgb[1]},${t.rgb[2]}`,{id:t.id,premium:!!t.premium,name:t.name}]));try{const t=m.find(t=>"transparent"===(t?.name||"").toLowerCase());t&&Array.isArray(t.rgb)&&this.K.set(l,{id:t.id,premium:!!t.premium,name:t.name})}catch(t){}}async Z(){const t=await createImageBitmap(this.file),e=t.width,n=t.height,i=e*n;this.J=i;try{const i=new OffscreenCanvas(e,n).getContext("2d",{tt:!0});i.imageSmoothingEnabled=!1,i.clearRect(0,0,e,n),i.drawImage(t,0,0);const o=i.getImageData(0,0,e,n).data;let r=0,s=0;const a=new Map;for(let t=0;t0){for(const t in e){const n=t,i=e[t];if(e.hasOwnProperty(t)){const t=n.split(" "),o=Number(t?.[0]),r=t?.[1]||"0",s=i.name||`Template ${o||""}`,a=i.tiles,m={};let c=0;const u=new Map;for(const t in a)if(a.hasOwnProperty(t)){const e=l(a[t]),n=new Blob([e],{type:"image/png"}),i=await createImageBitmap(n);m[t]=i;try{const t=i.width,e=i.height,n=new OffscreenCanvas(t,e).getContext("2d",{tt:!0});n.imageSmoothingEnabled=!1,n.clearRect(0,0,t,e),n.drawImage(i,0,0);const o=n.getImageData(0,0,t,e).data;for(let n=0;n{d.q?.add(t.split(",").slice(0,2).join(","))})}catch(t){}try{const t=e?.[n]?.palette;if(t)for(const[e,n]of Object.entries(t))d.X[e]?d.X[e].enabled=!!n?.enabled:d.X[e]={count:n?.count||0,enabled:!!n?.enabled}}catch(t){}d.H=n,this.rt.push(d)}}try{const t=document.querySelector("#bm-9");t&&(t.style.display=""),window.postMessage({source:"blue-marble",st:"bm-b"},"*")}catch(t){}}},h=new WeakSet,b=async function(t=navigator.userAgent){return(t=t||"").includes("OPR/")||t.includes("Opera")?"Opera":t.includes("Edg/")?"Edge":t.includes("Vivaldi")?"Vivaldi":t.includes("YaBrowser")?"Yandex":t.includes("Kiwi")?"Kiwi":t.includes("Brave")?"Brave":t.includes("Firefox/")?"Firefox":t.includes("Chrome/")?"Chrome":t.includes("Safari/")?"Safari":navigator.brave&&"function"==typeof navigator.brave.isBrave&&await navigator.brave.isBrave()?"Brave":"Unknown"},p=function(t=navigator.userAgent){return/Windows NT 11/i.test(t=t||"")?"Windows 11":/Windows NT 10/i.test(t)?"Windows 10":/Windows NT 6\.3/i.test(t)?"Windows 8.1":/Windows NT 6\.2/i.test(t)?"Windows 8":/Windows NT 6\.1/i.test(t)?"Windows 7":/Windows NT 6\.0/i.test(t)?"Windows Vista":/Windows NT 5\.1|Windows XP/i.test(t)?"Windows XP":/Mac OS X 10[_\.]15/i.test(t)?"macOS Catalina":/Mac OS X 10[_\.]14/i.test(t)?"macOS Mojave":/Mac OS X 10[_\.]13/i.test(t)?"macOS High Sierra":/Mac OS X 10[_\.]12/i.test(t)?"macOS Sierra":/Mac OS X 10[_\.]11/i.test(t)?"OS X El Capitan":/Mac OS X 10[_\.]10/i.test(t)?"OS X Yosemite":/Mac OS X 10[_\.]/i.test(t)?"macOS":/Android/i.test(t)?"Android":/iPhone|iPad|iPod/i.test(t)?"iOS":/Linux/i.test(t)?"Linux":"Unknown"};var w=GM_info.script.name.toString(),y=GM_info.script.version.toString();!function(t){const e=document.createElement("script");e.setAttribute("bm-E",w),e.setAttribute("bm-B","color: cornflowerblue;"),e.textContent=`(${t})();`,document.documentElement?.appendChild(e),e.remove()}(()=>{const t=document.currentScript,e=t?.getAttribute("bm-E")||"Blue Marble",n=t?.getAttribute("bm-B")||"",i=new Map;window.addEventListener("message",t=>{const{source:o,endpoint:r,blobID:s,blobData:a,blink:m}=t.data;if(Date.now(),"blue-marble"==o&&s&&a&&!r){const t=i.get(s);"function"==typeof t?t(a):function(...t){(0,console.warn)(...t)}(`%c${e}%c: Attempted to retrieve a blob (%s) from queue, but the blobID was not a function! Skipping...`,n,"",s),i.delete(s)}});const o=window.fetch;window.fetch=async function(...t){const e=await o.apply(this,t),n=e.clone(),r=(t[0]instanceof Request?t[0]?.url:t[0])||"ignore",s=n.headers.get("content-type")||"";if(s.includes("application/json"))n.json().then(t=>{window.postMessage({source:"blue-marble",endpoint:r,jsonData:t},"*")}).catch(t=>{});else if(s.includes("image/")&&!r.includes("openfreemap")&&!r.includes("maps")){const t=Date.now(),e=await n.blob();return new Promise(o=>{const s=crypto.randomUUID();i.set(s,t=>{o(new Response(t,{headers:n.headers,status:n.status,statusText:n.statusText}))}),window.postMessage({source:"blue-marble",endpoint:r,blobID:s,blobData:e,blink:t})}).catch(t=>{Date.now()})}return e}});var v=GM_getResourceText("CSS-BM-File");GM_addStyle(v);var x=document.createElement("link");x.href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap",x.rel="preload",x.as="style",x.onload=function(){this.onload=null,this.rel="stylesheet"},document.head?.appendChild(x),new class{constructor(){this.lt=null,this.ct=null,this.ut="#bm-h"}dt(t){return this.ct=t,this.lt=new MutationObserver(t=>{for(const e of t)for(const t of e.addedNodes)t instanceof HTMLElement&&t.matches?.(this.ut)}),this}ht(){return this.lt}observe(t,e=!1,n=!1){t.observe(this.ct,{childList:e,subtree:n})}};var $=new r(w,y),S=(new r(w,y),new class{constructor(t,e,n){i(this,c),this.name=t,this.version=e,this.o=n,this.bt="1.0.0",this.gt=null,this.ft="!#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~",this.A=1e3,this.ot=3,this.wt=null,this.yt=null,this.vt="bm-C",this.xt="div#map canvas.maplibregl-canvas",this.$t=null,this.St="",this.rt=[],this.it=null,this.Mt=!0,this.Ot=new Map}Ct(){if(document.body.contains(this.wt))return this.wt;document.getElementById(this.vt)?.remove();const t=document.querySelector(this.xt),e=document.createElement("canvas");return e.id=this.vt,e.className="maplibregl-canvas",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.height=t?.clientHeight*(window.devicePixelRatio||1)+"px",e.style.width=t?.clientWidth*(window.devicePixelRatio||1)+"px",e.height=t?.clientHeight*(window.devicePixelRatio||1),e.width=t?.clientWidth*(window.devicePixelRatio||1),e.style.zIndex="8999",e.style.pointerEvents="none",t?.parentElement?.appendChild(e),this.wt=e,window.addEventListener("move",this.Dt),window.addEventListener("zoom",this.Tt),window.addEventListener("resize",this.kt),this.wt}async Nt(){return{whoami:this.name.replace(" ",""),scriptVersion:this.version,schemaVersion:this.bt,templates:{}}}async Bt(t,e,n){this.it||(this.it=await this.Nt()),this.o._(`Creating template at ${n.join(", ")}...`);const i=new f({displayName:e,F:0,j:a(this.gt||0,this.ft),file:t,coords:n}),{et:r,nt:s}=await i.Z(this.A);i.R=r;const m=`${i.F} ${i.j}`;i.H=m,this.it.templates[m]={name:i.displayName,coords:n.join(", "),enabled:!0,tiles:s,palette:i.X},this.rt=[],this.rt.push(i);const l=(new Intl.NumberFormat).format(i.J);this.o._(`Template created at ${n.join(", ")}! Total pixels: ${l}`);try{const t=document.querySelector("#bm-9");t&&(t.style.display=""),window.postMessage({source:"blue-marble",st:"bm-b"},"*")}catch(t){}await o(this,c,u).call(this)}It(){}async Lt(){this.it||(this.it=await this.Nt())}async Gt(t,e){if(!this.Mt)return t;const n=this.A*this.ot;e=e[0].toString().padStart(4,"0")+","+e[1].toString().padStart(4,"0");const i=this.rt;if(i.sort((t,e)=>t.F-e.F),!i.some(t=>!!t?.R&&(t.q&&t.q.size>0?t.q.has(e):Object.keys(t.R).some(t=>t.startsWith(e)))))return t;const o=i.map(t=>{const n=Object.keys(t.R).filter(t=>t.startsWith(e));if(0===n.length)return null;const i=n.map(e=>{const n=e.split(",");return{Wt:t.R[e],Pt:[n[0],n[1]],_t:[n[2],n[3]]}});return i?.[0]}).filter(Boolean),r=o?.length||0;let s=0,a=0,m=0;const l=await createImageBitmap(t),c=new OffscreenCanvas(n,n),u=c.getContext("2d");u.imageSmoothingEnabled=!1,u.beginPath(),u.rect(0,0,n,n),u.clip(),u.clearRect(0,0,n,n),u.drawImage(l,0,0,n,n);let d=null;try{d=u.getImageData(0,0,n,n).data}catch(t){}for(const t of o){if(d)try{const e=t.Wt.width,i=t.Wt.height,o=new OffscreenCanvas(e,i).getContext("2d",{tt:!0});o.imageSmoothingEnabled=!1,o.clearRect(0,0,e,i),o.drawImage(t.Wt,0,0);const r=o.getImageData(0,0,e,i).data,l=Number(t._t[0])*this.ot,c=Number(t._t[1])*this.ot;for(let t=0;t=n||u>=n)continue;const h=4*(t*e+i),b=r[h],p=r[h+1],g=r[h+2];if(r[h+3]<64){try{const t=this.rt?.[0],e=4*(u*n+o),i=d[e],r=d[e+1],s=d[e+2],m=d[e+3],l=`${i},${r},${s}`,c=!!t?.Y&&t.Y.has(l);m>=64&&c&&a++}catch(t){}continue}try{const t=this.rt?.[0];if(t?.Y&&!t.Y.has(`${b},${p},${g}`))continue}catch(t){}m++;const f=4*(u*n+o),w=d[f],y=d[f+1],v=d[f+2];d[f+3]<64||(w===b&&y===p&&v===g?s++:a++)}}catch(t){}try{const e=this.rt?.[0],n=e?.X||{};if(Object.values(n).some(t=>!1===t?.enabled)){const i=t.Wt.width,o=t.Wt.height,r=new OffscreenCanvas(i,o),s=r.getContext("2d",{tt:!0});s.imageSmoothingEnabled=!1,s.clearRect(0,0,i,o),s.drawImage(t.Wt,0,0);const a=s.getImageData(0,0,i,o),m=a.data;for(let t=0;t0){const t=e;this.Ot.set(t,{Et:s,required:m,Ft:a});let n=0,i=0,o=0;for(const t of this.Ot.values())n+=t.Et||0,i+=t.required||0,o+=t.Ft||0;const l=this.rt.reduce((t,e)=>t+(e.U||e.J||0),0),c=l>0?l:i,u=(new Intl.NumberFormat).format(n),d=(new Intl.NumberFormat).format(c),h=(new Intl.NumberFormat).format(c-n);this.o._(`Displaying ${r} template${1==r?"":"s"}.\nPainted ${u} / ${d} • Wrong ${h}`)}else this.o._(`Displaying ${r} templates.`);return await c.convertToBlob({type:"image/png"})}jt(t){"BlueMarble"==t?.whoami&&o(this,c,d).call(this,t)}Rt(t){this.Mt=t}}(w,y,$)),M=new class{constructor(t){i(this,h),this.At=t,this.Jt=!1,this.Ut=[],this.Vt=[]}Xt(t){window.addEventListener("message",async e=>{const n=e.data,i=n.jsonData;if(!n||"blue-marble"!==n.source)return;if(!n.endpoint)return;const o=n.endpoint?.split("?")[0].split("/").filter(t=>t&&isNaN(Number(t))).filter(t=>t&&!t.includes(".")).pop();switch(o){case"me":if(i.status&&"2"!=i.status?.toString()[0])return void t.P("You are not logged in!\nCould not fetch userdata.");const e=Math.ceil(Math.pow(Math.floor(i.level)*Math.pow(30,.65),1/.65)-i.pixelsPainted);i.id||i.id,this.At.gt=i.id,t.B("bm-u",`Username: ${function(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}(i.name)}`),t.B("bm-p",`Droplets: ${(new Intl.NumberFormat).format(i.droplets)}`),t.B("bm-i",`Next level in ${(new Intl.NumberFormat).format(e)} pixel${1==e?"":"s"}`);break;case"pixel":const o=n.endpoint.split("?")[0].split("/").filter(t=>t&&!isNaN(Number(t))),a=new URLSearchParams(n.endpoint.split("?")[1]),m=[a.get("x"),a.get("y")];if(this.Ut.length&&(!o.length||!m.length))return void t.P("Coordinates are malformed!\nDid you try clicking the canvas first?");this.Ut=[...o,...m];const l=(r=o,s=m,[parseInt(r[0])%4*1e3+parseInt(s[0]),parseInt(r[1])%4*1e3+parseInt(s[1])]),c=document.querySelectorAll("span");for(const t of c)if(t.textContent.trim().includes(`${l[0]}, ${l[1]}`)){let e=document.querySelector("#bm-h");const n=`(Tl X: ${o[0]}, Tl Y: ${o[1]}, Px X: ${m[0]}, Px Y: ${m[1]})`;e?e.textContent=n:(e=document.createElement("span"),e.id="bm-h",e.textContent=n,e.style="margin-left: calc(var(--spacing)*3); font-size: small;",t.parentNode.parentNode.parentNode.insertAdjacentElement("afterend",e))}break;case"tiles":let u=n.endpoint.split("/");u=[parseInt(u[u.length-2]),parseInt(u[u.length-1].replace(".png",""))];const d=n.blobID,h=n.blobData,b=await this.At.Gt(h,u);window.postMessage({source:"blue-marble",blobID:d,blobData:b,blink:n.blink});break;case"robots":this.Jt="false"==i.userscript?.toString().toLowerCase()}var r,s})}async qt(t){let e=GM_getValue("bmUserSettings","{}");if(e=JSON.parse(e),!e||!e.telemetry||!e.uuid)return;const n=navigator.userAgent;let i=await o(this,h,b).call(this,n),r=o(this,h,p).call(this,n);GM_xmlhttpRequest({method:"POST",url:"https://telemetry.thebluecorner.net/heartbeat",headers:{"Content-Type":"application/json"},data:JSON.stringify({uuid:e.uuid,version:t,browser:i,os:r}),onload:t=>{200!==t.status&&s("Failed to send heartbeat:",t.statusText)},onerror:t=>{s("Error sending heartbeat:",t)}})}}(S);$.u(M);var O=JSON.parse(GM_getValue("bmTemplates","{}"));S.jt(O);var C=JSON.parse(GM_getValue("bmUserSettings","{}"));if(0==Object.keys(C).length){const t=crypto.randomUUID();GM.setValue("bmUserSettings",JSON.stringify({uuid:t}))}if(setInterval(()=>M.qt(y),18e5),null==C?.telemetry||C?.telemetry>1){const t=new r(w,y);t.u(M),t.v({id:"bm-d",style:"top: 0px; left: 0px; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; z-index: 9999;"}).v({id:"bm-7",style:"display: flex; flex-direction: column; align-items: center;"}).v({id:"bm-1",style:"margin-top: 10%;"}).O(1,{textContent:`${w} Telemetry`}).h().h().v({id:"bm-e",style:"max-width: 50%; overflow-y: auto; max-height: 80vh;"}).C().h().D().h().v({style:"width: fit-content; margin: auto; text-align: center;"}).k({id:"bm-8",textContent:"More Information"},(t,e)=>{e.onclick=()=>{window.open("https://github.com/SwingTheVine/Wplace-TelemetryServer#telemetry-data","_blank","noopener noreferrer")}}).h().h().D().h().v({style:"width: fit-content; margin: auto; text-align: center;"}).k({id:"bm-5",textContent:"Enable Telemetry",style:"margin-right: 2ch;"},(t,e)=>{e.onclick=()=>{const t=JSON.parse(GM_getValue("bmUserSettings","{}"));t.telemetry=1,GM.setValue("bmUserSettings",JSON.stringify(t));const e=document.getElementById("bm-d");e&&(e.style.display="none")}}).h().k({id:"bm-2",textContent:"Disable Telemetry"},(t,e)=>{e.onclick=()=>{const t=JSON.parse(GM_getValue("bmUserSettings","{}"));t.telemetry=0,GM.setValue("bmUserSettings",JSON.stringify(t));const e=document.getElementById("bm-d");e&&(e.style.display="none")}}).h().h().D().h().$({textContent:"We collect anonymous telemetry data such as your browser, OS, and script version to make the experience better for everyone. The data is never shared personally. The data is never sold. You can turn this off by pressing the 'Disable' button, but keeping it on helps us improve features and reliability faster. Thank you for supporting the Blue Marble!"}).h().$({textContent:'You can disable telemetry by pressing the "Disable" button below.'}).h().h().h().p(document.body)}!function(){let t=!1,e={};try{e=JSON.parse(GM_getValue("bmCoords","{}"))||{}}catch(t){e={}}const n=()=>{try{const t=Number(document.querySelector("#bm-v")?.value||""),e=Number(document.querySelector("#bm-w")?.value||""),n={Ht:t,Yt:e,px:Number(document.querySelector("#bm-x")?.value||""),zt:Number(document.querySelector("#bm-y")?.value||"")};GM.setValue("bmCoords",JSON.stringify(n))}catch(t){}};$.v({id:"bm-A",style:"top: 10px; right: 75px;"}).v({id:"bm-j"}).v({id:"bm-z"}).h().M({alt:"Blue Marble Icon - Click to minimize/maximize",src:"https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/dist/assets/Favicon.png",style:"cursor: pointer;"},(e,n)=>{n.addEventListener("click",()=>{t=!t;const i=document.querySelector("#bm-A"),o=document.querySelector("#bm-j"),r=document.querySelector("#bm-z"),s=document.querySelector("#bm-k"),a=document.querySelector("#bm-q"),m=document.querySelector("#bm-r"),l=document.querySelector("#bm-s"),c=document.querySelector("#bm-l"),u=document.querySelectorAll("#bm-k input");t||(i.style.width="auto",i.style.maxWidth="300px",i.style.minWidth="200px",i.style.padding="10px"),["#bm-A h1","#bm-f","#bm-A hr","#bm-c > *:not(#bm-k)","#bm-a","#bm-6",`#${e.i}`,"#bm-9"].forEach(e=>{document.querySelectorAll(e).forEach(e=>{e.style.display=t?"none":""})}),t?(s&&(s.style.display="none"),a&&(a.style.display="none"),m&&(m.style.display="none"),l&&(l.style.display="none"),c&&(c.style.display="none"),u.forEach(t=>{t.style.display="none"}),i.style.width="60px",i.style.height="76px",i.style.maxWidth="60px",i.style.minWidth="60px",i.style.padding="8px",n.style.marginLeft="3px",o.style.textAlign="center",o.style.margin="0",o.style.marginBottom="0",r&&(r.style.display="",r.style.marginBottom="0.25em")):(s&&(s.style.display="",s.style.flexDirection="",s.style.justifyContent="",s.style.alignItems="",s.style.gap="",s.style.textAlign="",s.style.margin=""),a&&(a.style.display=""),m&&(m.style.display="",m.style.marginTop=""),l&&(l.style.display="",l.style.marginTop=""),c&&(c.style.display="",c.style.marginTop=""),u.forEach(t=>{t.style.display=""}),n.style.marginLeft="",i.style.padding="10px",o.style.textAlign="",o.style.margin="",o.style.marginBottom="",r&&(r.style.marginBottom="0.5em"),i.style.width="",i.style.height=""),n.alt=t?"Blue Marble Icon - Minimized (Click to maximize)":"Blue Marble Icon - Maximized (Click to minimize)"})}).h().O(1,{textContent:w}).h().h().C().h().v({id:"bm-f"}).$({id:"bm-u",textContent:"Username:"}).h().$({id:"bm-p",textContent:"Droplets:"}).h().$({id:"bm-i",textContent:"Next level in..."}).h().h().C().h().v({id:"bm-c"}).v({id:"bm-k"}).k({id:"bm-q",className:"bm-D",style:"margin-top: 0;",innerHTML:''},(t,e)=>{e.onclick=()=>{const e=t.t?.Ut;e?.[0]?(t.B("bm-v",e?.[0]||""),t.B("bm-w",e?.[1]||""),t.B("bm-x",e?.[2]||""),t.B("bm-y",e?.[3]||""),n()):t.P("Coordinates are malformed! Did you try clicking on the canvas first?")}}).h().I({type:"number",id:"bm-v",placeholder:"Tl X",min:0,max:2047,step:1,required:!0,value:e.Ht??""},(t,e)=>{e.addEventListener("paste",t=>{let e=(t.clipboardData||window.clipboardData).getData("text").split(" ").filter(t=>t).map(Number).filter(t=>!isNaN(t));if(4!==e.length)return;let n=(i=document,coords=[],coords.push(i.querySelector("#bm-v")),coords.push(i.querySelector("#bm-w")),coords.push(i.querySelector("#bm-x")),coords.push(i.querySelector("#bm-y")),coords);var i;for(let t=0;tn();e.addEventListener("input",i),e.addEventListener("change",i)}).h().I({type:"number",id:"bm-w",placeholder:"Tl Y",min:0,max:2047,step:1,required:!0,value:e.Yt??""},(t,e)=>{const i=()=>n();e.addEventListener("input",i),e.addEventListener("change",i)}).h().I({type:"number",id:"bm-x",placeholder:"Px X",min:0,max:2047,step:1,required:!0,value:e.px??""},(t,e)=>{const i=()=>n();e.addEventListener("input",i),e.addEventListener("change",i)}).h().I({type:"number",id:"bm-y",placeholder:"Px Y",min:0,max:2047,step:1,required:!0,value:e.zt??""},(t,e)=>{const i=()=>n();e.addEventListener("input",i),e.addEventListener("change",i)}).h().h().v({id:"bm-9",style:"max-height: 140px; overflow: auto; border: 1px solid rgba(255,255,255,0.1); padding: 4px; border-radius: 4px; display: none;"}).v({style:"display: flex; gap: 6px; margin-bottom: 6px;"}).k({id:"bm-3",textContent:"Enable All"},(t,e)=>{e.onclick=()=>{const e=S.rt[0];e?.X&&(Object.values(e.X).forEach(t=>t.enabled=!0),buildColorFilterList(),t._("Enabled all colors"))}}).h().k({id:"bm-0",textContent:"Disable All"},(t,e)=>{e.onclick=()=>{const e=S.rt[0];e?.X&&(Object.values(e.X).forEach(t=>t.enabled=!1),buildColorFilterList(),t._("Disabled all colors"))}}).h().h().v({id:"bm-g"}).h().h().L({id:"bm-a",textContent:"Upload Template",accept:"image/png, image/jpeg, image/webp, image/bmp, image/gif"}).h().v({id:"bm-4"}).k({id:"bm-s",textContent:"Enable"},(t,e)=>{e.onclick=()=>{t.t?.At?.Rt(!0),t._("Enabled templates!")}}).h().k({id:"bm-r",textContent:"Create"},(t,e)=>{e.onclick=()=>{const e=document.querySelector("#bm-a"),n=document.querySelector("#bm-v");if(!n.checkValidity())return n.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");const i=document.querySelector("#bm-w");if(!i.checkValidity())return i.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");const o=document.querySelector("#bm-x");if(!o.checkValidity())return o.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");const r=document.querySelector("#bm-y");if(!r.checkValidity())return r.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");e?.files[0]?(S.Bt(e.files[0],e.files[0]?.name.replace(/\.[^/.]+$/,""),[Number(n.value),Number(i.value),Number(o.value),Number(r.value)]),t._("Drew to canvas!")):t.P("No file selected!")}}).h().k({id:"bm-l",textContent:"Disable"},(t,e)=>{e.onclick=()=>{t.t?.At?.Rt(!1),t._("Disabled templates!")}}).h().h().G({id:$.i,placeholder:`Status: Sleeping...\nVersion: ${y}`,readOnly:!0}).h().v({id:"bm-6"}).v().k({id:"bm-m",className:"bm-D",innerHTML:"🎨",title:"Template Color Converter"},(t,e)=>{e.addEventListener("click",()=>{window.open("https://pepoafonso.github.io/color_converter_wplace/","_blank","noopener noreferrer")})}).h().k({id:"bm-n",className:"bm-D",innerHTML:"🌐",title:"Official Blue Marble Website"},(t,e)=>{e.addEventListener("click",()=>{window.open("https://bluemarble.camilledaguin.fr/","_blank","noopener noreferrer")})}).h().h().S({textContent:"Made by SwingTheVine",style:"margin-top: auto;"}).h().h().h().p(document.body),window.buildColorFilterList=function(){const t=document.querySelector("#bm-g"),e=S.rt?.[0];if(!t||!e?.X)return void(t&&(t.innerHTML="No template colors to display."));t.innerHTML="";const n=Object.entries(e.X).sort((t,e)=>e[1].count-t[1].count);for(const[e,i]of n){const[n,o,r]=e.split(",").map(Number),s=document.createElement("div");s.style.display="flex",s.style.alignItems="center",s.style.gap="8px",s.style.margin="4px 0";const a=document.createElement("div");a.style.width="14px",a.style.height="14px",a.style.border="1px solid rgba(255,255,255,0.5)",a.style.background=`rgb(${n},${o},${r})`;const m=document.createElement("span");m.style.fontSize="12px";let l=`${i.count.toLocaleString()}`;try{const t=S.rt?.[0]?.K?.get(e);if(t&&"number"==typeof t.id){const e=t?.name||`rgb(${n},${o},${r})`,i=t.premium?"★ ":"";l=`#${t.id} ${i}${e} • ${l}`}}catch(t){}m.textContent=l;const c=document.createElement("input");c.type="checkbox",c.checked=!!i.enabled,c.addEventListener("change",()=>{i.enabled=c.checked,$._(`${c.checked?"Enabled":"Disabled"} ${e}`);try{const t=S.rt?.[0],e=t?.H;t&&e&&S.it?.templates?.[e]&&(S.it.templates[e].palette=t.X,GM.setValue("bmTemplates",JSON.stringify(S.it)))}catch(t){}}),s.appendChild(c),s.appendChild(a),s.appendChild(m),t.appendChild(s)}},window.addEventListener("message",t=>{if("bm-b"===t?.data?.st)try{buildColorFilterList()}catch(t){}}),setTimeout(()=>{try{if(S.rt?.length>0){const t=document.querySelector("#bm-9");t&&(t.style.display=""),buildColorFilterList()}}catch(t){}},0)}(),$.W("#bm-A","#bm-z"),M.Xt($),new MutationObserver((t,e)=>{const n=document.querySelector("#color-1");if(!n)return;let i=document.querySelector("#bm-t");if(!i){i=document.createElement("button"),i.id="bm-t",i.textContent="Move ↑",i.className="btn btn-soft",i.onclick=function(){const t=this.parentNode.parentNode.parentNode.parentNode,e="Move ↑"==this.textContent;t.parentNode.className=t.parentNode.className.replace(e?"bottom":"top",e?"top":"bottom"),t.style.borderTopLeftRadius=e?"0px":"var(--radius-box)",t.style.borderTopRightRadius=e?"0px":"var(--radius-box)",t.style.borderBottomLeftRadius=e?"var(--radius-box)":"0px",t.style.borderBottomRightRadius=e?"var(--radius-box)":"0px",this.textContent=e?"Move ↓":"Move ↑"};const t=n.parentNode.parentNode.parentNode.parentNode.querySelector("h2");t.parentNode?.appendChild(i)}}).observe(document.body,{childList:!0,subtree:!0}),function(...t){(0,console.log)(...t)}(`%c${w}%c (${y}) userscript has loaded!`,"color: cornflowerblue;","")})(); +(()=>{var t,e,n=t=>{throw TypeError(t)},i=(t,e,i)=>e.has(t)?n("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),o=(t,e,i)=>(((t,e)=>{e.has(t)||n("Cannot access private method")})(t,e),i),r=class{constructor(e,n){i(this,t),this.name=e,this.version=n,this.t=null,this.i="bm-o",this.o=null,this.m=null,this.l=[]}u(t){this.t=t}h(){return this.l.length>0&&(this.m=this.l.pop()),this}p(t){t?.appendChild(this.o),this.o=null,this.m=null,this.l=[]}v(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"div",{},n)),this}$(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"p",{},n)),this}S(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"small",{},n)),this}M(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"img",{},n)),this}O(n,i={},r=()=>{}){return r(this,o(this,t,e).call(this,"h"+n,{},i)),this}C(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"hr",{},n)),this}D(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"br",{},n)),this}T(n={},i=()=>{}){const r=o(this,t,e).call(this,"label",{textContent:n.textContent??""});delete n.textContent;const s=o(this,t,e).call(this,"input",{type:"checkbox"},n);return r.insertBefore(s,r.firstChild),this.h(),i(this,r,s),this}k(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"button",{},n)),this}N(n={},i=()=>{}){const r=n.title??n.textContent??"Help: No info";delete n.textContent,n.title=`Help: ${r}`;const s={textContent:"?",className:"bm-D",onclick:()=>{this.B(this.i,r)}};return i(this,o(this,t,e).call(this,"button",s,n)),this}I(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"input",{},n)),this}L(n={},i=()=>{}){const r=n.textContent??"";delete n.textContent;const s=o(this,t,e).call(this,"div"),a=o(this,t,e).call(this,"input",{type:"file",style:"display: none !important; visibility: hidden !important; position: absolute !important; left: -9999px !important; width: 0 !important; height: 0 !important; opacity: 0 !important;"},n);this.h();const m=o(this,t,e).call(this,"button",{textContent:r});return this.h(),this.h(),a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),m.addEventListener("click",()=>{a.click()}),a.addEventListener("change",()=>{m.style.maxWidth=`${m.offsetWidth}px`,a.files.length>0?m.textContent=a.files[0].name:m.textContent=r}),i(this,s,a,m),this}G(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"textarea",{},n)),this}B(t,e,n=!1){const i=document.getElementById(t.replace(/^#/,""));i&&(i instanceof HTMLInputElement?i.value=e:n?i.textContent=e:i.innerHTML=e)}W(t,e){let n,i=!1,o=0,r=null,s=0,a=0,m=0,l=0;if(t=document.querySelector("#"==t?.[0]?t:"#"+t),e=document.querySelector("#"==e?.[0]?e:"#"+e),!t||!e)return void this.P(`Can not drag! ${t?"":"moveMe"} ${t||e?"":"and "}${e?"":"iMoveThings "}was not found!`);const c=()=>{if(i){const e=Math.abs(s-m),n=Math.abs(a-l);(e>.5||n>.5)&&(s=m,a=l,t.style.transform=`translate(${s}px, ${a}px)`,t.style.left="0px",t.style.top="0px",t.style.right=""),r=requestAnimationFrame(c)}};let u=null;const d=(d,h)=>{i=!0,u=t.getBoundingClientRect(),n=d-u.left,o=h-u.top;const b=window.getComputedStyle(t).transform;if(b&&"none"!==b){const t=new DOMMatrix(b);s=t.m41,a=t.m42}else s=u.left,a=u.top;m=s,l=a,document.body.style.userSelect="none",e.classList.add("dragging"),r&&cancelAnimationFrame(r),c()},h=()=>{i=!1,r&&(cancelAnimationFrame(r),r=null),document.body.style.userSelect="",e.classList.remove("dragging")};e.addEventListener("mousedown",function(t){t.preventDefault(),d(t.clientX,t.clientY)}),e.addEventListener("touchstart",function(t){const e=t?.touches?.[0];e&&(d(e.clientX,e.clientY),t.preventDefault())},{passive:!1}),document.addEventListener("mousemove",function(t){i&&u&&(m=t.clientX-n,l=t.clientY-o)},{passive:!0}),document.addEventListener("touchmove",function(t){if(i&&u){const e=t?.touches?.[0];if(!e)return;m=e.clientX-n,l=e.clientY-o,t.preventDefault()}},{passive:!1}),document.addEventListener("mouseup",h),document.addEventListener("touchend",h),document.addEventListener("touchcancel",h)}_(t){(0,console.info)(`${this.name}: ${t}`),this.B(this.i,"Status: "+t,!0)}P(t){(0,console.error)(`${this.name}: ${t}`),this.B(this.i,"Error: "+t,!0)}};function s(...t){(0,console.error)(...t)}function a(t,e){if(0===t)return e[0];let n="";const i=e.length;for(;t>0;)n=e[t%i]+n,t=Math.floor(t/i);return n}function m(t){let e="";for(let n=0;n"transparent"!==(t?.name||"").toLowerCase()&&Array.isArray(t?.rgb)).map(t=>`${t.rgb[0]},${t.rgb[1]},${t.rgb[2]}`));const l="222,250,206";this.Y.add(l),this.K=new Map(m.filter(t=>Array.isArray(t?.rgb)).map(t=>[`${t.rgb[0]},${t.rgb[1]},${t.rgb[2]}`,{id:t.id,premium:!!t.premium,name:t.name}]));try{const t=m.find(t=>"transparent"===(t?.name||"").toLowerCase());t&&Array.isArray(t.rgb)&&this.K.set(l,{id:t.id,premium:!!t.premium,name:t.name})}catch(t){}}async Z(){const t=await createImageBitmap(this.file),e=t.width,n=t.height,i=e*n;this.J=i;try{const i=new OffscreenCanvas(e,n).getContext("2d",{tt:!0});i.imageSmoothingEnabled=!1,i.clearRect(0,0,e,n),i.drawImage(t,0,0);const o=i.getImageData(0,0,e,n).data;let r=0,s=0;const a=new Map;for(let t=0;t0){for(const t in e){const n=t,i=e[t];if(e.hasOwnProperty(t)){const t=n.split(" "),o=Number(t?.[0]),r=t?.[1]||"0",s=i.name||`Template ${o||""}`,a=i.tiles,m={};let c=0;const u=new Map;for(const t in a)if(a.hasOwnProperty(t)){const e=l(a[t]),n=new Blob([e],{type:"image/png"}),i=await createImageBitmap(n);m[t]=i;try{const t=i.width,e=i.height,n=new OffscreenCanvas(t,e).getContext("2d",{tt:!0});n.imageSmoothingEnabled=!1,n.clearRect(0,0,t,e),n.drawImage(i,0,0);const o=n.getImageData(0,0,t,e).data;for(let n=0;n{d.q?.add(t.split(",").slice(0,2).join(","))})}catch(t){}try{const t=e?.[n]?.palette;if(t)for(const[e,n]of Object.entries(t))d.X[e]?d.X[e].enabled=!!n?.enabled:d.X[e]={count:n?.count||0,enabled:!!n?.enabled}}catch(t){}d.H=n,this.rt.push(d)}}try{const t=document.querySelector("#bm-9");t&&(t.style.display=""),window.postMessage({source:"blue-marble",st:"bm-b"},"*")}catch(t){}}},h=new WeakSet,b=async function(t=navigator.userAgent){return(t=t||"").includes("OPR/")||t.includes("Opera")?"Opera":t.includes("Edg/")?"Edge":t.includes("Vivaldi")?"Vivaldi":t.includes("YaBrowser")?"Yandex":t.includes("Kiwi")?"Kiwi":t.includes("Brave")?"Brave":t.includes("Firefox/")?"Firefox":t.includes("Chrome/")?"Chrome":t.includes("Safari/")?"Safari":navigator.brave&&"function"==typeof navigator.brave.isBrave&&await navigator.brave.isBrave()?"Brave":"Unknown"},p=function(t=navigator.userAgent){return/Windows NT 11/i.test(t=t||"")?"Windows 11":/Windows NT 10/i.test(t)?"Windows 10":/Windows NT 6\.3/i.test(t)?"Windows 8.1":/Windows NT 6\.2/i.test(t)?"Windows 8":/Windows NT 6\.1/i.test(t)?"Windows 7":/Windows NT 6\.0/i.test(t)?"Windows Vista":/Windows NT 5\.1|Windows XP/i.test(t)?"Windows XP":/Mac OS X 10[_\.]15/i.test(t)?"macOS Catalina":/Mac OS X 10[_\.]14/i.test(t)?"macOS Mojave":/Mac OS X 10[_\.]13/i.test(t)?"macOS High Sierra":/Mac OS X 10[_\.]12/i.test(t)?"macOS Sierra":/Mac OS X 10[_\.]11/i.test(t)?"OS X El Capitan":/Mac OS X 10[_\.]10/i.test(t)?"OS X Yosemite":/Mac OS X 10[_\.]/i.test(t)?"macOS":/Android/i.test(t)?"Android":/iPhone|iPad|iPod/i.test(t)?"iOS":/Linux/i.test(t)?"Linux":"Unknown"};var w=GM_info.script.name.toString(),y=GM_info.script.version.toString();!function(t){const e=document.createElement("script");e.setAttribute("bm-E",w),e.setAttribute("bm-B","color: cornflowerblue;"),e.textContent=`(${t})();`,document.documentElement?.appendChild(e),e.remove()}(()=>{const t=document.currentScript,e=t?.getAttribute("bm-E")||"Blue Marble",n=t?.getAttribute("bm-B")||"",i=new Map;window.addEventListener("message",t=>{const{source:o,endpoint:r,blobID:s,blobData:a,blink:m}=t.data;if(Date.now(),"blue-marble"==o&&s&&a&&!r){const t=i.get(s);"function"==typeof t?t(a):function(...t){(0,console.warn)(...t)}(`%c${e}%c: Attempted to retrieve a blob (%s) from queue, but the blobID was not a function! Skipping...`,n,"",s),i.delete(s)}});const o=window.fetch;window.fetch=async function(...t){const e=await o.apply(this,t),n=e.clone(),r=(t[0]instanceof Request?t[0]?.url:t[0])||"ignore",s=n.headers.get("content-type")||"";if(s.includes("application/json"))n.json().then(t=>{window.postMessage({source:"blue-marble",endpoint:r,jsonData:t},"*")}).catch(t=>{});else if(s.includes("image/")&&!r.includes("openfreemap")&&!r.includes("maps")){const t=Date.now(),e=await n.blob();return new Promise(o=>{const s=crypto.randomUUID();i.set(s,t=>{o(new Response(t,{headers:n.headers,status:n.status,statusText:n.statusText}))}),window.postMessage({source:"blue-marble",endpoint:r,blobID:s,blobData:e,blink:t})}).catch(t=>{Date.now()})}return e}});var v=GM_getResourceText("CSS-BM-File");GM_addStyle(v);var x=document.createElement("link");x.href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap",x.rel="preload",x.as="style",x.onload=function(){this.onload=null,this.rel="stylesheet"},document.head?.appendChild(x),new class{constructor(){this.lt=null,this.ct=null,this.ut="#bm-h"}dt(t){return this.ct=t,this.lt=new MutationObserver(t=>{for(const e of t)for(const t of e.addedNodes)t instanceof HTMLElement&&t.matches?.(this.ut)}),this}ht(){return this.lt}observe(t,e=!1,n=!1){t.observe(this.ct,{childList:e,subtree:n})}};var $=new r(w,y),S=(new r(w,y),new class{constructor(t,e,n){i(this,c),this.name=t,this.version=e,this.o=n,this.bt="1.0.0",this.gt=null,this.ft="!#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~",this.A=1e3,this.ot=3,this.wt=null,this.yt=null,this.vt="bm-C",this.xt="div#map canvas.maplibregl-canvas",this.$t=null,this.St="",this.rt=[],this.it=null,this.Mt=!0,this.Ot=new Map}Ct(){if(document.body.contains(this.wt))return this.wt;document.getElementById(this.vt)?.remove();const t=document.querySelector(this.xt),e=document.createElement("canvas");return e.id=this.vt,e.className="maplibregl-canvas",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.height=t?.clientHeight*(window.devicePixelRatio||1)+"px",e.style.width=t?.clientWidth*(window.devicePixelRatio||1)+"px",e.height=t?.clientHeight*(window.devicePixelRatio||1),e.width=t?.clientWidth*(window.devicePixelRatio||1),e.style.zIndex="8999",e.style.pointerEvents="none",t?.parentElement?.appendChild(e),this.wt=e,window.addEventListener("move",this.Dt),window.addEventListener("zoom",this.Tt),window.addEventListener("resize",this.kt),this.wt}async Nt(){return{whoami:this.name.replace(" ",""),scriptVersion:this.version,schemaVersion:this.bt,templates:{}}}async Bt(t,e,n){this.it||(this.it=await this.Nt()),this.o._(`Creating template at ${n.join(", ")}...`);const i=new f({displayName:e,F:0,j:a(this.gt||0,this.ft),file:t,coords:n}),{et:r,nt:s}=await i.Z(this.A);i.R=r;const m=`${i.F} ${i.j}`;i.H=m,this.it.templates[m]={name:i.displayName,coords:n.join(", "),enabled:!0,tiles:s,palette:i.X},this.rt=[],this.rt.push(i);const l=(new Intl.NumberFormat).format(i.J);this.o._(`Template created at ${n.join(", ")}! Total pixels: ${l}`);try{const t=document.querySelector("#bm-9");t&&(t.style.display=""),window.postMessage({source:"blue-marble",st:"bm-b"},"*")}catch(t){}await o(this,c,u).call(this)}It(){}async Lt(){this.it||(this.it=await this.Nt())}async Gt(t,e){if(!this.Mt)return t;const n=this.A*this.ot;e=e[0].toString().padStart(4,"0")+","+e[1].toString().padStart(4,"0");const i=this.rt;if(i.sort((t,e)=>t.F-e.F),!i.some(t=>!!t?.R&&(t.q&&t.q.size>0?t.q.has(e):Object.keys(t.R).some(t=>t.startsWith(e)))))return t;const o=i.map(t=>{const n=Object.keys(t.R).filter(t=>t.startsWith(e));if(0===n.length)return null;const i=n.map(e=>{const n=e.split(",");return{Wt:t.R[e],Pt:[n[0],n[1]],_t:[n[2],n[3]]}});return i?.[0]}).filter(Boolean),r=o?.length||0;let s=0,a=0,m=0;const l=await createImageBitmap(t),c=new OffscreenCanvas(n,n),u=c.getContext("2d");u.imageSmoothingEnabled=!1,u.beginPath(),u.rect(0,0,n,n),u.clip(),u.clearRect(0,0,n,n),u.drawImage(l,0,0,n,n);let d=null;try{d=u.getImageData(0,0,n,n).data}catch(t){}for(const t of o){if(d)try{const e=t.Wt.width,i=t.Wt.height,o=new OffscreenCanvas(e,i).getContext("2d",{tt:!0});o.imageSmoothingEnabled=!1,o.clearRect(0,0,e,i),o.drawImage(t.Wt,0,0);const r=o.getImageData(0,0,e,i).data,l=Number(t._t[0])*this.ot,c=Number(t._t[1])*this.ot;for(let t=0;t=n||u>=n)continue;const h=4*(t*e+i),b=r[h],p=r[h+1],g=r[h+2];if(r[h+3]<64){try{const t=this.rt?.[0],e=4*(u*n+o),i=d[e],r=d[e+1],s=d[e+2],m=d[e+3],l=`${i},${r},${s}`,c=!!t?.Y&&t.Y.has(l);m>=64&&c&&a++}catch(t){}continue}try{const t=this.rt?.[0];if(t?.Y&&!t.Y.has(`${b},${p},${g}`))continue}catch(t){}m++;const f=4*(u*n+o),w=d[f],y=d[f+1],v=d[f+2];d[f+3]<64||(w===b&&y===p&&v===g?s++:a++)}}catch(t){}try{const e=this.rt?.[0],n=e?.X||{};if(Object.values(n).some(t=>!1===t?.enabled)){const i=t.Wt.width,o=t.Wt.height,r=new OffscreenCanvas(i,o),s=r.getContext("2d",{tt:!0});s.imageSmoothingEnabled=!1,s.clearRect(0,0,i,o),s.drawImage(t.Wt,0,0);const a=s.getImageData(0,0,i,o),m=a.data;for(let t=0;t0){const t=e;this.Ot.set(t,{Et:s,required:m,Ft:a});let n=0,i=0,o=0;for(const t of this.Ot.values())n+=t.Et||0,i+=t.required||0,o+=t.Ft||0;const l=this.rt.reduce((t,e)=>t+(e.U||e.J||0),0),c=l>0?l:i,u=(new Intl.NumberFormat).format(n),d=(new Intl.NumberFormat).format(c),h=(new Intl.NumberFormat).format(c-n);this.o._(`Displaying ${r} template${1==r?"":"s"}.\nPainted ${u} / ${d} • Wrong ${h}`)}else this.o._(`Displaying ${r} templates.`);return await c.convertToBlob({type:"image/png"})}jt(t){"BlueMarble"==t?.whoami&&o(this,c,d).call(this,t)}Rt(t){this.Mt=t}}(w,y,$)),M=new class{constructor(t){i(this,h),this.At=t,this.Jt=!1,this.Ut=[],this.Vt=[]}Xt(t){window.addEventListener("message",async e=>{const n=e.data,i=n.jsonData;if(!n||"blue-marble"!==n.source)return;if(!n.endpoint)return;const o=n.endpoint?.split("?")[0].split("/").filter(t=>t&&isNaN(Number(t))).filter(t=>t&&!t.includes(".")).pop();switch(o){case"me":if(i.status&&"2"!=i.status?.toString()[0])return void t.P("You are not logged in!\nCould not fetch userdata.");const e=Math.ceil(Math.pow(Math.floor(i.level)*Math.pow(30,.65),1/.65)-i.pixelsPainted);i.id||i.id,this.At.gt=i.id,t.B("bm-u",`Username: ${function(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}(i.name)}`),t.B("bm-p",`Droplets: ${(new Intl.NumberFormat).format(i.droplets)}`),t.B("bm-i",`Next level in ${(new Intl.NumberFormat).format(e)} pixel${1==e?"":"s"}`);break;case"pixel":const o=n.endpoint.split("?")[0].split("/").filter(t=>t&&!isNaN(Number(t))),a=new URLSearchParams(n.endpoint.split("?")[1]),m=[a.get("x"),a.get("y")];if(this.Ut.length&&(!o.length||!m.length))return void t.P("Coordinates are malformed!\nDid you try clicking the canvas first?");this.Ut=[...o,...m];const l=(r=o,s=m,[parseInt(r[0])%4*1e3+parseInt(s[0]),parseInt(r[1])%4*1e3+parseInt(s[1])]),c=document.querySelectorAll("span");for(const t of c)if(t.textContent.trim().includes(`${l[0]}, ${l[1]}`)){let e=document.querySelector("#bm-h");const n=`(Tl X: ${o[0]}, Tl Y: ${o[1]}, Px X: ${m[0]}, Px Y: ${m[1]})`;e?e.textContent=n:(e=document.createElement("span"),e.id="bm-h",e.textContent=n,e.style="margin-left: calc(var(--spacing)*3); font-size: small;",t.parentNode.parentNode.parentNode.insertAdjacentElement("afterend",e))}break;case"tiles":let u=n.endpoint.split("/");u=[parseInt(u[u.length-2]),parseInt(u[u.length-1].replace(".png",""))];const d=n.blobID,h=n.blobData,b=await this.At.Gt(h,u);window.postMessage({source:"blue-marble",blobID:d,blobData:b,blink:n.blink});break;case"robots":this.Jt="false"==i.userscript?.toString().toLowerCase()}var r,s})}async qt(t){let e=GM_getValue("bmUserSettings","{}");if(e=JSON.parse(e),!e||!e.telemetry||!e.uuid)return;const n=navigator.userAgent;let i=await o(this,h,b).call(this,n),r=o(this,h,p).call(this,n);GM_xmlhttpRequest({method:"POST",url:"https://telemetry.thebluecorner.net/heartbeat",headers:{"Content-Type":"application/json"},data:JSON.stringify({uuid:e.uuid,version:t,browser:i,os:r}),onload:t=>{200!==t.status&&s("Failed to send heartbeat:",t.statusText)},onerror:t=>{s("Error sending heartbeat:",t)}})}}(S);$.u(M);var O=JSON.parse(GM_getValue("bmTemplates","{}"));S.jt(O);var C=JSON.parse(GM_getValue("bmUserSettings","{}"));if(0==Object.keys(C).length){const t=crypto.randomUUID();GM.setValue("bmUserSettings",JSON.stringify({uuid:t}))}if(setInterval(()=>M.qt(y),18e5),null==C?.telemetry||C?.telemetry>1){const t=new r(w,y);t.u(M),t.v({id:"bm-d",style:"top: 0px; left: 0px; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; z-index: 9999;"}).v({id:"bm-7",style:"display: flex; flex-direction: column; align-items: center;"}).v({id:"bm-1",style:"margin-top: 10%;"}).O(1,{textContent:`${w} Telemetry`}).h().h().v({id:"bm-e",style:"max-width: 50%; overflow-y: auto; max-height: 80vh;"}).C().h().D().h().v({style:"width: fit-content; margin: auto; text-align: center;"}).k({id:"bm-8",textContent:"More Information"},(t,e)=>{e.onclick=()=>{window.open("https://github.com/SwingTheVine/Wplace-TelemetryServer#telemetry-data","_blank","noopener noreferrer")}}).h().h().D().h().v({style:"width: fit-content; margin: auto; text-align: center;"}).k({id:"bm-5",textContent:"Enable Telemetry",style:"margin-right: 2ch;"},(t,e)=>{e.onclick=()=>{const t=JSON.parse(GM_getValue("bmUserSettings","{}"));t.telemetry=1,GM.setValue("bmUserSettings",JSON.stringify(t));const e=document.getElementById("bm-d");e&&(e.style.display="none")}}).h().k({id:"bm-2",textContent:"Disable Telemetry"},(t,e)=>{e.onclick=()=>{const t=JSON.parse(GM_getValue("bmUserSettings","{}"));t.telemetry=0,GM.setValue("bmUserSettings",JSON.stringify(t));const e=document.getElementById("bm-d");e&&(e.style.display="none")}}).h().h().D().h().$({textContent:"We collect anonymous telemetry data such as your browser, OS, and script version to make the experience better for everyone. The data is never shared personally. The data is never sold. You can turn this off by pressing the 'Disable' button, but keeping it on helps us improve features and reliability faster. Thank you for supporting the Blue Marble!"}).h().$({textContent:'You can disable telemetry by pressing the "Disable" button below.'}).h().h().h().p(document.body)}!function(){let t=!1,e={};try{e=JSON.parse(GM_getValue("bmCoords","{}"))||{}}catch(t){e={}}const n=()=>{try{const t=Number(document.querySelector("#bm-v")?.value||""),e=Number(document.querySelector("#bm-w")?.value||""),n={Ht:t,Yt:e,px:Number(document.querySelector("#bm-x")?.value||""),zt:Number(document.querySelector("#bm-y")?.value||"")};GM.setValue("bmCoords",JSON.stringify(n))}catch(t){}};$.v({id:"bm-A",style:"top: 10px; right: 75px;"}).v({id:"bm-j"}).v({id:"bm-z"}).h().M({alt:"Blue Marble Icon - Click to minimize/maximize",src:"https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/dist/assets/Favicon.png",style:"cursor: pointer;"},(e,n)=>{n.addEventListener("click",()=>{t=!t;const i=document.querySelector("#bm-A"),o=document.querySelector("#bm-j"),r=document.querySelector("#bm-z"),s=document.querySelector("#bm-k"),a=document.querySelector("#bm-q"),m=document.querySelector("#bm-r"),l=document.querySelector("#bm-s"),c=document.querySelector("#bm-l"),u=document.querySelectorAll("#bm-k input");t||(i.style.width="auto",i.style.maxWidth="300px",i.style.minWidth="200px",i.style.padding="10px"),["#bm-A h1","#bm-f","#bm-A hr","#bm-c > *:not(#bm-k)","#bm-a","#bm-6",`#${e.i}`,"#bm-9"].forEach(e=>{document.querySelectorAll(e).forEach(e=>{e.style.display=t?"none":""})}),t?(s&&(s.style.display="none"),a&&(a.style.display="none"),m&&(m.style.display="none"),l&&(l.style.display="none"),c&&(c.style.display="none"),u.forEach(t=>{t.style.display="none"}),i.style.width="60px",i.style.height="76px",i.style.maxWidth="60px",i.style.minWidth="60px",i.style.padding="8px",n.style.marginLeft="3px",o.style.textAlign="center",o.style.margin="0",o.style.marginBottom="0",r&&(r.style.display="",r.style.marginBottom="0.25em")):(s&&(s.style.display="",s.style.flexDirection="",s.style.justifyContent="",s.style.alignItems="",s.style.gap="",s.style.textAlign="",s.style.margin=""),a&&(a.style.display=""),m&&(m.style.display="",m.style.marginTop=""),l&&(l.style.display="",l.style.marginTop=""),c&&(c.style.display="",c.style.marginTop=""),u.forEach(t=>{t.style.display=""}),n.style.marginLeft="",i.style.padding="10px",o.style.textAlign="",o.style.margin="",o.style.marginBottom="",r&&(r.style.marginBottom="0.5em"),i.style.width="",i.style.height=""),n.alt=t?"Blue Marble Icon - Minimized (Click to maximize)":"Blue Marble Icon - Maximized (Click to minimize)"})}).h().O(1,{textContent:w}).h().h().C().h().v({id:"bm-f"}).$({id:"bm-u",textContent:"Username:"}).h().$({id:"bm-p",textContent:"Droplets:"}).h().$({id:"bm-i",textContent:"Next level in..."}).h().h().C().h().v({id:"bm-c"}).v({id:"bm-k"}).k({id:"bm-q",className:"bm-D",style:"margin-top: 0;",innerHTML:''},(t,e)=>{e.onclick=()=>{const e=t.t?.Ut;e?.[0]?(t.B("bm-v",e?.[0]||""),t.B("bm-w",e?.[1]||""),t.B("bm-x",e?.[2]||""),t.B("bm-y",e?.[3]||""),n()):t.P("Coordinates are malformed! Did you try clicking on the canvas first?")}}).h().I({type:"number",id:"bm-v",placeholder:"Tl X",min:0,max:2047,step:1,required:!0,value:e.Ht??""},(t,e)=>{e.addEventListener("paste",t=>{let e=(t.clipboardData||window.clipboardData).getData("text").split(" ").filter(t=>t).map(Number).filter(t=>!isNaN(t));if(4!==e.length)return;let n=(i=document,coords=[],coords.push(i.querySelector("#bm-v")),coords.push(i.querySelector("#bm-w")),coords.push(i.querySelector("#bm-x")),coords.push(i.querySelector("#bm-y")),coords);var i;for(let t=0;tn();e.addEventListener("input",i),e.addEventListener("change",i)}).h().I({type:"number",id:"bm-w",placeholder:"Tl Y",min:0,max:2047,step:1,required:!0,value:e.Yt??""},(t,e)=>{const i=()=>n();e.addEventListener("input",i),e.addEventListener("change",i)}).h().I({type:"number",id:"bm-x",placeholder:"Px X",min:0,max:2047,step:1,required:!0,value:e.px??""},(t,e)=>{const i=()=>n();e.addEventListener("input",i),e.addEventListener("change",i)}).h().I({type:"number",id:"bm-y",placeholder:"Px Y",min:0,max:2047,step:1,required:!0,value:e.zt??""},(t,e)=>{const i=()=>n();e.addEventListener("input",i),e.addEventListener("change",i)}).h().h().v({id:"bm-9",style:"max-height: 140px; overflow: auto; border: 1px solid rgba(255,255,255,0.1); padding: 4px; border-radius: 4px; display: none;"}).v({style:"display: flex; gap: 6px; margin-bottom: 6px;"}).k({id:"bm-3",textContent:"Enable All"},(t,e)=>{e.onclick=()=>{const e=S.rt[0];e?.X&&(Object.values(e.X).forEach(t=>t.enabled=!0),buildColorFilterList(),t._("Enabled all colors"))}}).h().k({id:"bm-0",textContent:"Disable All"},(t,e)=>{e.onclick=()=>{const e=S.rt[0];e?.X&&(Object.values(e.X).forEach(t=>t.enabled=!1),buildColorFilterList(),t._("Disabled all colors"))}}).h().h().v({id:"bm-g"}).h().h().L({id:"bm-a",textContent:"Upload Template",accept:"image/png, image/jpeg, image/webp, image/bmp, image/gif"}).h().v({id:"bm-4"}).k({id:"bm-s",textContent:"Enable"},(t,e)=>{e.onclick=()=>{t.t?.At?.Rt(!0),t._("Enabled templates!")}}).h().k({id:"bm-r",textContent:"Create"},(t,e)=>{e.onclick=()=>{const e=document.querySelector("#bm-a"),n=document.querySelector("#bm-v");if(!n.checkValidity())return n.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");const i=document.querySelector("#bm-w");if(!i.checkValidity())return i.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");const o=document.querySelector("#bm-x");if(!o.checkValidity())return o.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");const r=document.querySelector("#bm-y");if(!r.checkValidity())return r.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");e?.files[0]?(S.Bt(e.files[0],e.files[0]?.name.replace(/\.[^/.]+$/,""),[Number(n.value),Number(i.value),Number(o.value),Number(r.value)]),t._("Drew to canvas!")):t.P("No file selected!")}}).h().k({id:"bm-l",textContent:"Disable"},(t,e)=>{e.onclick=()=>{t.t?.At?.Rt(!1),t._("Disabled templates!")}}).h().h().G({id:$.i,placeholder:`Status: Sleeping...\nVersion: ${y}`,readOnly:!0}).h().v({id:"bm-6"}).v().k({id:"bm-m",className:"bm-D",innerHTML:"🎨",title:"Template Color Converter"},(t,e)=>{e.addEventListener("click",()=>{window.open("https://pepoafonso.github.io/color_converter_wplace/","_blank","noopener noreferrer")})}).h().k({id:"bm-n",className:"bm-D",innerHTML:"🌐",title:"Official Blue Marble Website"},(t,e)=>{e.addEventListener("click",()=>{window.open("https://bluemarble.camilledaguin.fr/","_blank","noopener noreferrer")})}).h().h().S({textContent:"Made by SwingTheVine",style:"margin-top: auto;"}).h().h().h().p(document.body),window.buildColorFilterList=function(){const t=document.querySelector("#bm-g"),e=S.rt?.[0];if(!t||!e?.X)return void(t&&(t.innerHTML="No template colors to display."));t.innerHTML="";const n=Object.entries(e.X).sort((t,e)=>e[1].count-t[1].count);for(const[e,i]of n){const[n,o,r]=e.split(",").map(Number),s=document.createElement("div");s.style.display="flex",s.style.alignItems="center",s.style.gap="8px",s.style.margin="4px 0";const a=document.createElement("div");a.style.width="14px",a.style.height="14px",a.style.border="1px solid rgba(255,255,255,0.5)",a.style.background=`rgb(${n},${o},${r})`;const m=document.createElement("span");m.style.fontSize="12px";let l=`${i.count.toLocaleString()}`;try{const t=S.rt?.[0]?.K?.get(e);if(t&&"number"==typeof t.id){const e=t?.name||`rgb(${n},${o},${r})`,i=t.premium?"★ ":"";l=`#${t.id} ${i}${e} • ${l}`}}catch(t){}m.textContent=l;const c=document.createElement("input");c.type="checkbox",c.checked=!!i.enabled,c.addEventListener("change",()=>{i.enabled=c.checked,$._(`${c.checked?"Enabled":"Disabled"} ${e}`);try{const t=S.rt?.[0],e=t?.H;t&&e&&S.it?.templates?.[e]&&(S.it.templates[e].palette=t.X,GM.setValue("bmTemplates",JSON.stringify(S.it)))}catch(t){}}),s.appendChild(c),s.appendChild(a),s.appendChild(m),t.appendChild(s)}},window.addEventListener("message",t=>{if("bm-b"===t?.data?.st)try{buildColorFilterList()}catch(t){}}),setTimeout(()=>{try{if(S.rt?.length>0){const t=document.querySelector("#bm-9");t&&(t.style.display=""),buildColorFilterList()}}catch(t){}},0)}(),$.W("#bm-A","#bm-z"),M.Xt($),new MutationObserver((t,e)=>{const n=document.querySelector("#color-1");if(!n)return;let i=document.querySelector("#bm-t");if(!i){i=document.createElement("button"),i.id="bm-t",i.textContent="Move ↑",i.className="btn btn-soft",i.onclick=function(){const t=this.parentNode.parentNode.parentNode.parentNode,e="Move ↑"==this.textContent;t.parentNode.className=t.parentNode.className.replace(e?"bottom":"top",e?"top":"bottom"),t.style.borderTopLeftRadius=e?"0px":"var(--radius-box)",t.style.borderTopRightRadius=e?"0px":"var(--radius-box)",t.style.borderBottomLeftRadius=e?"var(--radius-box)":"0px",t.style.borderBottomRightRadius=e?"var(--radius-box)":"0px",this.textContent=e?"Move ↓":"Move ↑"};const t=n.parentNode.parentNode.parentNode.parentNode.querySelector("h2");t.parentNode?.appendChild(i)}}).observe(document.body,{childList:!0,subtree:!0}),function(...t){(0,console.log)(...t)}(`%c${w}%c (${y}) userscript has loaded!`,"color: cornflowerblue;","")})(); \ No newline at end of file diff --git a/docs/README.md b/docs/README.md index 4ef661e..081bf4b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -43,7 +43,7 @@

Blue Marble

Wplace Status -Latest Version +Latest Version Latest Release Software License: MPL-2.0 Contact Me @@ -52,7 +52,7 @@ Total Patches Total Lines of Code Total Comments -Compression +Compression Repo Size Visitors Downloads diff --git a/package.json b/package.json index 3dbf6b9..3fc9ffc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wplace-bluemarble", - "version": "0.83.0", + "version": "0.84.0", "type": "module", "homepage": "https://bluemarble.camilledaguin.fr/", "repository": { diff --git a/src/BlueMarble.meta.js b/src/BlueMarble.meta.js index 6a26317..23bbf5a 100644 --- a/src/BlueMarble.meta.js +++ b/src/BlueMarble.meta.js @@ -1,13 +1,13 @@ // ==UserScript== // @name Blue Marble // @namespace https://github.com/SwingTheVine/ -// @version 0.83.0 +// @version 0.84.0 // @description A userscript to automate and/or enhance the user experience on Wplace.live. Make sure to comply with the site's Terms of Service, and rules! This script is not affiliated with Wplace.live in any way, use at your own risk. This script is not affiliated with TamperMonkey. The author of this userscript is not responsible for any damages, issues, loss of data, or punishment that may occur as a result of using this script. This script is provided "as is" under the MPL-2.0 license. The "Blue Marble" icon is licensed under CC0 1.0 Universal (CC0 1.0) Public Domain Dedication. The image is owned by NASA. // @author SwingTheVine // @license MPL-2.0 // @supportURL https://discord.gg/tpeBPy46hf // @homepageURL https://bluemarble.camilledaguin.fr/ -// @icon https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/f3ee47c55505d29255b29e320891453884f13369/dist/assets/Favicon.png +// @icon https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/8d02ac9cbe8f6861248152f2b0d632a0b4a830ee/dist/assets/Favicon.png // @updateURL https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/dist/BlueMarble.user.js // @downloadURL https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/dist/BlueMarble.user.js // @match https://wplace.live/* @@ -17,7 +17,7 @@ // @grant GM_getValue // @grant GM_xmlhttpRequest // @connect telemetry.thebluecorner.net -// @resource CSS-BM-File https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/1b71f0f8403b459cec0e1e298b73823570ed6016/dist/BlueMarble.user.css +// @resource CSS-BM-File https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/8d02ac9cbe8f6861248152f2b0d632a0b4a830ee/dist/BlueMarble.user.css // ==/UserScript== // Wplace --> https://wplace.live From c71a33b38d819c908d83549a90435830f520b6f5 Mon Sep 17 00:00:00 2001 From: SwingTheVine Date: Wed, 20 Aug 2025 02:14:52 -0400 Subject: [PATCH 3/4] Updated Color Filter to Include Invalid ("Other") Pixels (#266) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update to 0.80.0 (#108) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * counts and colors for 81 * updated color palette and counts for transparent pixels * Implement #44 Ability to auto paste coordinates in their proper field (#45) * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * v0.82.0; Merge branch 'code' into main * Git is such a pain * v0.81.0; Git is such a pain * Stupid automation AAAAAA * v0.80.0; Stupid automation AAAAAA * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: Filip Struzik Co-authored-by: SwingTheVine Co-authored-by: github-actions[bot] * Fixed checkerboard patterns on black pixels (#143) Close #122 * Added telemetry * Debugging CSS * Telemetry and color filter are stable * Forgot to remove this before commiting * Begin update for v0.83.0 (#188) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * Added a Shield for Pages * Added markdown support to the wiki * fixed broken links firefox related links were broken * fixed latest pre-releases links * Cleanup of bugs related to one-click install link * feat: Add new official Blue Marble website and update documentation Add newly created official Blue Marble website and update project documentation - Add official website badge to README.md - Include website link in Quick Guide section - Add website creator credits in CREDITS.md - Update CONTRIBUTING.md with website reference - Add new official website URL: https://bluemarble.camilledaguin.fr/ This commit introduces the newly created official Blue Marble website and updates all documentation to reference it. The website provides a dedicated platform for Blue Marble users and information. * Markdown links are used in CREDITS.md * Website Shield Moved Next to Social Shields * Website should not take priority over download information... ...also, removed the word "official" due to the fact that the website being linked on the GitHub indicates that the website is official. Just like how the Discord server being linked on GitHub indicates that the Discord server is "official." * Since the website does not contain security information... ...it should not be in SECURITY.md * Removed redundant @website meta attribute... ...since @website and @homepageURL do the exact same thing * Added @WondaMegapon to the CREDITS.md file * Fix some issues with the README (#124) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Update README.md Fix some issues with the readme * Added version Shield back --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update documentation branch (#164) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update Wplace status badge (#140) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Update Wplace status badge --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Fix spelling mistakes (#151) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Fix spelling mistakes --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Remove `@run-at` (#161) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Remove `@run-at` --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update `@match` to match only the frontend (#162) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Updae `@match` to match only the frontend --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * docs: correction of typographical errors (#178) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * docs: correction of typographical errors recieved -> received --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> * Potential fix for code scanning alert no. 30: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Updated README Shields * Update code branch (#190) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * Fix minor comment typo Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Made Blue Marble work on wplace.live// * Fixed duplication of Quick Guide * Update to 0.84.0 (#262) * Made Blue Marble work on wplace.live// (#197) * Update to 0.80.0 (#108) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * counts and colors for 81 * updated color palette and counts for transparent pixels * Implement #44 Ability to auto paste coordinates in their proper field (#45) * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * v0.82.0; Merge branch 'code' into main * Git is such a pain * v0.81.0; Git is such a pain * Stupid automation AAAAAA * v0.80.0; Stupid automation AAAAAA * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: Filip Struzik Co-authored-by: SwingTheVine Co-authored-by: github-actions[bot] * Fixed checkerboard patterns on black pixels (#143) Close #122 * Added telemetry * Debugging CSS * Telemetry and color filter are stable * Forgot to remove this before commiting * Begin update for v0.83.0 (#188) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * Added a Shield for Pages * Added markdown support to the wiki * fixed broken links firefox related links were broken * fixed latest pre-releases links * Cleanup of bugs related to one-click install link * feat: Add new official Blue Marble website and update documentation Add newly created official Blue Marble website and update project documentation - Add official website badge to README.md - Include website link in Quick Guide section - Add website creator credits in CREDITS.md - Update CONTRIBUTING.md with website reference - Add new official website URL: https://bluemarble.camilledaguin.fr/ This commit introduces the newly created official Blue Marble website and updates all documentation to reference it. The website provides a dedicated platform for Blue Marble users and information. * Markdown links are used in CREDITS.md * Website Shield Moved Next to Social Shields * Website should not take priority over download information... ...also, removed the word "official" due to the fact that the website being linked on the GitHub indicates that the website is official. Just like how the Discord server being linked on GitHub indicates that the Discord server is "official." * Since the website does not contain security information... ...it should not be in SECURITY.md * Removed redundant @website meta attribute... ...since @website and @homepageURL do the exact same thing * Added @WondaMegapon to the CREDITS.md file * Fix some issues with the README (#124) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Update README.md Fix some issues with the readme * Added version Shield back --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update documentation branch (#164) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update Wplace status badge (#140) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Update Wplace status badge --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Fix spelling mistakes (#151) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Fix spelling mistakes --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Remove `@run-at` (#161) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Remove `@run-at` --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update `@match` to match only the frontend (#162) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Updae `@match` to match only the frontend --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * docs: correction of typographical errors (#178) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * docs: correction of typographical errors recieved -> received --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> * Potential fix for code scanning alert no. 30: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Updated README Shields * Update code branch (#190) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * Fix minor comment typo Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Made Blue Marble work on wplace.live// * Fixed duplication of Quick Guide --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: vishnuvardhan33 <93069382+vishnuvardhan33@users.noreply.github.com> Co-authored-by: Filip Str Co-authored-by: Filip Struzik Co-authored-by: East Monster 🍉 <89259667+EastMonster@users.noreply.github.com> Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * v0.84.0; Made Blue Marble work on wplace.live// (#197) * Update to 0.80.0 (#108) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * counts and colors for 81 * updated color palette and counts for transparent pixels * Implement #44 Ability to auto paste coordinates in their proper field (#45) * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * v0.82.0; Merge branch 'code' into main * Git is such a pain * v0.81.0; Git is such a pain * Stupid automation AAAAAA * v0.80.0; Stupid automation AAAAAA * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: Filip Struzik Co-authored-by: SwingTheVine Co-authored-by: github-actions[bot] * Fixed checkerboard patterns on black pixels (#143) Close #122 * Added telemetry * Debugging CSS * Telemetry and color filter are stable * Forgot to remove this before commiting * Begin update for v0.83.0 (#188) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * Added a Shield for Pages * Added markdown support to the wiki * fixed broken links firefox related links were broken * fixed latest pre-releases links * Cleanup of bugs related to one-click install link * feat: Add new official Blue Marble website and update documentation Add newly created official Blue Marble website and update project documentation - Add official website badge to README.md - Include website link in Quick Guide section - Add website creator credits in CREDITS.md - Update CONTRIBUTING.md with website reference - Add new official website URL: https://bluemarble.camilledaguin.fr/ This commit introduces the newly created official Blue Marble website and updates all documentation to reference it. The website provides a dedicated platform for Blue Marble users and information. * Markdown links are used in CREDITS.md * Website Shield Moved Next to Social Shields * Website should not take priority over download information... ...also, removed the word official due to the fact that the website being linked on the GitHub indicates that the website is official. Just like how the Discord server being linked on GitHub indicates that the Discord server is official. * Since the website does not contain security information... ...it should not be in SECURITY.md * Removed redundant @website meta attribute... ...since @website and @homepageURL do the exact same thing * Added @WondaMegapon to the CREDITS.md file * Fix some issues with the README (#124) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Update README.md Fix some issues with the readme * Added version Shield back --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update documentation branch (#164) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update Wplace status badge (#140) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Update Wplace status badge --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Fix spelling mistakes (#151) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Fix spelling mistakes --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Remove (#161) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Remove --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update to match only the frontend (#162) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Updae to match only the frontend --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * docs: correction of typographical errors (#178) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * docs: correction of typographical errors recieved -> received --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> * Potential fix for code scanning alert no. 30: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Updated README Shields * Update code branch (#190) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * Fix minor comment typo Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Made Blue Marble work on wplace.live// * Fixed duplication of Quick Guide --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: vishnuvardhan33 <93069382+vishnuvardhan33@users.noreply.github.com> Co-authored-by: Filip Str Co-authored-by: Filip Struzik Co-authored-by: East Monster 🍉 <89259667+EastMonster@users.noreply.github.com> Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: vishnuvardhan33 <93069382+vishnuvardhan33@users.noreply.github.com> Co-authored-by: Filip Str Co-authored-by: Filip Struzik Co-authored-by: East Monster 🍉 <89259667+EastMonster@users.noreply.github.com> Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Added invalid palette colors as an "other" option in filtering * Made all invalid palette colors appear under "Other" color * Updated user documentation to be clearer (#265) * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * Added a Shield for Pages * Added markdown support to the wiki * fixed broken links firefox related links were broken * fixed latest pre-releases links * Cleanup of bugs related to one-click install link * feat: Add new official Blue Marble website and update documentation Add newly created official Blue Marble website and update project documentation - Add official website badge to README.md - Include website link in Quick Guide section - Add website creator credits in CREDITS.md - Update CONTRIBUTING.md with website reference - Add new official website URL: https://bluemarble.camilledaguin.fr/ This commit introduces the newly created official Blue Marble website and updates all documentation to reference it. The website provides a dedicated platform for Blue Marble users and information. * Markdown links are used in CREDITS.md * Website Shield Moved Next to Social Shields * Website should not take priority over download information... ...also, removed the word "official" due to the fact that the website being linked on the GitHub indicates that the website is official. Just like how the Discord server being linked on GitHub indicates that the Discord server is "official." * Since the website does not contain security information... ...it should not be in SECURITY.md * Removed redundant @website meta attribute... ...since @website and @homepageURL do the exact same thing * Added @WondaMegapon to the CREDITS.md file * Fix some issues with the README (#124) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Update README.md Fix some issues with the readme * Added version Shield back --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update documentation branch (#164) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update Wplace status badge (#140) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Update Wplace status badge --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Fix spelling mistakes (#151) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Fix spelling mistakes --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Remove `@run-at` (#161) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Remove `@run-at` --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update `@match` to match only the frontend (#162) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Updae `@match` to match only the frontend --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * docs: correction of typographical errors (#178) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * docs: correction of typographical errors recieved -> received --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update to 0.84.0 (#263) * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Begin update for v0.83.0 (#188) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * Added a Shield for Pages * Added markdown support to the wiki * fixed broken links firefox related links were broken * fixed latest pre-releases links * Cleanup of bugs related to one-click install link * feat: Add new official Blue Marble website and update documentation Add newly created official Blue Marble website and update project documentation - Add official website badge to README.md - Include website link in Quick Guide section - Add website creator credits in CREDITS.md - Update CONTRIBUTING.md with website reference - Add new official website URL: https://bluemarble.camilledaguin.fr/ This commit introduces the newly created official Blue Marble website and updates all documentation to reference it. The website provides a dedicated platform for Blue Marble users and information. * Markdown links are used in CREDITS.md * Website Shield Moved Next to Social Shields * Website should not take priority over download information... ...also, removed the word "official" due to the fact that the website being linked on the GitHub indicates that the website is official. Just like how the Discord server being linked on GitHub indicates that the Discord server is "official." * Since the website does not contain security information... ...it should not be in SECURITY.md * Removed redundant @website meta attribute... ...since @website and @homepageURL do the exact same thing * Added @WondaMegapon to the CREDITS.md file * Fix some issues with the README (#124) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Update README.md Fix some issues with the readme * Added version Shield back --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update documentation branch (#164) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update Wplace status badge (#140) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Update Wplace status badge --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Fix spelling mistakes (#151) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Fix spelling mistakes --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Remove `@run-at` (#161) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Remove `@run-at` --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update `@match` to match only the frontend (#162) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Updae `@match` to match only the frontend --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * docs: correction of typographical errors (#178) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * docs: correction of typographical errors recieved -> received --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> * Potential fix for code scanning alert no. 30: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Updated README Shields * Update code branch (#190) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * Fix minor comment typo Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Color filtering & telemetry (#191) * Update to 0.80.0 (#108) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * counts and colors for 81 * updated color palette and counts for transparent pixels * Implement #44 Ability to auto paste coordinates in their proper field (#45) * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * v0.82.0; Merge branch 'code' into main * Git is such a pain * v0.81.0; Git is such a pain * Stupid automation AAAAAA * v0.80.0; Stupid automation AAAAAA * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: Filip Struzik Co-authored-by: SwingTheVine Co-authored-by: github-actions[bot] * Fixed checkerboard patterns on black pixels (#143) Close #122 * Added telemetry * Debugging CSS * Telemetry and color filter are stable * Forgot to remove this before commiting * Begin update for v0.83.0 (#188) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * Added a Shield for Pages * Added markdown support to the wiki * fixed broken links firefox related links were broken * fixed latest pre-releases links * Cleanup of bugs related to one-click install link * feat: Add new official Blue Marble website and update documentation Add newly created official Blue Marble website and update project documentation - Add official website badge to README.md - Include website link in Quick Guide section - Add website creator credits in CREDITS.md - Update CONTRIBUTING.md with website reference - Add new official website URL: https://bluemarble.camilledaguin.fr/ This commit introduces the newly created official Blue Marble website and updates all documentation to reference it. The website provides a dedicated platform for Blue Marble users and information. * Markdown links are used in CREDITS.md * Website Shield Moved Next to Social Shields * Website should not take priority over download information... ...also, removed the word "official" due to the fact that the website being linked on the GitHub indicates that the website is official. Just like how the Discord server being linked on GitHub indicates that the Discord server is "official." * Since the website does not contain security information... ...it should not be in SECURITY.md * Removed redundant @website meta attribute... ...since @website and @homepageURL do the exact same thing * Added @WondaMegapon to the CREDITS.md file * Fix some issues with the README (#124) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Update README.md Fix some issues with the readme * Added version Shield back --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update documentation branch (#164) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update Wplace status badge (#140) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Update Wplace status badge --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Fix spelling mistakes (#151) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Fix spelling mistakes --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Remove `@run-at` (#161) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Remove `@run-at` --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update `@match` to match only the frontend (#162) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Updae `@match` to match only the frontend --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * docs: correction of typographical errors (#178) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * docs: correction of typographical errors recieved -> received --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> * Potential fix for code scanning alert no. 30: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Updated README Shields * Update code branch (#190) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * Fix minor comment typo Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: vishnuvardhan33 <93069382+vishnuvardhan33@users.noreply.github.com> Co-authored-by: Filip Str Co-authored-by: Filip Struzik Co-authored-by: East Monster 🍉 <89259667+EastMonster@users.noreply.github.com> Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * v0.83.0; Color filtering & telemetry (#191) * Update to 0.80.0 (#108) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * counts and colors for 81 * updated color palette and counts for transparent pixels * Implement #44 Ability to auto paste coordinates in their proper field (#45) * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * v0.82.0; Merge branch 'code' into main * Git is such a pain * v0.81.0; Git is such a pain * Stupid automation AAAAAA * v0.80.0; Stupid automation AAAAAA * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: Filip Struzik Co-authored-by: SwingTheVine Co-authored-by: github-actions[bot] * Fixed checkerboard patterns on black pixels (#143) Close #122 * Added telemetry * Debugging CSS * Telemetry and color filter are stable * Forgot to remove this before commiting * Begin update for v0.83.0 (#188) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * Added a Shield for Pages * Added markdown support to the wiki * fixed broken links firefox related links were broken * fixed latest pre-releases links * Cleanup of bugs related to one-click install link * feat: Add new official Blue Marble website and update documentation Add newly created official Blue Marble website and update project documentation - Add official website badge to README.md - Include website link in Quick Guide section - Add website creator credits in CREDITS.md - Update CONTRIBUTING.md with website reference - Add new official website URL: https://bluemarble.camilledaguin.fr/ This commit introduces the newly created official Blue Marble website and updates all documentation to reference it. The website provides a dedicated platform for Blue Marble users and information. * Markdown links are used in CREDITS.md * Website Shield Moved Next to Social Shields * Website should not take priority over download information... ...also, removed the word official due to the fact that the website being linked on the GitHub indicates that the website is official. Just like how the Discord server being linked on GitHub indicates that the Discord server is official. * Since the website does not contain security information... ...it should not be in SECURITY.md * Removed redundant @website meta attribute... ...since @website and @homepageURL do the exact same thing * Added @WondaMegapon to the CREDITS.md file * Fix some issues with the README (#124) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Update README.md Fix some issues with the readme * Added version Shield back --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update documentation branch (#164) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update Wplace status badge (#140) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Update Wplace status badge --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Fix spelling mistakes (#151) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Fix spelling mistakes --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Remove (#161) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Remove --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update to match only the frontend (#162) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Updae to match only the frontend --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * docs: correction of typographical errors (#178) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * docs: correction of typographical errors recieved -> received --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> * Potential fix for code scanning alert no. 30: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Updated README Shields * Update code branch (#190) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * Fix minor comment typo Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: vishnuvardhan33 <93069382+vishnuvardhan33@users.noreply.github.com> Co-authored-by: Filip Str Co-authored-by: Filip Struzik Co-authored-by: East Monster 🍉 <89259667+EastMonster@users.noreply.github.com> Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Made Blue Marble work on wplace.live// * Fixed duplication of Quick Guide * Made Blue Marble work on wplace.live// (#197) * Update to 0.80.0 (#108) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * counts and colors for 81 * updated color palette and counts for transparent pixels * Implement #44 Ability to auto paste coordinates in their proper field (#45) * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * v0.82.0; Merge branch 'code' into main * Git is such a pain * v0.81.0; Git is such a pain * Stupid automation AAAAAA * v0.80.0; Stupid automation AAAAAA * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: Filip Struzik Co-authored-by: SwingTheVine Co-authored-by: github-actions[bot] * Fixed checkerboard patterns on black pixels (#143) Close #122 * Added telemetry * Debugging CSS * Telemetry and color filter are stable * Forgot to remove this before commiting * Begin update for v0.83.0 (#188) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * Added a Shield for Pages * Added markdown support to the wiki * fixed broken links firefox related links were broken * fixed latest pre-releases links * Cleanup of bugs related to one-click install link * feat: Add new official Blue Marble website and update documentation Add newly created official Blue Marble website and update project documentation - Add official website badge to README.md - Include website link in Quick Guide section - Add website creator credits in CREDITS.md - Update CONTRIBUTING.md with website reference - Add new official website URL: https://bluemarble.camilledaguin.fr/ This commit introduces the newly created official Blue Marble website and updates all documentation to reference it. The website provides a dedicated platform for Blue Marble users and information. * Markdown links are used in CREDITS.md * Website Shield Moved Next to Social Shields * Website should not take priority over download information... ...also, removed the word "official" due to the fact that the website being linked on the GitHub indicates that the website is official. Just like how the Discord server being linked on GitHub indicates that the Discord server is "official." * Since the website does not contain security information... ...it should not be in SECURITY.md * Removed redundant @website meta attribute... ...since @website and @homepageURL do the exact same thing * Added @WondaMegapon to the CREDITS.md file * Fix some issues with the README (#124) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Update README.md Fix some issues with the readme * Added version Shield back --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update documentation branch (#164) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update Wplace status badge (#140) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Update Wplace status badge --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Fix spelling mistakes (#151) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main *… * Updated Shields --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: vishnuvardhan33 <93069382+vishnuvardhan33@users.noreply.github.com> Co-authored-by: Filip Str Co-authored-by: Filip Struzik Co-authored-by: East Monster 🍉 <89259667+EastMonster@users.noreply.github.com> Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/pr-branch-check.yml | 1 - dist/BlueMarble.user.js | 4 +- docs/CONTRIBUTING.md | 15 ++- docs/README.md | 25 +++-- package-lock.json | 4 +- package.json | 2 +- src/BlueMarble.meta.js | 2 +- src/Template.js | 32 ++++-- src/main.js | 37 ++++--- src/templateManager.js | 152 ++++++++++++++++++-------- 10 files changed, 187 insertions(+), 87 deletions(-) diff --git a/.github/workflows/pr-branch-check.yml b/.github/workflows/pr-branch-check.yml index 84fedf5..9ea0d64 100644 --- a/.github/workflows/pr-branch-check.yml +++ b/.github/workflows/pr-branch-check.yml @@ -2,7 +2,6 @@ name: Enforce allowed branches for PRs to main permissions: contents: read - on: pull_request: branches: diff --git a/dist/BlueMarble.user.js b/dist/BlueMarble.user.js index ca618b0..667024a 100644 --- a/dist/BlueMarble.user.js +++ b/dist/BlueMarble.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Blue Marble // @namespace https://github.com/SwingTheVine/ -// @version 0.84.0 +// @version 0.84.14 // @description A userscript to automate and/or enhance the user experience on Wplace.live. Make sure to comply with the site's Terms of Service, and rules! This script is not affiliated with Wplace.live in any way, use at your own risk. This script is not affiliated with TamperMonkey. The author of this userscript is not responsible for any damages, issues, loss of data, or punishment that may occur as a result of using this script. This script is provided "as is" under the MPL-2.0 license. The "Blue Marble" icon is licensed under CC0 1.0 Universal (CC0 1.0) Public Domain Dedication. The image is owned by NASA. // @author SwingTheVine // @license MPL-2.0 @@ -23,4 +23,4 @@ // Wplace --> https://wplace.live // License --> https://www.mozilla.org/en-US/MPL/2.0/ -(()=>{var t,e,n=t=>{throw TypeError(t)},i=(t,e,i)=>e.has(t)?n("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),o=(t,e,i)=>(((t,e)=>{e.has(t)||n("Cannot access private method")})(t,e),i),r=class{constructor(e,n){i(this,t),this.name=e,this.version=n,this.t=null,this.i="bm-o",this.o=null,this.m=null,this.l=[]}u(t){this.t=t}h(){return this.l.length>0&&(this.m=this.l.pop()),this}p(t){t?.appendChild(this.o),this.o=null,this.m=null,this.l=[]}v(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"div",{},n)),this}$(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"p",{},n)),this}S(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"small",{},n)),this}M(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"img",{},n)),this}O(n,i={},r=()=>{}){return r(this,o(this,t,e).call(this,"h"+n,{},i)),this}C(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"hr",{},n)),this}D(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"br",{},n)),this}T(n={},i=()=>{}){const r=o(this,t,e).call(this,"label",{textContent:n.textContent??""});delete n.textContent;const s=o(this,t,e).call(this,"input",{type:"checkbox"},n);return r.insertBefore(s,r.firstChild),this.h(),i(this,r,s),this}k(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"button",{},n)),this}N(n={},i=()=>{}){const r=n.title??n.textContent??"Help: No info";delete n.textContent,n.title=`Help: ${r}`;const s={textContent:"?",className:"bm-D",onclick:()=>{this.B(this.i,r)}};return i(this,o(this,t,e).call(this,"button",s,n)),this}I(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"input",{},n)),this}L(n={},i=()=>{}){const r=n.textContent??"";delete n.textContent;const s=o(this,t,e).call(this,"div"),a=o(this,t,e).call(this,"input",{type:"file",style:"display: none !important; visibility: hidden !important; position: absolute !important; left: -9999px !important; width: 0 !important; height: 0 !important; opacity: 0 !important;"},n);this.h();const m=o(this,t,e).call(this,"button",{textContent:r});return this.h(),this.h(),a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),m.addEventListener("click",()=>{a.click()}),a.addEventListener("change",()=>{m.style.maxWidth=`${m.offsetWidth}px`,a.files.length>0?m.textContent=a.files[0].name:m.textContent=r}),i(this,s,a,m),this}G(n={},i=()=>{}){return i(this,o(this,t,e).call(this,"textarea",{},n)),this}B(t,e,n=!1){const i=document.getElementById(t.replace(/^#/,""));i&&(i instanceof HTMLInputElement?i.value=e:n?i.textContent=e:i.innerHTML=e)}W(t,e){let n,i=!1,o=0,r=null,s=0,a=0,m=0,l=0;if(t=document.querySelector("#"==t?.[0]?t:"#"+t),e=document.querySelector("#"==e?.[0]?e:"#"+e),!t||!e)return void this.P(`Can not drag! ${t?"":"moveMe"} ${t||e?"":"and "}${e?"":"iMoveThings "}was not found!`);const c=()=>{if(i){const e=Math.abs(s-m),n=Math.abs(a-l);(e>.5||n>.5)&&(s=m,a=l,t.style.transform=`translate(${s}px, ${a}px)`,t.style.left="0px",t.style.top="0px",t.style.right=""),r=requestAnimationFrame(c)}};let u=null;const d=(d,h)=>{i=!0,u=t.getBoundingClientRect(),n=d-u.left,o=h-u.top;const b=window.getComputedStyle(t).transform;if(b&&"none"!==b){const t=new DOMMatrix(b);s=t.m41,a=t.m42}else s=u.left,a=u.top;m=s,l=a,document.body.style.userSelect="none",e.classList.add("dragging"),r&&cancelAnimationFrame(r),c()},h=()=>{i=!1,r&&(cancelAnimationFrame(r),r=null),document.body.style.userSelect="",e.classList.remove("dragging")};e.addEventListener("mousedown",function(t){t.preventDefault(),d(t.clientX,t.clientY)}),e.addEventListener("touchstart",function(t){const e=t?.touches?.[0];e&&(d(e.clientX,e.clientY),t.preventDefault())},{passive:!1}),document.addEventListener("mousemove",function(t){i&&u&&(m=t.clientX-n,l=t.clientY-o)},{passive:!0}),document.addEventListener("touchmove",function(t){if(i&&u){const e=t?.touches?.[0];if(!e)return;m=e.clientX-n,l=e.clientY-o,t.preventDefault()}},{passive:!1}),document.addEventListener("mouseup",h),document.addEventListener("touchend",h),document.addEventListener("touchcancel",h)}_(t){(0,console.info)(`${this.name}: ${t}`),this.B(this.i,"Status: "+t,!0)}P(t){(0,console.error)(`${this.name}: ${t}`),this.B(this.i,"Error: "+t,!0)}};function s(...t){(0,console.error)(...t)}function a(t,e){if(0===t)return e[0];let n="";const i=e.length;for(;t>0;)n=e[t%i]+n,t=Math.floor(t/i);return n}function m(t){let e="";for(let n=0;n"transparent"!==(t?.name||"").toLowerCase()&&Array.isArray(t?.rgb)).map(t=>`${t.rgb[0]},${t.rgb[1]},${t.rgb[2]}`));const l="222,250,206";this.Y.add(l),this.K=new Map(m.filter(t=>Array.isArray(t?.rgb)).map(t=>[`${t.rgb[0]},${t.rgb[1]},${t.rgb[2]}`,{id:t.id,premium:!!t.premium,name:t.name}]));try{const t=m.find(t=>"transparent"===(t?.name||"").toLowerCase());t&&Array.isArray(t.rgb)&&this.K.set(l,{id:t.id,premium:!!t.premium,name:t.name})}catch(t){}}async Z(){const t=await createImageBitmap(this.file),e=t.width,n=t.height,i=e*n;this.J=i;try{const i=new OffscreenCanvas(e,n).getContext("2d",{tt:!0});i.imageSmoothingEnabled=!1,i.clearRect(0,0,e,n),i.drawImage(t,0,0);const o=i.getImageData(0,0,e,n).data;let r=0,s=0;const a=new Map;for(let t=0;t0){for(const t in e){const n=t,i=e[t];if(e.hasOwnProperty(t)){const t=n.split(" "),o=Number(t?.[0]),r=t?.[1]||"0",s=i.name||`Template ${o||""}`,a=i.tiles,m={};let c=0;const u=new Map;for(const t in a)if(a.hasOwnProperty(t)){const e=l(a[t]),n=new Blob([e],{type:"image/png"}),i=await createImageBitmap(n);m[t]=i;try{const t=i.width,e=i.height,n=new OffscreenCanvas(t,e).getContext("2d",{tt:!0});n.imageSmoothingEnabled=!1,n.clearRect(0,0,t,e),n.drawImage(i,0,0);const o=n.getImageData(0,0,t,e).data;for(let n=0;n{d.q?.add(t.split(",").slice(0,2).join(","))})}catch(t){}try{const t=e?.[n]?.palette;if(t)for(const[e,n]of Object.entries(t))d.X[e]?d.X[e].enabled=!!n?.enabled:d.X[e]={count:n?.count||0,enabled:!!n?.enabled}}catch(t){}d.H=n,this.rt.push(d)}}try{const t=document.querySelector("#bm-9");t&&(t.style.display=""),window.postMessage({source:"blue-marble",st:"bm-b"},"*")}catch(t){}}},h=new WeakSet,b=async function(t=navigator.userAgent){return(t=t||"").includes("OPR/")||t.includes("Opera")?"Opera":t.includes("Edg/")?"Edge":t.includes("Vivaldi")?"Vivaldi":t.includes("YaBrowser")?"Yandex":t.includes("Kiwi")?"Kiwi":t.includes("Brave")?"Brave":t.includes("Firefox/")?"Firefox":t.includes("Chrome/")?"Chrome":t.includes("Safari/")?"Safari":navigator.brave&&"function"==typeof navigator.brave.isBrave&&await navigator.brave.isBrave()?"Brave":"Unknown"},p=function(t=navigator.userAgent){return/Windows NT 11/i.test(t=t||"")?"Windows 11":/Windows NT 10/i.test(t)?"Windows 10":/Windows NT 6\.3/i.test(t)?"Windows 8.1":/Windows NT 6\.2/i.test(t)?"Windows 8":/Windows NT 6\.1/i.test(t)?"Windows 7":/Windows NT 6\.0/i.test(t)?"Windows Vista":/Windows NT 5\.1|Windows XP/i.test(t)?"Windows XP":/Mac OS X 10[_\.]15/i.test(t)?"macOS Catalina":/Mac OS X 10[_\.]14/i.test(t)?"macOS Mojave":/Mac OS X 10[_\.]13/i.test(t)?"macOS High Sierra":/Mac OS X 10[_\.]12/i.test(t)?"macOS Sierra":/Mac OS X 10[_\.]11/i.test(t)?"OS X El Capitan":/Mac OS X 10[_\.]10/i.test(t)?"OS X Yosemite":/Mac OS X 10[_\.]/i.test(t)?"macOS":/Android/i.test(t)?"Android":/iPhone|iPad|iPod/i.test(t)?"iOS":/Linux/i.test(t)?"Linux":"Unknown"};var w=GM_info.script.name.toString(),y=GM_info.script.version.toString();!function(t){const e=document.createElement("script");e.setAttribute("bm-E",w),e.setAttribute("bm-B","color: cornflowerblue;"),e.textContent=`(${t})();`,document.documentElement?.appendChild(e),e.remove()}(()=>{const t=document.currentScript,e=t?.getAttribute("bm-E")||"Blue Marble",n=t?.getAttribute("bm-B")||"",i=new Map;window.addEventListener("message",t=>{const{source:o,endpoint:r,blobID:s,blobData:a,blink:m}=t.data;if(Date.now(),"blue-marble"==o&&s&&a&&!r){const t=i.get(s);"function"==typeof t?t(a):function(...t){(0,console.warn)(...t)}(`%c${e}%c: Attempted to retrieve a blob (%s) from queue, but the blobID was not a function! Skipping...`,n,"",s),i.delete(s)}});const o=window.fetch;window.fetch=async function(...t){const e=await o.apply(this,t),n=e.clone(),r=(t[0]instanceof Request?t[0]?.url:t[0])||"ignore",s=n.headers.get("content-type")||"";if(s.includes("application/json"))n.json().then(t=>{window.postMessage({source:"blue-marble",endpoint:r,jsonData:t},"*")}).catch(t=>{});else if(s.includes("image/")&&!r.includes("openfreemap")&&!r.includes("maps")){const t=Date.now(),e=await n.blob();return new Promise(o=>{const s=crypto.randomUUID();i.set(s,t=>{o(new Response(t,{headers:n.headers,status:n.status,statusText:n.statusText}))}),window.postMessage({source:"blue-marble",endpoint:r,blobID:s,blobData:e,blink:t})}).catch(t=>{Date.now()})}return e}});var v=GM_getResourceText("CSS-BM-File");GM_addStyle(v);var x=document.createElement("link");x.href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap",x.rel="preload",x.as="style",x.onload=function(){this.onload=null,this.rel="stylesheet"},document.head?.appendChild(x),new class{constructor(){this.lt=null,this.ct=null,this.ut="#bm-h"}dt(t){return this.ct=t,this.lt=new MutationObserver(t=>{for(const e of t)for(const t of e.addedNodes)t instanceof HTMLElement&&t.matches?.(this.ut)}),this}ht(){return this.lt}observe(t,e=!1,n=!1){t.observe(this.ct,{childList:e,subtree:n})}};var $=new r(w,y),S=(new r(w,y),new class{constructor(t,e,n){i(this,c),this.name=t,this.version=e,this.o=n,this.bt="1.0.0",this.gt=null,this.ft="!#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~",this.A=1e3,this.ot=3,this.wt=null,this.yt=null,this.vt="bm-C",this.xt="div#map canvas.maplibregl-canvas",this.$t=null,this.St="",this.rt=[],this.it=null,this.Mt=!0,this.Ot=new Map}Ct(){if(document.body.contains(this.wt))return this.wt;document.getElementById(this.vt)?.remove();const t=document.querySelector(this.xt),e=document.createElement("canvas");return e.id=this.vt,e.className="maplibregl-canvas",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.height=t?.clientHeight*(window.devicePixelRatio||1)+"px",e.style.width=t?.clientWidth*(window.devicePixelRatio||1)+"px",e.height=t?.clientHeight*(window.devicePixelRatio||1),e.width=t?.clientWidth*(window.devicePixelRatio||1),e.style.zIndex="8999",e.style.pointerEvents="none",t?.parentElement?.appendChild(e),this.wt=e,window.addEventListener("move",this.Dt),window.addEventListener("zoom",this.Tt),window.addEventListener("resize",this.kt),this.wt}async Nt(){return{whoami:this.name.replace(" ",""),scriptVersion:this.version,schemaVersion:this.bt,templates:{}}}async Bt(t,e,n){this.it||(this.it=await this.Nt()),this.o._(`Creating template at ${n.join(", ")}...`);const i=new f({displayName:e,F:0,j:a(this.gt||0,this.ft),file:t,coords:n}),{et:r,nt:s}=await i.Z(this.A);i.R=r;const m=`${i.F} ${i.j}`;i.H=m,this.it.templates[m]={name:i.displayName,coords:n.join(", "),enabled:!0,tiles:s,palette:i.X},this.rt=[],this.rt.push(i);const l=(new Intl.NumberFormat).format(i.J);this.o._(`Template created at ${n.join(", ")}! Total pixels: ${l}`);try{const t=document.querySelector("#bm-9");t&&(t.style.display=""),window.postMessage({source:"blue-marble",st:"bm-b"},"*")}catch(t){}await o(this,c,u).call(this)}It(){}async Lt(){this.it||(this.it=await this.Nt())}async Gt(t,e){if(!this.Mt)return t;const n=this.A*this.ot;e=e[0].toString().padStart(4,"0")+","+e[1].toString().padStart(4,"0");const i=this.rt;if(i.sort((t,e)=>t.F-e.F),!i.some(t=>!!t?.R&&(t.q&&t.q.size>0?t.q.has(e):Object.keys(t.R).some(t=>t.startsWith(e)))))return t;const o=i.map(t=>{const n=Object.keys(t.R).filter(t=>t.startsWith(e));if(0===n.length)return null;const i=n.map(e=>{const n=e.split(",");return{Wt:t.R[e],Pt:[n[0],n[1]],_t:[n[2],n[3]]}});return i?.[0]}).filter(Boolean),r=o?.length||0;let s=0,a=0,m=0;const l=await createImageBitmap(t),c=new OffscreenCanvas(n,n),u=c.getContext("2d");u.imageSmoothingEnabled=!1,u.beginPath(),u.rect(0,0,n,n),u.clip(),u.clearRect(0,0,n,n),u.drawImage(l,0,0,n,n);let d=null;try{d=u.getImageData(0,0,n,n).data}catch(t){}for(const t of o){if(d)try{const e=t.Wt.width,i=t.Wt.height,o=new OffscreenCanvas(e,i).getContext("2d",{tt:!0});o.imageSmoothingEnabled=!1,o.clearRect(0,0,e,i),o.drawImage(t.Wt,0,0);const r=o.getImageData(0,0,e,i).data,l=Number(t._t[0])*this.ot,c=Number(t._t[1])*this.ot;for(let t=0;t=n||u>=n)continue;const h=4*(t*e+i),b=r[h],p=r[h+1],g=r[h+2];if(r[h+3]<64){try{const t=this.rt?.[0],e=4*(u*n+o),i=d[e],r=d[e+1],s=d[e+2],m=d[e+3],l=`${i},${r},${s}`,c=!!t?.Y&&t.Y.has(l);m>=64&&c&&a++}catch(t){}continue}try{const t=this.rt?.[0];if(t?.Y&&!t.Y.has(`${b},${p},${g}`))continue}catch(t){}m++;const f=4*(u*n+o),w=d[f],y=d[f+1],v=d[f+2];d[f+3]<64||(w===b&&y===p&&v===g?s++:a++)}}catch(t){}try{const e=this.rt?.[0],n=e?.X||{};if(Object.values(n).some(t=>!1===t?.enabled)){const i=t.Wt.width,o=t.Wt.height,r=new OffscreenCanvas(i,o),s=r.getContext("2d",{tt:!0});s.imageSmoothingEnabled=!1,s.clearRect(0,0,i,o),s.drawImage(t.Wt,0,0);const a=s.getImageData(0,0,i,o),m=a.data;for(let t=0;t0){const t=e;this.Ot.set(t,{Et:s,required:m,Ft:a});let n=0,i=0,o=0;for(const t of this.Ot.values())n+=t.Et||0,i+=t.required||0,o+=t.Ft||0;const l=this.rt.reduce((t,e)=>t+(e.U||e.J||0),0),c=l>0?l:i,u=(new Intl.NumberFormat).format(n),d=(new Intl.NumberFormat).format(c),h=(new Intl.NumberFormat).format(c-n);this.o._(`Displaying ${r} template${1==r?"":"s"}.\nPainted ${u} / ${d} • Wrong ${h}`)}else this.o._(`Displaying ${r} templates.`);return await c.convertToBlob({type:"image/png"})}jt(t){"BlueMarble"==t?.whoami&&o(this,c,d).call(this,t)}Rt(t){this.Mt=t}}(w,y,$)),M=new class{constructor(t){i(this,h),this.At=t,this.Jt=!1,this.Ut=[],this.Vt=[]}Xt(t){window.addEventListener("message",async e=>{const n=e.data,i=n.jsonData;if(!n||"blue-marble"!==n.source)return;if(!n.endpoint)return;const o=n.endpoint?.split("?")[0].split("/").filter(t=>t&&isNaN(Number(t))).filter(t=>t&&!t.includes(".")).pop();switch(o){case"me":if(i.status&&"2"!=i.status?.toString()[0])return void t.P("You are not logged in!\nCould not fetch userdata.");const e=Math.ceil(Math.pow(Math.floor(i.level)*Math.pow(30,.65),1/.65)-i.pixelsPainted);i.id||i.id,this.At.gt=i.id,t.B("bm-u",`Username: ${function(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}(i.name)}`),t.B("bm-p",`Droplets: ${(new Intl.NumberFormat).format(i.droplets)}`),t.B("bm-i",`Next level in ${(new Intl.NumberFormat).format(e)} pixel${1==e?"":"s"}`);break;case"pixel":const o=n.endpoint.split("?")[0].split("/").filter(t=>t&&!isNaN(Number(t))),a=new URLSearchParams(n.endpoint.split("?")[1]),m=[a.get("x"),a.get("y")];if(this.Ut.length&&(!o.length||!m.length))return void t.P("Coordinates are malformed!\nDid you try clicking the canvas first?");this.Ut=[...o,...m];const l=(r=o,s=m,[parseInt(r[0])%4*1e3+parseInt(s[0]),parseInt(r[1])%4*1e3+parseInt(s[1])]),c=document.querySelectorAll("span");for(const t of c)if(t.textContent.trim().includes(`${l[0]}, ${l[1]}`)){let e=document.querySelector("#bm-h");const n=`(Tl X: ${o[0]}, Tl Y: ${o[1]}, Px X: ${m[0]}, Px Y: ${m[1]})`;e?e.textContent=n:(e=document.createElement("span"),e.id="bm-h",e.textContent=n,e.style="margin-left: calc(var(--spacing)*3); font-size: small;",t.parentNode.parentNode.parentNode.insertAdjacentElement("afterend",e))}break;case"tiles":let u=n.endpoint.split("/");u=[parseInt(u[u.length-2]),parseInt(u[u.length-1].replace(".png",""))];const d=n.blobID,h=n.blobData,b=await this.At.Gt(h,u);window.postMessage({source:"blue-marble",blobID:d,blobData:b,blink:n.blink});break;case"robots":this.Jt="false"==i.userscript?.toString().toLowerCase()}var r,s})}async qt(t){let e=GM_getValue("bmUserSettings","{}");if(e=JSON.parse(e),!e||!e.telemetry||!e.uuid)return;const n=navigator.userAgent;let i=await o(this,h,b).call(this,n),r=o(this,h,p).call(this,n);GM_xmlhttpRequest({method:"POST",url:"https://telemetry.thebluecorner.net/heartbeat",headers:{"Content-Type":"application/json"},data:JSON.stringify({uuid:e.uuid,version:t,browser:i,os:r}),onload:t=>{200!==t.status&&s("Failed to send heartbeat:",t.statusText)},onerror:t=>{s("Error sending heartbeat:",t)}})}}(S);$.u(M);var O=JSON.parse(GM_getValue("bmTemplates","{}"));S.jt(O);var C=JSON.parse(GM_getValue("bmUserSettings","{}"));if(0==Object.keys(C).length){const t=crypto.randomUUID();GM.setValue("bmUserSettings",JSON.stringify({uuid:t}))}if(setInterval(()=>M.qt(y),18e5),null==C?.telemetry||C?.telemetry>1){const t=new r(w,y);t.u(M),t.v({id:"bm-d",style:"top: 0px; left: 0px; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; z-index: 9999;"}).v({id:"bm-7",style:"display: flex; flex-direction: column; align-items: center;"}).v({id:"bm-1",style:"margin-top: 10%;"}).O(1,{textContent:`${w} Telemetry`}).h().h().v({id:"bm-e",style:"max-width: 50%; overflow-y: auto; max-height: 80vh;"}).C().h().D().h().v({style:"width: fit-content; margin: auto; text-align: center;"}).k({id:"bm-8",textContent:"More Information"},(t,e)=>{e.onclick=()=>{window.open("https://github.com/SwingTheVine/Wplace-TelemetryServer#telemetry-data","_blank","noopener noreferrer")}}).h().h().D().h().v({style:"width: fit-content; margin: auto; text-align: center;"}).k({id:"bm-5",textContent:"Enable Telemetry",style:"margin-right: 2ch;"},(t,e)=>{e.onclick=()=>{const t=JSON.parse(GM_getValue("bmUserSettings","{}"));t.telemetry=1,GM.setValue("bmUserSettings",JSON.stringify(t));const e=document.getElementById("bm-d");e&&(e.style.display="none")}}).h().k({id:"bm-2",textContent:"Disable Telemetry"},(t,e)=>{e.onclick=()=>{const t=JSON.parse(GM_getValue("bmUserSettings","{}"));t.telemetry=0,GM.setValue("bmUserSettings",JSON.stringify(t));const e=document.getElementById("bm-d");e&&(e.style.display="none")}}).h().h().D().h().$({textContent:"We collect anonymous telemetry data such as your browser, OS, and script version to make the experience better for everyone. The data is never shared personally. The data is never sold. You can turn this off by pressing the 'Disable' button, but keeping it on helps us improve features and reliability faster. Thank you for supporting the Blue Marble!"}).h().$({textContent:'You can disable telemetry by pressing the "Disable" button below.'}).h().h().h().p(document.body)}!function(){let t=!1,e={};try{e=JSON.parse(GM_getValue("bmCoords","{}"))||{}}catch(t){e={}}const n=()=>{try{const t=Number(document.querySelector("#bm-v")?.value||""),e=Number(document.querySelector("#bm-w")?.value||""),n={Ht:t,Yt:e,px:Number(document.querySelector("#bm-x")?.value||""),zt:Number(document.querySelector("#bm-y")?.value||"")};GM.setValue("bmCoords",JSON.stringify(n))}catch(t){}};$.v({id:"bm-A",style:"top: 10px; right: 75px;"}).v({id:"bm-j"}).v({id:"bm-z"}).h().M({alt:"Blue Marble Icon - Click to minimize/maximize",src:"https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/dist/assets/Favicon.png",style:"cursor: pointer;"},(e,n)=>{n.addEventListener("click",()=>{t=!t;const i=document.querySelector("#bm-A"),o=document.querySelector("#bm-j"),r=document.querySelector("#bm-z"),s=document.querySelector("#bm-k"),a=document.querySelector("#bm-q"),m=document.querySelector("#bm-r"),l=document.querySelector("#bm-s"),c=document.querySelector("#bm-l"),u=document.querySelectorAll("#bm-k input");t||(i.style.width="auto",i.style.maxWidth="300px",i.style.minWidth="200px",i.style.padding="10px"),["#bm-A h1","#bm-f","#bm-A hr","#bm-c > *:not(#bm-k)","#bm-a","#bm-6",`#${e.i}`,"#bm-9"].forEach(e=>{document.querySelectorAll(e).forEach(e=>{e.style.display=t?"none":""})}),t?(s&&(s.style.display="none"),a&&(a.style.display="none"),m&&(m.style.display="none"),l&&(l.style.display="none"),c&&(c.style.display="none"),u.forEach(t=>{t.style.display="none"}),i.style.width="60px",i.style.height="76px",i.style.maxWidth="60px",i.style.minWidth="60px",i.style.padding="8px",n.style.marginLeft="3px",o.style.textAlign="center",o.style.margin="0",o.style.marginBottom="0",r&&(r.style.display="",r.style.marginBottom="0.25em")):(s&&(s.style.display="",s.style.flexDirection="",s.style.justifyContent="",s.style.alignItems="",s.style.gap="",s.style.textAlign="",s.style.margin=""),a&&(a.style.display=""),m&&(m.style.display="",m.style.marginTop=""),l&&(l.style.display="",l.style.marginTop=""),c&&(c.style.display="",c.style.marginTop=""),u.forEach(t=>{t.style.display=""}),n.style.marginLeft="",i.style.padding="10px",o.style.textAlign="",o.style.margin="",o.style.marginBottom="",r&&(r.style.marginBottom="0.5em"),i.style.width="",i.style.height=""),n.alt=t?"Blue Marble Icon - Minimized (Click to maximize)":"Blue Marble Icon - Maximized (Click to minimize)"})}).h().O(1,{textContent:w}).h().h().C().h().v({id:"bm-f"}).$({id:"bm-u",textContent:"Username:"}).h().$({id:"bm-p",textContent:"Droplets:"}).h().$({id:"bm-i",textContent:"Next level in..."}).h().h().C().h().v({id:"bm-c"}).v({id:"bm-k"}).k({id:"bm-q",className:"bm-D",style:"margin-top: 0;",innerHTML:''},(t,e)=>{e.onclick=()=>{const e=t.t?.Ut;e?.[0]?(t.B("bm-v",e?.[0]||""),t.B("bm-w",e?.[1]||""),t.B("bm-x",e?.[2]||""),t.B("bm-y",e?.[3]||""),n()):t.P("Coordinates are malformed! Did you try clicking on the canvas first?")}}).h().I({type:"number",id:"bm-v",placeholder:"Tl X",min:0,max:2047,step:1,required:!0,value:e.Ht??""},(t,e)=>{e.addEventListener("paste",t=>{let e=(t.clipboardData||window.clipboardData).getData("text").split(" ").filter(t=>t).map(Number).filter(t=>!isNaN(t));if(4!==e.length)return;let n=(i=document,coords=[],coords.push(i.querySelector("#bm-v")),coords.push(i.querySelector("#bm-w")),coords.push(i.querySelector("#bm-x")),coords.push(i.querySelector("#bm-y")),coords);var i;for(let t=0;tn();e.addEventListener("input",i),e.addEventListener("change",i)}).h().I({type:"number",id:"bm-w",placeholder:"Tl Y",min:0,max:2047,step:1,required:!0,value:e.Yt??""},(t,e)=>{const i=()=>n();e.addEventListener("input",i),e.addEventListener("change",i)}).h().I({type:"number",id:"bm-x",placeholder:"Px X",min:0,max:2047,step:1,required:!0,value:e.px??""},(t,e)=>{const i=()=>n();e.addEventListener("input",i),e.addEventListener("change",i)}).h().I({type:"number",id:"bm-y",placeholder:"Px Y",min:0,max:2047,step:1,required:!0,value:e.zt??""},(t,e)=>{const i=()=>n();e.addEventListener("input",i),e.addEventListener("change",i)}).h().h().v({id:"bm-9",style:"max-height: 140px; overflow: auto; border: 1px solid rgba(255,255,255,0.1); padding: 4px; border-radius: 4px; display: none;"}).v({style:"display: flex; gap: 6px; margin-bottom: 6px;"}).k({id:"bm-3",textContent:"Enable All"},(t,e)=>{e.onclick=()=>{const e=S.rt[0];e?.X&&(Object.values(e.X).forEach(t=>t.enabled=!0),buildColorFilterList(),t._("Enabled all colors"))}}).h().k({id:"bm-0",textContent:"Disable All"},(t,e)=>{e.onclick=()=>{const e=S.rt[0];e?.X&&(Object.values(e.X).forEach(t=>t.enabled=!1),buildColorFilterList(),t._("Disabled all colors"))}}).h().h().v({id:"bm-g"}).h().h().L({id:"bm-a",textContent:"Upload Template",accept:"image/png, image/jpeg, image/webp, image/bmp, image/gif"}).h().v({id:"bm-4"}).k({id:"bm-s",textContent:"Enable"},(t,e)=>{e.onclick=()=>{t.t?.At?.Rt(!0),t._("Enabled templates!")}}).h().k({id:"bm-r",textContent:"Create"},(t,e)=>{e.onclick=()=>{const e=document.querySelector("#bm-a"),n=document.querySelector("#bm-v");if(!n.checkValidity())return n.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");const i=document.querySelector("#bm-w");if(!i.checkValidity())return i.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");const o=document.querySelector("#bm-x");if(!o.checkValidity())return o.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");const r=document.querySelector("#bm-y");if(!r.checkValidity())return r.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");e?.files[0]?(S.Bt(e.files[0],e.files[0]?.name.replace(/\.[^/.]+$/,""),[Number(n.value),Number(i.value),Number(o.value),Number(r.value)]),t._("Drew to canvas!")):t.P("No file selected!")}}).h().k({id:"bm-l",textContent:"Disable"},(t,e)=>{e.onclick=()=>{t.t?.At?.Rt(!1),t._("Disabled templates!")}}).h().h().G({id:$.i,placeholder:`Status: Sleeping...\nVersion: ${y}`,readOnly:!0}).h().v({id:"bm-6"}).v().k({id:"bm-m",className:"bm-D",innerHTML:"🎨",title:"Template Color Converter"},(t,e)=>{e.addEventListener("click",()=>{window.open("https://pepoafonso.github.io/color_converter_wplace/","_blank","noopener noreferrer")})}).h().k({id:"bm-n",className:"bm-D",innerHTML:"🌐",title:"Official Blue Marble Website"},(t,e)=>{e.addEventListener("click",()=>{window.open("https://bluemarble.camilledaguin.fr/","_blank","noopener noreferrer")})}).h().h().S({textContent:"Made by SwingTheVine",style:"margin-top: auto;"}).h().h().h().p(document.body),window.buildColorFilterList=function(){const t=document.querySelector("#bm-g"),e=S.rt?.[0];if(!t||!e?.X)return void(t&&(t.innerHTML="No template colors to display."));t.innerHTML="";const n=Object.entries(e.X).sort((t,e)=>e[1].count-t[1].count);for(const[e,i]of n){const[n,o,r]=e.split(",").map(Number),s=document.createElement("div");s.style.display="flex",s.style.alignItems="center",s.style.gap="8px",s.style.margin="4px 0";const a=document.createElement("div");a.style.width="14px",a.style.height="14px",a.style.border="1px solid rgba(255,255,255,0.5)",a.style.background=`rgb(${n},${o},${r})`;const m=document.createElement("span");m.style.fontSize="12px";let l=`${i.count.toLocaleString()}`;try{const t=S.rt?.[0]?.K?.get(e);if(t&&"number"==typeof t.id){const e=t?.name||`rgb(${n},${o},${r})`,i=t.premium?"★ ":"";l=`#${t.id} ${i}${e} • ${l}`}}catch(t){}m.textContent=l;const c=document.createElement("input");c.type="checkbox",c.checked=!!i.enabled,c.addEventListener("change",()=>{i.enabled=c.checked,$._(`${c.checked?"Enabled":"Disabled"} ${e}`);try{const t=S.rt?.[0],e=t?.H;t&&e&&S.it?.templates?.[e]&&(S.it.templates[e].palette=t.X,GM.setValue("bmTemplates",JSON.stringify(S.it)))}catch(t){}}),s.appendChild(c),s.appendChild(a),s.appendChild(m),t.appendChild(s)}},window.addEventListener("message",t=>{if("bm-b"===t?.data?.st)try{buildColorFilterList()}catch(t){}}),setTimeout(()=>{try{if(S.rt?.length>0){const t=document.querySelector("#bm-9");t&&(t.style.display=""),buildColorFilterList()}}catch(t){}},0)}(),$.W("#bm-A","#bm-z"),M.Xt($),new MutationObserver((t,e)=>{const n=document.querySelector("#color-1");if(!n)return;let i=document.querySelector("#bm-t");if(!i){i=document.createElement("button"),i.id="bm-t",i.textContent="Move ↑",i.className="btn btn-soft",i.onclick=function(){const t=this.parentNode.parentNode.parentNode.parentNode,e="Move ↑"==this.textContent;t.parentNode.className=t.parentNode.className.replace(e?"bottom":"top",e?"top":"bottom"),t.style.borderTopLeftRadius=e?"0px":"var(--radius-box)",t.style.borderTopRightRadius=e?"0px":"var(--radius-box)",t.style.borderBottomLeftRadius=e?"var(--radius-box)":"0px",t.style.borderBottomRightRadius=e?"var(--radius-box)":"0px",this.textContent=e?"Move ↓":"Move ↑"};const t=n.parentNode.parentNode.parentNode.parentNode.querySelector("h2");t.parentNode?.appendChild(i)}}).observe(document.body,{childList:!0,subtree:!0}),function(...t){(0,console.log)(...t)}(`%c${w}%c (${y}) userscript has loaded!`,"color: cornflowerblue;","")})(); \ No newline at end of file +(()=>{var e,t,n=e=>{throw TypeError(e)},i=(e,t,i)=>t.has(e)?n("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),o=(e,t,i)=>(((e,t)=>{t.has(e)||n("Cannot access private method")})(e,t),i),s=class{constructor(t,n){i(this,e),this.name=t,this.version=n,this.t=null,this.i="bm-o",this.o=null,this.l=null,this.m=[]}u(e){this.t=e}h(){return this.m.length>0&&(this.l=this.m.pop()),this}p(e){e?.appendChild(this.o),this.o=null,this.l=null,this.m=[]}v(n={},i=()=>{}){return i(this,o(this,e,t).call(this,"div",{},n)),this}$(n={},i=()=>{}){return i(this,o(this,e,t).call(this,"p",{},n)),this}S(n={},i=()=>{}){return i(this,o(this,e,t).call(this,"small",{},n)),this}M(n={},i=()=>{}){return i(this,o(this,e,t).call(this,"img",{},n)),this}O(n,i={},s=()=>{}){return s(this,o(this,e,t).call(this,"h"+n,{},i)),this}T(n={},i=()=>{}){return i(this,o(this,e,t).call(this,"hr",{},n)),this}D(n={},i=()=>{}){return i(this,o(this,e,t).call(this,"br",{},n)),this}k(n={},i=()=>{}){const s=o(this,e,t).call(this,"label",{textContent:n.textContent??""});delete n.textContent;const r=o(this,e,t).call(this,"input",{type:"checkbox"},n);return s.insertBefore(r,s.firstChild),this.h(),i(this,s,r),this}C(n={},i=()=>{}){return i(this,o(this,e,t).call(this,"button",{},n)),this}N(n={},i=()=>{}){const s=n.title??n.textContent??"Help: No info";delete n.textContent,n.title=`Help: ${s}`;const r={textContent:"?",className:"bm-D",onclick:()=>{this.B(this.i,s)}};return i(this,o(this,e,t).call(this,"button",r,n)),this}I(n={},i=()=>{}){return i(this,o(this,e,t).call(this,"input",{},n)),this}L(n={},i=()=>{}){const s=n.textContent??"";delete n.textContent;const r=o(this,e,t).call(this,"div"),a=o(this,e,t).call(this,"input",{type:"file",style:"display: none !important; visibility: hidden !important; position: absolute !important; left: -9999px !important; width: 0 !important; height: 0 !important; opacity: 0 !important;"},n);this.h();const l=o(this,e,t).call(this,"button",{textContent:s});return this.h(),this.h(),a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),l.addEventListener("click",()=>{a.click()}),a.addEventListener("change",()=>{l.style.maxWidth=`${l.offsetWidth}px`,a.files.length>0?l.textContent=a.files[0].name:l.textContent=s}),i(this,r,a,l),this}G(n={},i=()=>{}){return i(this,o(this,e,t).call(this,"textarea",{},n)),this}B(e,t,n=!1){const i=document.getElementById(e.replace(/^#/,""));i&&(i instanceof HTMLInputElement?i.value=t:n?i.textContent=t:i.innerHTML=t)}P(e,t){let n,i=!1,o=0,s=null,r=0,a=0,l=0,c=0;if(e=document.querySelector("#"==e?.[0]?e:"#"+e),t=document.querySelector("#"==t?.[0]?t:"#"+t),!e||!t)return void this.W(`Can not drag! ${e?"":"moveMe"} ${e||t?"":"and "}${t?"":"iMoveThings "}was not found!`);const m=()=>{if(i){const t=Math.abs(r-l),n=Math.abs(a-c);(t>.5||n>.5)&&(r=l,a=c,e.style.transform=`translate(${r}px, ${a}px)`,e.style.left="0px",e.style.top="0px",e.style.right=""),s=requestAnimationFrame(m)}};let u=null;const d=(d,h)=>{i=!0,u=e.getBoundingClientRect(),n=d-u.left,o=h-u.top;const b=window.getComputedStyle(e).transform;if(b&&"none"!==b){const e=new DOMMatrix(b);r=e.m41,a=e.m42}else r=u.left,a=u.top;l=r,c=a,document.body.style.userSelect="none",t.classList.add("dragging"),s&&cancelAnimationFrame(s),m()},h=()=>{i=!1,s&&(cancelAnimationFrame(s),s=null),document.body.style.userSelect="",t.classList.remove("dragging")};t.addEventListener("mousedown",function(e){e.preventDefault(),d(e.clientX,e.clientY)}),t.addEventListener("touchstart",function(e){const t=e?.touches?.[0];t&&(d(t.clientX,t.clientY),e.preventDefault())},{passive:!1}),document.addEventListener("mousemove",function(e){i&&u&&(l=e.clientX-n,c=e.clientY-o)},{passive:!0}),document.addEventListener("touchmove",function(e){if(i&&u){const t=e?.touches?.[0];if(!t)return;l=t.clientX-n,c=t.clientY-o,e.preventDefault()}},{passive:!1}),document.addEventListener("mouseup",h),document.addEventListener("touchend",h),document.addEventListener("touchcancel",h)}F(e){(0,console.info)(`${this.name}: ${e}`),this.B(this.i,"Status: "+e,!0)}W(e){(0,console.error)(`${this.name}: ${e}`),this.B(this.i,"Error: "+e,!0)}};function r(...e){(0,console.error)(...e)}function a(e,t){if(0===e)return t[0];let n="";const i=t.length;for(;e>0;)n=t[e%i]+n,e=Math.floor(e/i);return n}function l(e){let t="";for(let n=0;n"transparent"!==(e?.name||"").toLowerCase()&&Array.isArray(e?.rgb)).map(e=>`${e.rgb[0]},${e.rgb[1]},${e.rgb[2]}`));const c="222,250,206";this.H.add(c),this.K=new Map(l.filter(e=>Array.isArray(e?.rgb)).map(e=>[`${e.rgb[0]},${e.rgb[1]},${e.rgb[2]}`,{id:e.id,premium:!!e.premium,name:e.name}]));try{const e=l.find(e=>"transparent"===(e?.name||"").toLowerCase());e&&Array.isArray(e.rgb)&&this.K.set(c,{id:e.id,premium:!!e.premium,name:e.name})}catch(e){}}async Z(){console.log("Template coordinates:",this.coords);const e=await createImageBitmap(this.file),t=e.width,n=e.height,i=t*n;console.log(`Template pixel analysis - Dimensions: ${t}×${n} = ${i.toLocaleString()} pixels`),this.X=i;try{const i=new OffscreenCanvas(t,n).getContext("2d",{ee:!0});i.imageSmoothingEnabled=!1,i.clearRect(0,0,t,n),i.drawImage(e,0,0);const o=i.getImageData(0,0,t,n).data;let s=0,r=0;const a=new Map;for(let e=0;e0){for(const e in t){const n=e,i=t[e];if(console.log(n),t.hasOwnProperty(e)){const e=n.split(" "),o=Number(e?.[0]),s=e?.[1]||"0",r=i.name||`Template ${o||""}`,a=i.tiles,l={};let m=0;const u=new Map;for(const e in a)if(console.log(e),a.hasOwnProperty(e)){const t=c(a[e]),n=new Blob([t],{type:"image/png"}),i=await createImageBitmap(n);l[e]=i;try{const e=i.width,t=i.height,n=new OffscreenCanvas(e,t).getContext("2d",{ee:!0});n.imageSmoothingEnabled=!1,n.clearRect(0,0,e,t),n.drawImage(i,0,0);const o=n.getImageData(0,0,e,t).data;for(let n=0;n{d.U?.add(e.split(",").slice(0,2).join(","))})}catch(e){}try{const e=t?.[n]?.palette;if(e)for(const[t,n]of Object.entries(e))d.Y[t]?d.Y[t].enabled=!!n?.enabled:d.Y[t]={count:n?.count||0,enabled:!!n?.enabled}}catch(e){}d.V=n,this.se.push(d),console.log(this.se),console.log("^^^ This ^^^")}}try{const e=document.querySelector("#bm-9");e&&(e.style.display=""),window.postMessage({source:"blue-marble",re:"bm-b"},"*")}catch(e){}}},h=new WeakSet,b=async function(e=navigator.userAgent){return(e=e||"").includes("OPR/")||e.includes("Opera")?"Opera":e.includes("Edg/")?"Edge":e.includes("Vivaldi")?"Vivaldi":e.includes("YaBrowser")?"Yandex":e.includes("Kiwi")?"Kiwi":e.includes("Brave")?"Brave":e.includes("Firefox/")?"Firefox":e.includes("Chrome/")?"Chrome":e.includes("Safari/")?"Safari":navigator.brave&&"function"==typeof navigator.brave.isBrave&&await navigator.brave.isBrave()?"Brave":"Unknown"},p=function(e=navigator.userAgent){return/Windows NT 11/i.test(e=e||"")?"Windows 11":/Windows NT 10/i.test(e)?"Windows 10":/Windows NT 6\.3/i.test(e)?"Windows 8.1":/Windows NT 6\.2/i.test(e)?"Windows 8":/Windows NT 6\.1/i.test(e)?"Windows 7":/Windows NT 6\.0/i.test(e)?"Windows Vista":/Windows NT 5\.1|Windows XP/i.test(e)?"Windows XP":/Mac OS X 10[_\.]15/i.test(e)?"macOS Catalina":/Mac OS X 10[_\.]14/i.test(e)?"macOS Mojave":/Mac OS X 10[_\.]13/i.test(e)?"macOS High Sierra":/Mac OS X 10[_\.]12/i.test(e)?"macOS Sierra":/Mac OS X 10[_\.]11/i.test(e)?"OS X El Capitan":/Mac OS X 10[_\.]10/i.test(e)?"OS X Yosemite":/Mac OS X 10[_\.]/i.test(e)?"macOS":/Android/i.test(e)?"Android":/iPhone|iPad|iPod/i.test(e)?"iOS":/Linux/i.test(e)?"Linux":"Unknown"};var w=GM_info.script.name.toString(),y=GM_info.script.version.toString();!function(e){const t=document.createElement("script");t.setAttribute("bm-E",w),t.setAttribute("bm-B","color: cornflowerblue;"),t.textContent=`(${e})();`,document.documentElement?.appendChild(t),t.remove()}(()=>{const e=document.currentScript,t=e?.getAttribute("bm-E")||"Blue Marble",n=e?.getAttribute("bm-B")||"",i=new Map;window.addEventListener("message",e=>{const{source:o,endpoint:s,blobID:r,blobData:a,blink:l}=e.data,c=Date.now()-l;if(console.groupCollapsed(`%c${t}%c: ${i.size} Recieved IMAGE message about blob "${r}"`,n,""),console.log(`Blob fetch took %c${String(Math.floor(c/6e4)).padStart(2,"0")}:${String(Math.floor(c/1e3)%60).padStart(2,"0")}.${String(c%1e3).padStart(3,"0")}%c MM:SS.mmm`,n,""),console.log(i),console.groupEnd(),"blue-marble"==o&&r&&a&&!s){const e=i.get(r);"function"==typeof e?e(a):function(...e){(0,console.warn)(...e)}(`%c${t}%c: Attempted to retrieve a blob (%s) from queue, but the blobID was not a function! Skipping...`,n,"",r),i.delete(r)}});const o=window.fetch;window.fetch=async function(...e){const s=await o.apply(this,e),r=s.clone(),a=(e[0]instanceof Request?e[0]?.url:e[0])||"ignore",l=r.headers.get("content-type")||"";if(l.includes("application/json"))console.log(`%c${t}%c: Sending JSON message about endpoint "${a}"`,n,""),r.json().then(e=>{window.postMessage({source:"blue-marble",endpoint:a,jsonData:e},"*")}).catch(e=>{console.error(`%c${t}%c: Failed to parse JSON: `,n,"",e)});else if(l.includes("image/")&&!a.includes("openfreemap")&&!a.includes("maps")){const e=Date.now(),o=await r.blob();return console.log(`%c${t}%c: ${i.size} Sending IMAGE message about endpoint "${a}"`,n,""),new Promise(s=>{const l=crypto.randomUUID();i.set(l,e=>{s(new Response(e,{headers:r.headers,status:r.status,statusText:r.statusText})),console.log(`%c${t}%c: ${i.size} Processed blob "${l}"`,n,"")}),window.postMessage({source:"blue-marble",endpoint:a,blobID:l,blobData:o,blink:e})}).catch(o=>{const s=Date.now();console.error(`%c${t}%c: Failed to Promise blob!`,n,""),console.groupCollapsed(`%c${t}%c: Details of failed blob Promise:`,n,""),console.log(`Endpoint: ${a}\nThere are ${i.size} blobs processing...\nBlink: ${e.toLocaleString()}\nTime Since Blink: ${String(Math.floor(s/6e4)).padStart(2,"0")}:${String(Math.floor(s/1e3)%60).padStart(2,"0")}.${String(s%1e3).padStart(3,"0")} MM:SS.mmm`),console.error("Exception stack:",o),console.groupEnd()})}return s}});var v=GM_getResourceText("CSS-BM-File");GM_addStyle(v);var $=document.createElement("link");$.href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap",$.rel="preload",$.as="style",$.onload=function(){this.onload=null,this.rel="stylesheet"},document.head?.appendChild($),new class{constructor(){this.ae=null,this.le=null,this.ce="#bm-h"}me(e){return this.le=e,this.ae=new MutationObserver(e=>{for(const t of e)for(const e of t.addedNodes)e instanceof HTMLElement&&e.matches?.(this.ce)}),this}ue(){return this.ae}observe(e,t=!1,n=!1){e.observe(this.le,{childList:t,subtree:n})}};var x=new s(w,y),S=(new s(w,y),new class{constructor(e,t,n){i(this,m),this.name=e,this.version=t,this.o=n,this.de="1.0.0",this.he=null,this.be="!#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~",this.R=1e3,this.oe=3,this.pe=null,this.ge=null,this.fe="bm-C",this.we="div#map canvas.maplibregl-canvas",this.ye=null,this.ve="",this.se=[],this.ie=null,this.$e=!0,this.xe=new Map}Se(){if(document.body.contains(this.pe))return this.pe;document.getElementById(this.fe)?.remove();const e=document.querySelector(this.we),t=document.createElement("canvas");return t.id=this.fe,t.className="maplibregl-canvas",t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.height=e?.clientHeight*(window.devicePixelRatio||1)+"px",t.style.width=e?.clientWidth*(window.devicePixelRatio||1)+"px",t.height=e?.clientHeight*(window.devicePixelRatio||1),t.width=e?.clientWidth*(window.devicePixelRatio||1),t.style.zIndex="8999",t.style.pointerEvents="none",e?.parentElement?.appendChild(t),this.pe=t,window.addEventListener("move",this.Me),window.addEventListener("zoom",this.Oe),window.addEventListener("resize",this.Te),this.pe}async De(){return{whoami:this.name.replace(" ",""),scriptVersion:this.version,schemaVersion:this.de,templates:{}}}async ke(e,t,n){this.ie||(this.ie=await this.De(),console.log("Creating JSON...")),this.o.F(`Creating template at ${n.join(", ")}...`);const i=new f({displayName:t,_:0,J:a(this.he||0,this.be),file:e,coords:n}),{te:s,ne:r}=await i.Z(this.R);i.j=s;const l=`${i._} ${i.J}`;i.V=l,this.ie.templates[l]={name:i.displayName,coords:n.join(", "),enabled:!0,tiles:r,palette:i.Y},this.se=[],this.se.push(i);const c=(new Intl.NumberFormat).format(i.X);this.o.F(`Template created at ${n.join(", ")}! Total pixels: ${c}`);try{const e=document.querySelector("#bm-9");e&&(e.style.display=""),window.postMessage({source:"blue-marble",re:"bm-b"},"*")}catch(e){}console.log(Object.keys(this.ie.templates).length),console.log(this.ie),console.log(this.se),console.log(JSON.stringify(this.ie)),await o(this,m,u).call(this)}Ce(){}async Ne(){this.ie||(this.ie=await this.De(),console.log("Creating JSON..."))}async Be(e,t){if(!this.$e)return e;const n=this.R*this.oe;t=t[0].toString().padStart(4,"0")+","+t[1].toString().padStart(4,"0"),console.log(`Searching for templates in tile: "${t}"`);const i=this.se;if(console.log(i),i.sort((e,t)=>e._-t._),console.log(i),!i.some(e=>!!e?.j&&(e.U&&e.U.size>0?e.U.has(t):Object.keys(e.j).some(e=>e.startsWith(t)))))return e;const o=i.map(e=>{const n=Object.keys(e.j).filter(e=>e.startsWith(t));if(0===n.length)return null;const i=n.map(t=>{const n=t.split(",");return{Ie:e.j[t],Le:[n[0],n[1]],Ge:[n[2],n[3]]}});return i?.[0]}).filter(Boolean);console.log(o);const s=o?.length||0;console.log(`templateCount = ${s}`);let r=0,a=0,l=0;const c=await createImageBitmap(e),m=new OffscreenCanvas(n,n),u=m.getContext("2d");u.imageSmoothingEnabled=!1,u.beginPath(),u.rect(0,0,n,n),u.clip(),u.clearRect(0,0,n,n),u.drawImage(c,0,0,n,n);let d=null;try{d=u.getImageData(0,0,n,n).data}catch(e){}for(const e of o){if(console.log("Template:"),console.log(e),d)try{const t=e.Ie.width,i=e.Ie.height,o=new OffscreenCanvas(t,i).getContext("2d",{ee:!0});o.imageSmoothingEnabled=!1,o.clearRect(0,0,t,i),o.drawImage(e.Ie,0,0);const s=o.getImageData(0,0,t,i).data,c=Number(e.Ge[0])*this.oe,m=Number(e.Ge[1])*this.oe;for(let e=0;e=n||u>=n)continue;const h=4*(e*t+i),b=s[h],p=s[h+1],g=s[h+2];if(s[h+3]<64){try{const e=this.se?.[0],t=4*(u*n+o),i=d[t],s=d[t+1],r=d[t+2],l=d[t+3],c=`${i},${s},${r}`,m=!!e?.H&&e.H.has(c);l>=64&&m&&a++}catch(e){}continue}try{const e=this.se?.[0];if(e?.H&&!e.H.has(`${b},${p},${g}`))continue}catch(e){}l++;const f=4*(u*n+o),w=d[f],y=d[f+1],v=d[f+2];d[f+3]<64||(w===b&&y===p&&v===g?r++:a++)}}catch(e){console.warn("Failed to compute per-tile painted/wrong stats:",e)}try{const t=this.se?.[0],n=t?.Y||{};if(Object.values(n).some(e=>!1===e?.enabled)){const i=e.Ie.width,o=e.Ie.height,s=new OffscreenCanvas(i,o),r=s.getContext("2d",{ee:!0});r.imageSmoothingEnabled=!1,r.clearRect(0,0,i,o),r.drawImage(e.Ie,0,0);const a=r.getImageData(0,0,i,o),l=a.data;for(let e=0;e0){const e=t;this.xe.set(e,{Pe:r,required:l,We:a});let n=0,i=0,o=0;for(const e of this.xe.values())n+=e.Pe||0,i+=e.required||0,o+=e.We||0;const c=this.se.reduce((e,t)=>e+(t.A||t.X||0),0),m=c>0?c:i,u=(new Intl.NumberFormat).format(n),d=(new Intl.NumberFormat).format(m),h=(new Intl.NumberFormat).format(m-n);this.o.F(`Displaying ${s} template${1==s?"":"s"}.\nPainted ${u} / ${d} • Wrong ${h}`)}else this.o.F(`Displaying ${s} templates.`);return await m.convertToBlob({type:"image/png"})}Fe(e){console.log("Importing JSON..."),console.log(e),"BlueMarble"==e?.whoami&&o(this,m,d).call(this,e)}_e(e){this.$e=e}}(w,y,x)),M=new class{constructor(e){i(this,h),this.Ee=e,this.Je=!1,this.je=[],this.Re=[]}Xe(e){window.addEventListener("message",async t=>{const n=t.data,i=n.jsonData;if(!n||"blue-marble"!==n.source)return;if(!n.endpoint)return;const o=n.endpoint?.split("?")[0].split("/").filter(e=>e&&isNaN(Number(e))).filter(e=>e&&!e.includes(".")).pop();switch(console.log('%cBlue Marble%c: Recieved message about "%s"',"color: cornflowerblue;","",o),o){case"me":if(i.status&&"2"!=i.status?.toString()[0])return void e.W("You are not logged in!\nCould not fetch userdata.");const t=Math.ceil(Math.pow(Math.floor(i.level)*Math.pow(30,.65),1/.65)-i.pixelsPainted);console.log(i.id),(i.id||0===i.id)&&console.log(a(i.id,"!#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~")),this.Ee.he=i.id,e.B("bm-u",`Username: ${function(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML}(i.name)}`),e.B("bm-p",`Droplets: ${(new Intl.NumberFormat).format(i.droplets)}`),e.B("bm-i",`Next level in ${(new Intl.NumberFormat).format(t)} pixel${1==t?"":"s"}`);break;case"pixel":const o=n.endpoint.split("?")[0].split("/").filter(e=>e&&!isNaN(Number(e))),l=new URLSearchParams(n.endpoint.split("?")[1]),c=[l.get("x"),l.get("y")];if(this.je.length&&(!o.length||!c.length))return void e.W("Coordinates are malformed!\nDid you try clicking the canvas first?");this.je=[...o,...c];const m=(s=o,r=c,[parseInt(s[0])%4*1e3+parseInt(r[0]),parseInt(s[1])%4*1e3+parseInt(r[1])]),u=document.querySelectorAll("span");for(const e of u)if(e.textContent.trim().includes(`${m[0]}, ${m[1]}`)){let t=document.querySelector("#bm-h");const n=`(Tl X: ${o[0]}, Tl Y: ${o[1]}, Px X: ${c[0]}, Px Y: ${c[1]})`;t?t.textContent=n:(t=document.createElement("span"),t.id="bm-h",t.textContent=n,t.style="margin-left: calc(var(--spacing)*3); font-size: small;",e.parentNode.parentNode.parentNode.insertAdjacentElement("afterend",t))}break;case"tiles":let d=n.endpoint.split("/");d=[parseInt(d[d.length-2]),parseInt(d[d.length-1].replace(".png",""))];const h=n.blobID,b=n.blobData,p=await this.Ee.Be(b,d);window.postMessage({source:"blue-marble",blobID:h,blobData:p,blink:n.blink});break;case"robots":this.Je="false"==i.userscript?.toString().toLowerCase();break}var s,r})}async Ae(e){console.log("Sending heartbeat to telemetry server...");let t=GM_getValue("bmUserSettings","{}");if(t=JSON.parse(t),!t||!t.telemetry||!t.uuid)return void console.log("Telemetry is disabled, not sending heartbeat.");const n=navigator.userAgent;let i=await o(this,h,b).call(this,n),s=o(this,h,p).call(this,n);GM_xmlhttpRequest({method:"POST",url:"https://telemetry.thebluecorner.net/heartbeat",headers:{"Content-Type":"application/json"},data:JSON.stringify({uuid:t.uuid,version:e,browser:i,os:s}),onload:e=>{200!==e.status&&r("Failed to send heartbeat:",e.statusText)},onerror:e=>{r("Error sending heartbeat:",e)}})}}(S);x.u(M);var O=JSON.parse(GM_getValue("bmTemplates","{}"));console.log(O),S.Fe(O);var T=JSON.parse(GM_getValue("bmUserSettings","{}"));if(console.log(T),console.log(Object.keys(T).length),0==Object.keys(T).length){const e=crypto.randomUUID();console.log(e),GM.setValue("bmUserSettings",JSON.stringify({uuid:e}))}if(setInterval(()=>M.Ae(y),18e5),console.log(`Telemetry is ${!(null==T?.telemetry)}`),null==T?.telemetry||T?.telemetry>1){const e=new s(w,y);e.u(M),e.v({id:"bm-d",style:"top: 0px; left: 0px; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; z-index: 9999;"}).v({id:"bm-7",style:"display: flex; flex-direction: column; align-items: center;"}).v({id:"bm-1",style:"margin-top: 10%;"}).O(1,{textContent:`${w} Telemetry`}).h().h().v({id:"bm-e",style:"max-width: 50%; overflow-y: auto; max-height: 80vh;"}).T().h().D().h().v({style:"width: fit-content; margin: auto; text-align: center;"}).C({id:"bm-8",textContent:"More Information"},(e,t)=>{t.onclick=()=>{window.open("https://github.com/SwingTheVine/Wplace-TelemetryServer#telemetry-data","_blank","noopener noreferrer")}}).h().h().D().h().v({style:"width: fit-content; margin: auto; text-align: center;"}).C({id:"bm-5",textContent:"Enable Telemetry",style:"margin-right: 2ch;"},(e,t)=>{t.onclick=()=>{const e=JSON.parse(GM_getValue("bmUserSettings","{}"));e.telemetry=1,GM.setValue("bmUserSettings",JSON.stringify(e));const t=document.getElementById("bm-d");t&&(t.style.display="none")}}).h().C({id:"bm-2",textContent:"Disable Telemetry"},(e,t)=>{t.onclick=()=>{const e=JSON.parse(GM_getValue("bmUserSettings","{}"));e.telemetry=0,GM.setValue("bmUserSettings",JSON.stringify(e));const t=document.getElementById("bm-d");t&&(t.style.display="none")}}).h().h().D().h().$({textContent:"We collect anonymous telemetry data such as your browser, OS, and script version to make the experience better for everyone. The data is never shared personally. The data is never sold. You can turn this off by pressing the 'Disable' button, but keeping it on helps us improve features and reliability faster. Thank you for supporting the Blue Marble!"}).h().$({textContent:'You can disable telemetry by pressing the "Disable" button below.'}).h().h().h().p(document.body)}!function(){let e=!1,t={};try{t=JSON.parse(GM_getValue("bmCoords","{}"))||{}}catch(e){t={}}const n=()=>{try{const e=Number(document.querySelector("#bm-v")?.value||""),t=Number(document.querySelector("#bm-w")?.value||""),n={qe:e,Ye:t,px:Number(document.querySelector("#bm-x")?.value||""),Ue:Number(document.querySelector("#bm-y")?.value||"")};GM.setValue("bmCoords",JSON.stringify(n))}catch(e){}};x.v({id:"bm-A",style:"top: 10px; right: 75px;"}).v({id:"bm-j"}).v({id:"bm-z"}).h().M({alt:"Blue Marble Icon - Click to minimize/maximize",src:"https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/dist/assets/Favicon.png",style:"cursor: pointer;"},(t,n)=>{n.addEventListener("click",()=>{e=!e;const i=document.querySelector("#bm-A"),o=document.querySelector("#bm-j"),s=document.querySelector("#bm-z"),r=document.querySelector("#bm-k"),a=document.querySelector("#bm-q"),l=document.querySelector("#bm-r"),c=document.querySelector("#bm-s"),m=document.querySelector("#bm-l"),u=document.querySelectorAll("#bm-k input");e||(i.style.width="auto",i.style.maxWidth="300px",i.style.minWidth="200px",i.style.padding="10px"),["#bm-A h1","#bm-f","#bm-A hr","#bm-c > *:not(#bm-k)","#bm-a","#bm-6",`#${t.i}`,"#bm-9"].forEach(t=>{document.querySelectorAll(t).forEach(t=>{t.style.display=e?"none":""})}),e?(r&&(r.style.display="none"),a&&(a.style.display="none"),l&&(l.style.display="none"),c&&(c.style.display="none"),m&&(m.style.display="none"),u.forEach(e=>{e.style.display="none"}),i.style.width="60px",i.style.height="76px",i.style.maxWidth="60px",i.style.minWidth="60px",i.style.padding="8px",n.style.marginLeft="3px",o.style.textAlign="center",o.style.margin="0",o.style.marginBottom="0",s&&(s.style.display="",s.style.marginBottom="0.25em")):(r&&(r.style.display="",r.style.flexDirection="",r.style.justifyContent="",r.style.alignItems="",r.style.gap="",r.style.textAlign="",r.style.margin=""),a&&(a.style.display=""),l&&(l.style.display="",l.style.marginTop=""),c&&(c.style.display="",c.style.marginTop=""),m&&(m.style.display="",m.style.marginTop=""),u.forEach(e=>{e.style.display=""}),n.style.marginLeft="",i.style.padding="10px",o.style.textAlign="",o.style.margin="",o.style.marginBottom="",s&&(s.style.marginBottom="0.5em"),i.style.width="",i.style.height=""),n.alt=e?"Blue Marble Icon - Minimized (Click to maximize)":"Blue Marble Icon - Maximized (Click to minimize)"})}).h().O(1,{textContent:w}).h().h().T().h().v({id:"bm-f"}).$({id:"bm-u",textContent:"Username:"}).h().$({id:"bm-p",textContent:"Droplets:"}).h().$({id:"bm-i",textContent:"Next level in..."}).h().h().T().h().v({id:"bm-c"}).v({id:"bm-k"}).C({id:"bm-q",className:"bm-D",style:"margin-top: 0;",innerHTML:''},(e,t)=>{t.onclick=()=>{const t=e.t?.je;t?.[0]?(e.B("bm-v",t?.[0]||""),e.B("bm-w",t?.[1]||""),e.B("bm-x",t?.[2]||""),e.B("bm-y",t?.[3]||""),n()):e.W("Coordinates are malformed! Did you try clicking on the canvas first?")}}).h().I({type:"number",id:"bm-v",placeholder:"Tl X",min:0,max:2047,step:1,required:!0,value:t.qe??""},(e,t)=>{t.addEventListener("paste",e=>{let t=(e.clipboardData||window.clipboardData).getData("text").split(" ").filter(e=>e).map(Number).filter(e=>!isNaN(e));if(4!==t.length)return;let n=(i=document,coords=[],coords.push(i.querySelector("#bm-v")),coords.push(i.querySelector("#bm-w")),coords.push(i.querySelector("#bm-x")),coords.push(i.querySelector("#bm-y")),coords);var i;for(let e=0;en();t.addEventListener("input",i),t.addEventListener("change",i)}).h().I({type:"number",id:"bm-w",placeholder:"Tl Y",min:0,max:2047,step:1,required:!0,value:t.Ye??""},(e,t)=>{const i=()=>n();t.addEventListener("input",i),t.addEventListener("change",i)}).h().I({type:"number",id:"bm-x",placeholder:"Px X",min:0,max:2047,step:1,required:!0,value:t.px??""},(e,t)=>{const i=()=>n();t.addEventListener("input",i),t.addEventListener("change",i)}).h().I({type:"number",id:"bm-y",placeholder:"Px Y",min:0,max:2047,step:1,required:!0,value:t.Ue??""},(e,t)=>{const i=()=>n();t.addEventListener("input",i),t.addEventListener("change",i)}).h().h().v({id:"bm-9",style:"max-height: 140px; overflow: auto; border: 1px solid rgba(255,255,255,0.1); padding: 4px; border-radius: 4px; display: none;"}).v({style:"display: flex; gap: 6px; margin-bottom: 6px;"}).C({id:"bm-3",textContent:"Enable All"},(e,t)=>{t.onclick=()=>{const t=S.se[0];t?.Y&&(Object.values(t.Y).forEach(e=>e.enabled=!0),buildColorFilterList(),e.F("Enabled all colors"))}}).h().C({id:"bm-0",textContent:"Disable All"},(e,t)=>{t.onclick=()=>{const t=S.se[0];t?.Y&&(Object.values(t.Y).forEach(e=>e.enabled=!1),buildColorFilterList(),e.F("Disabled all colors"))}}).h().h().v({id:"bm-g"}).h().h().L({id:"bm-a",textContent:"Upload Template",accept:"image/png, image/jpeg, image/webp, image/bmp, image/gif"}).h().v({id:"bm-4"}).C({id:"bm-s",textContent:"Enable"},(e,t)=>{t.onclick=()=>{e.t?.Ee?._e(!0),e.F("Enabled templates!")}}).h().C({id:"bm-r",textContent:"Create"},(e,t)=>{t.onclick=()=>{const t=document.querySelector("#bm-a"),n=document.querySelector("#bm-v");if(!n.checkValidity())return n.reportValidity(),void e.W("Coordinates are malformed! Did you try clicking on the canvas first?");const i=document.querySelector("#bm-w");if(!i.checkValidity())return i.reportValidity(),void e.W("Coordinates are malformed! Did you try clicking on the canvas first?");const o=document.querySelector("#bm-x");if(!o.checkValidity())return o.reportValidity(),void e.W("Coordinates are malformed! Did you try clicking on the canvas first?");const s=document.querySelector("#bm-y");if(!s.checkValidity())return s.reportValidity(),void e.W("Coordinates are malformed! Did you try clicking on the canvas first?");t?.files[0]?(S.ke(t.files[0],t.files[0]?.name.replace(/\.[^/.]+$/,""),[Number(n.value),Number(i.value),Number(o.value),Number(s.value)]),e.F("Drew to canvas!")):e.W("No file selected!")}}).h().C({id:"bm-l",textContent:"Disable"},(e,t)=>{t.onclick=()=>{e.t?.Ee?._e(!1),e.F("Disabled templates!")}}).h().h().G({id:x.i,placeholder:`Status: Sleeping...\nVersion: ${y}`,readOnly:!0}).h().v({id:"bm-6"}).v().C({id:"bm-m",className:"bm-D",innerHTML:"🎨",title:"Template Color Converter"},(e,t)=>{t.addEventListener("click",()=>{window.open("https://pepoafonso.github.io/color_converter_wplace/","_blank","noopener noreferrer")})}).h().C({id:"bm-n",className:"bm-D",innerHTML:"🌐",title:"Official Blue Marble Website"},(e,t)=>{t.addEventListener("click",()=>{window.open("https://bluemarble.camilledaguin.fr/","_blank","noopener noreferrer")})}).h().h().S({textContent:"Made by SwingTheVine",style:"margin-top: auto;"}).h().h().h().p(document.body),window.buildColorFilterList=function(){const e=document.querySelector("#bm-g"),t=S.se?.[0];if(!e||!t?.Y)return void(e&&(e.innerHTML="No template colors to display."));e.innerHTML="";const n=Object.entries(t.Y).sort((e,t)=>t[1].count-e[1].count);for(const[t,i]of n){const[n,o,s]=t.split(",").map(Number),r=document.createElement("div");r.style.display="flex",r.style.alignItems="center",r.style.gap="8px",r.style.margin="4px 0";const a=document.createElement("div");a.style.width="14px",a.style.height="14px",a.style.border="1px solid rgba(255,255,255,0.5)",a.style.background=`rgb(${n},${o},${s})`;const l=document.createElement("span");l.style.fontSize="12px";let c=`${i.count.toLocaleString()}`;try{const e=S.se?.[0]?.K?.get(t);if(e&&"number"==typeof e.id){const t=e?.name||`rgb(${n},${o},${s})`,i=e.premium?"★ ":"";c=`#${e.id} ${i}${t} • ${c}`}}catch(e){}l.textContent=c;const m=document.createElement("input");m.type="checkbox",m.checked=!!i.enabled,m.addEventListener("change",()=>{i.enabled=m.checked,x.F(`${m.checked?"Enabled":"Disabled"} ${t}`);try{const e=S.se?.[0],t=e?.V;e&&t&&S.ie?.templates?.[t]&&(S.ie.templates[t].palette=e.Y,GM.setValue("bmTemplates",JSON.stringify(S.ie)))}catch(e){}}),r.appendChild(m),r.appendChild(a),r.appendChild(l),e.appendChild(r)}},window.addEventListener("message",e=>{if("bm-b"===e?.data?.re)try{buildColorFilterList()}catch(e){}}),setTimeout(()=>{try{if(S.se?.length>0){const e=document.querySelector("#bm-9");e&&(e.style.display=""),buildColorFilterList()}}catch(e){}},0)}(),x.P("#bm-A","#bm-z"),M.Xe(x),new MutationObserver((e,t)=>{const n=document.querySelector("#color-1");if(!n)return;let i=document.querySelector("#bm-t");if(!i){i=document.createElement("button"),i.id="bm-t",i.textContent="Move ↑",i.className="btn btn-soft",i.onclick=function(){const e=this.parentNode.parentNode.parentNode.parentNode,t="Move ↑"==this.textContent;e.parentNode.className=e.parentNode.className.replace(t?"bottom":"top",t?"top":"bottom"),e.style.borderTopLeftRadius=t?"0px":"var(--radius-box)",e.style.borderTopRightRadius=t?"0px":"var(--radius-box)",e.style.borderBottomLeftRadius=t?"var(--radius-box)":"0px",e.style.borderBottomRightRadius=t?"var(--radius-box)":"0px",this.textContent=t?"Move ↓":"Move ↑"};const e=n.parentNode.parentNode.parentNode.parentNode.querySelector("h2");e.parentNode?.appendChild(i)}}).observe(document.body,{childList:!0,subtree:!0}),function(...e){(0,console.log)(...e)}(`%c${w}%c (${y}) userscript has loaded!`,"color: cornflowerblue;","")})(); diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 68d2dcb..e502aea 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -53,15 +53,19 @@ Thank you for wanting to contribute to the userscript "Blue Marble"! It means a lot to me that someone likes my project enough to want to help it grow. If you haven't already done so, consider joining our Discord. You can ask questions about the userscript there and receive feedback. You can also visit the official Blue Marble website for more information.
Note: If you are using AI, and you want to tell the AI how the codebase files are related to each-other, go to the Class diagram of relationships for Blue Marble diagram in the chart section of this file. Copy the chart, and give it to the AI. +
+ Note: If you are contributing to the documentation of this project, make your fork from the documentation branch. If you are contributing to the code/programming of this project, make your fork from the code branch. If you fork main, and make a PR from main -> main your PR might be rejected. This is because main is not up-to-date, and your changes might conflict with up-to-date changes.

Summary

  • I don't want to waste your time, so double check with me before starting a big change like adding a new feature. For example, imagine you spend 50 hours making a bot that automatically places pixels, then your pull request was rejected because a bot that automatically places pixles does not align with the "Mission" of Blue Marble. That would be sad :(
  • -
  • Follow the style of the project. E.g., if all overlays are made by calling `Overlay()`, and you want to make a new overlay, you should probably call `Overlay()` as well.
  • +
  • Follow the style of the project. E.g., if all overlays are made by calling Overlay(), and you want to make a new overlay, you should probably call Overlay() as well.
  • Low quality code will be rejected.
  • You can find documentation for Blue Marble here.
  • +
  • Don't fork the main branch! Fork either code or documentation.
  • +
  • If you are adding a new feature, and it is feasable to stick your feature inside a function, then use a function. This will make your code conflict less with other people's code. Make your code modular.

@@ -79,7 +83,14 @@

What Can I Contribute?

Programming

- Most of the work to be done in this userscript is related to programming. It is helpful to have a background in programming, but not required. If you are looking to learn JavaScript and its syntax, check out this roadmap for learning JavaScript. We strongly recommend that you understand functions, methods, classes, and Object-Oriented-Programming if you plan to implement a brand new feature. More technical knowledge like method chaining and lambda expressions are useful but not required. You can find the documentation for Blue Marble here. + Most of the work to be done in this userscript is related to programming. It is helpful to have a background in programming, but not required. If you are looking to learn JavaScript and its syntax, check out this roadmap for learning JavaScript. We strongly recommend that you understand functions, methods, classes, and Object-Oriented-Programming if you plan to implement a brand new feature. More technical knowledge like method chaining and lambda expressions are useful but not required. You can find the documentation for Blue Marble here. Make your code modular when possible. In other words, you should "blackbox" your code by putting it in a function when possible. For example, if you are adding a color filter to remove colors from being displayed on the template, the function should pass in the template information and tile information, and output the filtered template/tile information. This way, other people's code can't interfere with the color filter. For example: +
+

    +
  1. The template image is generated and the tile information is retrieved.
  2. +
  3. The color filter function is passed in the template image and the tile information. The color filter overrides the template image with the filtered colors, and outputs that as the template image.
  4. +
  5. The pixel counter function is passed in the modified template image and the tile information, and outputs the pixel count.
  6. +
  7. The modified template image and the tile information is used to render the template.
  8. +

Translation

diff --git a/docs/README.md b/docs/README.md index 081bf4b..c983795 100644 --- a/docs/README.md +++ b/docs/README.md @@ -43,18 +43,18 @@

Blue Marble

Wplace Status -Latest Version +Latest Version Latest Release Software License: MPL-2.0 Contact Me Blue Marble Website -WakaTime -Total Patches +WakaTime +Total Patches Total Lines of Code Total Comments Compression Repo Size -Visitors +Visitors Downloads Build Pages @@ -209,7 +209,8 @@
Find template coordinates
  • Upload a PNG or WEBP image.
  • -
  • Click the "Enable" button.
  • +
  • Click the "Create" button.
  • +
  • If your template still does not show, try clicking the "Enable" button.
  • @@ -222,7 +223,11 @@

    Transparent Pixels

    - Templates for Blue Marble work slightly different from normal. Since there is a "Transparent" color, and transparent pixels in templates are typically ignored, your template should have a custom color to signify "Transparent" colored pixels. If a specific pixel can be any color, it should be transparent in the template. If a specific pixel should be "Transparent" color, it should have the #deface hex color. Any #deface colored pixel in your template will be interpereted as the "Transparent" color. Any transparent colored pixel in your template will be interpereted as ignored. + Templates for Blue Marble work slightly different from normal. Since there is a "Transparent" color, and transparent pixels in templates are typically ignored, your template should have a custom color to signify "Transparent" colored pixels. +

      +
    • If you want a specific pixel to be any color, it should be transparent in your template.
    • +
    • If you want a specific pixel to be the "Transparent" color on the Wplace palette, it should have the #deface hex color.
    • +

    Coordinates

    @@ -234,7 +239,7 @@

    Template Coordinates

    - The template is aligned from the top left corner of the template. You can auto-fill this position using the "pin" icon next to the coordinate input boxes. + The template is aligned from the top left corner of the template. You can auto-fill this position using the "pin" (also called "waypoint") icon next to the coordinate input boxes.

    @@ -267,6 +272,12 @@

    How do I hide the overlay?

    A: Turn the userscript off and refresh the page.

    +

    How do I tell colors apart?

    +

    A: Find the color in the color filter list. Click the checkbox to turn the color on or off. If you want to work on only one color at a time (recommended), then click "Disable All" in the color filter. Finally, enable the checkbox next to the color you want to place. This way, only one color on your template will appear at a time.

    + +

    How do get the color of a pixel?

    +

    A: Use the eyedropper in the palette menu of wplace. If your template colors match the wplace palette, you can select the template pixel dot to get the template's color for that pixel.

    +

    Why do game notifications appear on top of the overlay?

    A: Game notifications only appear when they need immediate attention. Therefore, they have priority over the overlay (which typically needs no attention).

    diff --git a/package-lock.json b/package-lock.json index 99fbb70..12cbec1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "wplace-bluemarble", - "version": "0.82.54", + "version": "0.84.14", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "wplace-bluemarble", - "version": "0.82.54", + "version": "0.84.14", "devDependencies": { "esbuild": "^0.25.0", "jsdoc": "^4.0.4", diff --git a/package.json b/package.json index 3fc9ffc..ce57daa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wplace-bluemarble", - "version": "0.84.0", + "version": "0.84.14", "type": "module", "homepage": "https://bluemarble.camilledaguin.fr/", "repository": { diff --git a/src/BlueMarble.meta.js b/src/BlueMarble.meta.js index 23bbf5a..46073f0 100644 --- a/src/BlueMarble.meta.js +++ b/src/BlueMarble.meta.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Blue Marble // @namespace https://github.com/SwingTheVine/ -// @version 0.84.0 +// @version 0.84.14 // @description A userscript to automate and/or enhance the user experience on Wplace.live. Make sure to comply with the site's Terms of Service, and rules! This script is not affiliated with Wplace.live in any way, use at your own risk. This script is not affiliated with TamperMonkey. The author of this userscript is not responsible for any damages, issues, loss of data, or punishment that may occur as a result of using this script. This script is provided "as is" under the MPL-2.0 license. The "Blue Marble" icon is licensed under CC0 1.0 Universal (CC0 1.0) Public Domain Dedication. The image is owned by NASA. // @author SwingTheVine // @license MPL-2.0 diff --git a/src/Template.js b/src/Template.js index 357ec50..90d7f52 100644 --- a/src/Template.js +++ b/src/Template.js @@ -46,28 +46,42 @@ export default class Template { this.storageKey = null; // Key used inside templatesJSON to persist settings // Build allowed color set from site palette (exclude special Transparent entry by name) + // Creates a Set of Wplace palette colors excluding "transparent" const allowed = Array.isArray(colorpalette) ? colorpalette : []; this.allowedColorsSet = new Set( allowed - .filter(c => (c?.name || '').toLowerCase() !== 'transparent' && Array.isArray(c?.rgb)) - .map(c => `${c.rgb[0]},${c.rgb[1]},${c.rgb[2]}`) + .filter(color => (color?.name || '').toLowerCase() !== 'transparent' && Array.isArray(color?.rgb)) + .map(color => `${color.rgb[0]},${color.rgb[1]},${color.rgb[2]}`) ); + // Ensure template #deface marker is treated as allowed (maps to Transparent color) const defaceKey = '222,250,206'; this.allowedColorsSet.add(defaceKey); + + const keyOther = 'other'; + this.allowedColorsSet.add(keyOther); // Special "other" key for non-palette colors + // Map rgb-> {id, premium} this.rgbToMeta = new Map( allowed - .filter(c => Array.isArray(c?.rgb)) - .map(c => [ `${c.rgb[0]},${c.rgb[1]},${c.rgb[2]}`, { id: c.id, premium: !!c.premium, name: c.name } ]) + .filter(color => Array.isArray(color?.rgb)) + .map(color => [ `${color.rgb[0]},${color.rgb[1]},${color.rgb[2]}`, { id: color.id, premium: !!color.premium, name: color.name } ]) ); + // Map #deface to Transparent meta for UI naming and ID continuity try { - const transparent = allowed.find(c => (c?.name || '').toLowerCase() === 'transparent'); + const transparent = allowed.find(color => (color?.name || '').toLowerCase() === 'transparent'); if (transparent && Array.isArray(transparent.rgb)) { this.rgbToMeta.set(defaceKey, { id: transparent.id, premium: !!transparent.premium, name: transparent.name }); } - } catch (_) {} + } catch (ignored) {} + + // Map other key to Other meta for UI naming and ID continuity + try { + this.rgbToMeta.set(keyOther, { id: 'other', premium: false, name: 'Other' }); + } catch (ignored) {} + + console.log('Allowed colors for template:', this.allowedColorsSet); } /** Creates chunks of the template for each tile. @@ -112,9 +126,9 @@ export default class Template { const b = inspectData[idx + 2]; const a = inspectData[idx + 3]; if (a === 0) { continue; } // Ignored transparent pixel - const key = `${r},${g},${b}`; if (r === 222 && g === 250 && b === 206) { deface++; } - if (!this.allowedColorsSet.has(key)) { continue; } // Skip non-palette colors (but #deface added to allowed) + const key = this.allowedColorsSet.has(`${r},${g},${b}`) ? `${r},${g},${b}` : 'other'; + //if (!this.allowedColorsSet.has(key)) { continue; } // Skip non-palette colors (but #deface added to allowed) required++; paletteMap.set(key, (paletteMap.get(key) || 0) + 1); } @@ -228,7 +242,7 @@ export default class Template { const g = imageData.data[pixelIndex + 1]; const b = imageData.data[pixelIndex + 2]; if (!this.allowedColorsSet.has(`${r},${g},${b}`)) { - imageData.data[pixelIndex + 3] = 0; // hide non-palette colors + //imageData.data[pixelIndex + 3] = 0; // hide non-palette colors } } } diff --git a/src/main.js b/src/main.js index b0d3b6a..52b4f08 100644 --- a/src/main.js +++ b/src/main.js @@ -652,31 +652,40 @@ function buildOverlayMain() { .sort((a,b) => b[1].count - a[1].count); // sort by frequency desc for (const [rgb, meta] of entries) { - const [r,g,b] = rgb.split(',').map(Number); - - const row = document.createElement('div'); + let row = document.createElement('div'); row.style.display = 'flex'; row.style.alignItems = 'center'; row.style.gap = '8px'; row.style.margin = '4px 0'; - const swatch = document.createElement('div'); + let swatch = document.createElement('div'); swatch.style.width = '14px'; swatch.style.height = '14px'; swatch.style.border = '1px solid rgba(255,255,255,0.5)'; - swatch.style.background = `rgb(${r},${g},${b})`; - const label = document.createElement('span'); + let label = document.createElement('span'); label.style.fontSize = '12px'; let labelText = `${meta.count.toLocaleString()}`; - try { - const tMeta = templateManager.templatesArray?.[0]?.rgbToMeta?.get(rgb); - if (tMeta && typeof tMeta.id === 'number') { - const displayName = tMeta?.name || `rgb(${r},${g},${b})`; - const starLeft = tMeta.premium ? '★ ' : ''; - labelText = `#${tMeta.id} ${starLeft}${displayName} • ${labelText}`; - } - } catch (_) {} + + // Special handling for "other" and "transparent" + if (rgb === 'other') { + swatch.style.background = '#888'; // Neutral color for "Other" + labelText = `Other • ${labelText}`; + } else if (rgb === '#deface') { + swatch.style.background = '#deface'; + labelText = `Transparent • ${labelText}`; + } else { + const [r, g, b] = rgb.split(',').map(Number); + swatch.style.background = `rgb(${r},${g},${b})`; + try { + const tMeta = templateManager.templatesArray?.[0]?.rgbToMeta?.get(rgb); + if (tMeta && typeof tMeta.id === 'number') { + const displayName = tMeta?.name || `rgb(${r},${g},${b})`; + const starLeft = tMeta.premium ? '★ ' : ''; + labelText = `#${tMeta.id} ${starLeft}${displayName} • ${labelText}`; + } + } catch (ignored) {} + } label.textContent = labelText; const toggle = document.createElement('input'); diff --git a/src/templateManager.js b/src/templateManager.js index 6e953e9..9bdfc8e 100644 --- a/src/templateManager.js +++ b/src/templateManager.js @@ -314,33 +314,46 @@ export default class TemplateManager { // honoring color enable/disable from the active template's palette if (tilePixels) { try { - const tempW = template.bitmap.width; - const tempH = template.bitmap.height; - const tempCanvas = new OffscreenCanvas(tempW, tempH); - const tempCtx = tempCanvas.getContext('2d', { willReadFrequently: true }); - tempCtx.imageSmoothingEnabled = false; - tempCtx.clearRect(0, 0, tempW, tempH); - tempCtx.drawImage(template.bitmap, 0, 0); - const tImg = tempCtx.getImageData(0, 0, tempW, tempH); - const tData = tImg.data; + + const tempWidth = template.bitmap.width; + const tempHeight = template.bitmap.height; + const tempCanvas = new OffscreenCanvas(tempWidth, tempHeight); + const tempContext = tempCanvas.getContext('2d', { willReadFrequently: true }); + tempContext.imageSmoothingEnabled = false; + tempContext.clearRect(0, 0, tempWidth, tempHeight); + tempContext.drawImage(template.bitmap, 0, 0); + const tImg = tempContext.getImageData(0, 0, tempWidth, tempHeight); + const tData = tImg.data; // Tile Data, Template Data, or Temp Data???? const offsetX = Number(template.pixelCoords[0]) * this.drawMult; const offsetY = Number(template.pixelCoords[1]) * this.drawMult; - for (let y = 0; y < tempH; y++) { - for (let x = 0; x < tempW; x++) { + // Loops over all pixels in the template + // Assigns each pixel a color (if center pixel) + for (let y = 0; y < tempHeight; y++) { + for (let x = 0; x < tempWidth; x++) { + // Purpose: Count which pixels are painted correctly??? + // Only evaluate the center pixel of each shread block + // Skip if not the center pixel of the shread block if ((x % this.drawMult) !== 1 || (y % this.drawMult) !== 1) { continue; } + const gx = x + offsetX; const gy = y + offsetY; + + // IF the pixel is out of bounds of the template, OR if the pixel is outside of the tile, then skip the pixel if (gx < 0 || gy < 0 || gx >= drawSize || gy >= drawSize) { continue; } - const tIdx = (y * tempW + x) * 4; - const tr = tData[tIdx]; - const tg = tData[tIdx + 1]; - const tb = tData[tIdx + 2]; - const ta = tData[tIdx + 3]; + + const templatePixelCenter = (y * tempWidth + x) * 4; // Shread block center pixel + const templatePixelCenterRed = tData[templatePixelCenter]; // Shread block's center pixel's RED value + const templatePixelCenterGreen = tData[templatePixelCenter + 1]; // Shread block's center pixel's GREEN value + const templatePixelCenterBlue = tData[templatePixelCenter + 2]; // Shread block's center pixel's BLUE value + const templatePixelCenterAlpha = tData[templatePixelCenter + 3]; // Shread block's center pixel's ALPHA value + + // Possibly needs to be removed // Handle template transparent pixel (alpha < 64): wrong if board has any site palette color here - if (ta < 64) { + // If the alpha of the center pixel is less than 64... + if (templatePixelCenterAlpha < 64) { try { const activeTemplate = this.templatesArray?.[0]; const tileIdx = (gy * drawSize + gx) * 4; @@ -348,85 +361,127 @@ export default class TemplateManager { const pg = tilePixels[tileIdx + 1]; const pb = tilePixels[tileIdx + 2]; const pa = tilePixels[tileIdx + 3]; - const key = `${pr},${pg},${pb}`; + + const key = activeTemplate.allowedColorsSet.has(`${pr},${pg},${pb}`) ? `${pr},${pg},${pb}` : 'other'; + const isSiteColor = activeTemplate?.allowedColorsSet ? activeTemplate.allowedColorsSet.has(key) : false; + + // IF the alpha of the center pixel that is placed on the canvas is greater than or equal to 64, AND the pixel is a Wplace palette color, then it is incorrect. if (pa >= 64 && isSiteColor) { wrongCount++; } - } catch (_) {} - continue; + } catch (ignored) {} + + continue; // Continue to the next pixel } + // Treat #deface as Transparent palette color (required and paintable) - // Ignore non-palette colors (match against allowed set when available) - try { - const activeTemplate = this.templatesArray?.[0]; - if (activeTemplate?.allowedColorsSet && !activeTemplate.allowedColorsSet.has(`${tr},${tg},${tb}`)) { - continue; - } - } catch (_) {} + // Ignore non-palette colors (match against allowed set when available) for counting required template pixels + // try { + + // const activeTemplate = this.templatesArray?.[0]; // Get the first template + + // // IF the stored palette data exists, AND the pixel is not in the allowed palette + // if (activeTemplate?.allowedColorsSet && !activeTemplate.allowedColorsSet.has(`${templatePixelCenterRed},${templatePixelCenterGreen},${templatePixelCenterBlue}`)) { + + // continue; // Skip this pixel if it is not in the allowed palette + // } + // } catch (ignored) {} requiredCount++; // Strict center-pixel matching. Treat transparent tile pixels as unpainted (not wrong) - const tileIdx = (gy * drawSize + gx) * 4; - const pr = tilePixels[tileIdx]; - const pg = tilePixels[tileIdx + 1]; - const pb = tilePixels[tileIdx + 2]; - const pa = tilePixels[tileIdx + 3]; + const realPixelCenter = (gy * drawSize + gx) * 4; + const realPixelRed = tilePixels[realPixelCenter]; + const realPixelCenterGreen = tilePixels[realPixelCenter + 1]; + const realPixelCenterBlue = tilePixels[realPixelCenter + 2]; + const realPixelCenterAlpha = tilePixels[realPixelCenter + 3]; - if (pa < 64) { + // IF the alpha of the pixel is less than 64... + if (realPixelCenterAlpha < 64) { // Unpainted -> neither painted nor wrong - } else if (pr === tr && pg === tg && pb === tb) { - paintedCount++; + + // ELSE IF the pixel matches the template center pixel color + } else if (realPixelRed === templatePixelCenterRed && realPixelCenterGreen === templatePixelCenterGreen && realPixelCenterBlue === templatePixelCenterBlue) { + paintedCount++; // ...the pixel is painted correctly } else { - wrongCount++; + wrongCount++; // ...the pixel is NOT painted correctly } } } - } catch (e) { - console.warn('Failed to compute per-tile painted/wrong stats:', e); + } catch (exception) { + console.warn('Failed to compute per-tile painted/wrong stats:', exception); } } // Draw the template overlay for visual guidance, honoring color filter try { - const activeTemplate = this.templatesArray?.[0]; - const palette = activeTemplate?.colorPalette || {}; - const hasDisabled = Object.values(palette).some(v => v?.enabled === false); + + const activeTemplate = this.templatesArray?.[0]; // Get the first template + const palette = activeTemplate?.colorPalette || {}; // Obtain the color palette of the template + const hasDisabled = Object.values(palette).some(v => v?.enabled === false); // Check if any color is disabled + + // If none of the template colors are disabled, then draw the image normally if (!hasDisabled) { context.drawImage(template.bitmap, Number(template.pixelCoords[0]) * this.drawMult, Number(template.pixelCoords[1]) * this.drawMult); } else { + // ELSE we need to apply the color filter + + console.log('Applying color filter...'); + const tempW = template.bitmap.width; const tempH = template.bitmap.height; + const filterCanvas = new OffscreenCanvas(tempW, tempH); const filterCtx = filterCanvas.getContext('2d', { willReadFrequently: true }); - filterCtx.imageSmoothingEnabled = false; + filterCtx.imageSmoothingEnabled = false; // Nearest neighbor filterCtx.clearRect(0, 0, tempW, tempH); filterCtx.drawImage(template.bitmap, 0, 0); + const img = filterCtx.getImageData(0, 0, tempW, tempH); const data = img.data; + + // For every pixel... for (let y = 0; y < tempH; y++) { for (let x = 0; x < tempW; x++) { + + // If this pixel is NOT the center pixel, then skip the pixel if ((x % this.drawMult) !== 1 || (y % this.drawMult) !== 1) { continue; } + const idx = (y * tempW + x) * 4; const r = data[idx]; const g = data[idx + 1]; const b = data[idx + 2]; const a = data[idx + 3]; + if (a < 1) { continue; } - const key = `${r},${g},${b}`; + + let key = activeTemplate.allowedColorsSet.has(`${r},${g},${b}`) ? `${r},${g},${b}` : 'other'; + // Hide if color is not in allowed palette or explicitly disabled - const inSitePalette = activeTemplate?.allowedColorsSet ? activeTemplate.allowedColorsSet.has(key) : true; - const enabled = palette?.[key]?.enabled !== false; - if (!inSitePalette || !enabled) { + const inWplacePalette = activeTemplate?.allowedColorsSet ? activeTemplate.allowedColorsSet.has(key) : true; + + // if (inWplacePalette) { + // key = 'other'; // Map all non-palette colors to "other" + // console.log('Added color to other'); + // } + + const isPaletteColorEnabled = palette?.[key]?.enabled !== false; + if (!inWplacePalette || !isPaletteColorEnabled) { data[idx + 3] = 0; // hide disabled color center pixel } } } + + // Draws the template with somes colors disabled filterCtx.putImageData(img, 0, 0); context.drawImage(filterCanvas, Number(template.pixelCoords[0]) * this.drawMult, Number(template.pixelCoords[1]) * this.drawMult); } - } catch (_) { + } catch (exception) { + + // If filtering fails, we can log the error or handle it accordingly + console.warn('Failed to apply color filter:', exception); + // Fallback to drawing raw bitmap if filtering fails context.drawImage(template.bitmap, Number(template.pixelCoords[0]) * this.drawMult, Number(template.pixelCoords[1]) * this.drawMult); } @@ -457,6 +512,7 @@ export default class TemplateManager { sum + (t.requiredPixelCount || t.pixelCount || 0), 0); const totalRequired = totalRequiredTemplates > 0 ? totalRequiredTemplates : aggRequiredTiles; + // Turns numbers into formatted number strings. E.g., 1234 -> 1,234 OR 1.234 based on location of user const paintedStr = new Intl.NumberFormat().format(aggPainted); const requiredStr = new Intl.NumberFormat().format(totalRequired); const wrongStr = new Intl.NumberFormat().format(totalRequired - aggPainted); // Used to be aggWrong, but that is bugged @@ -549,7 +605,7 @@ export default class TemplateManager { if (a < 64) { continue; } if (r === 222 && g === 250 && b === 206) { continue; } requiredPixelCount++; - const key = `${r},${g},${b}`; + const key = activeTemplate.allowedColorsSet.has(`${r},${g},${b}`) ? `${r},${g},${b}` : 'other'; paletteMap.set(key, (paletteMap.get(key) || 0) + 1); } } From 99bb326a6ed116c104be285d94efe68c9e9726a6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 20 Aug 2025 06:15:38 +0000 Subject: [PATCH 4/4] v0.85.0; Updated Color Filter to Include Invalid (Other) Pixels (#266) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update to 0.80.0 (#108) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * counts and colors for 81 * updated color palette and counts for transparent pixels * Implement #44 Ability to auto paste coordinates in their proper field (#45) * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * v0.82.0; Merge branch 'code' into main * Git is such a pain * v0.81.0; Git is such a pain * Stupid automation AAAAAA * v0.80.0; Stupid automation AAAAAA * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: Filip Struzik Co-authored-by: SwingTheVine Co-authored-by: github-actions[bot] * Fixed checkerboard patterns on black pixels (#143) Close #122 * Added telemetry * Debugging CSS * Telemetry and color filter are stable * Forgot to remove this before commiting * Begin update for v0.83.0 (#188) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * Added a Shield for Pages * Added markdown support to the wiki * fixed broken links firefox related links were broken * fixed latest pre-releases links * Cleanup of bugs related to one-click install link * feat: Add new official Blue Marble website and update documentation Add newly created official Blue Marble website and update project documentation - Add official website badge to README.md - Include website link in Quick Guide section - Add website creator credits in CREDITS.md - Update CONTRIBUTING.md with website reference - Add new official website URL: https://bluemarble.camilledaguin.fr/ This commit introduces the newly created official Blue Marble website and updates all documentation to reference it. The website provides a dedicated platform for Blue Marble users and information. * Markdown links are used in CREDITS.md * Website Shield Moved Next to Social Shields * Website should not take priority over download information... ...also, removed the word official due to the fact that the website being linked on the GitHub indicates that the website is official. Just like how the Discord server being linked on GitHub indicates that the Discord server is official. * Since the website does not contain security information... ...it should not be in SECURITY.md * Removed redundant @website meta attribute... ...since @website and @homepageURL do the exact same thing * Added @WondaMegapon to the CREDITS.md file * Fix some issues with the README (#124) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Update README.md Fix some issues with the readme * Added version Shield back --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update documentation branch (#164) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update Wplace status badge (#140) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Update Wplace status badge --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Fix spelling mistakes (#151) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Fix spelling mistakes --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Remove (#161) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Remove --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update to match only the frontend (#162) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Updae to match only the frontend --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * docs: correction of typographical errors (#178) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * docs: correction of typographical errors recieved -> received --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> * Potential fix for code scanning alert no. 30: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Updated README Shields * Update code branch (#190) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * Fix minor comment typo Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Made Blue Marble work on wplace.live// * Fixed duplication of Quick Guide * Update to 0.84.0 (#262) * Made Blue Marble work on wplace.live// (#197) * Update to 0.80.0 (#108) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * counts and colors for 81 * updated color palette and counts for transparent pixels * Implement #44 Ability to auto paste coordinates in their proper field (#45) * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * v0.82.0; Merge branch 'code' into main * Git is such a pain * v0.81.0; Git is such a pain * Stupid automation AAAAAA * v0.80.0; Stupid automation AAAAAA * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: Filip Struzik Co-authored-by: SwingTheVine Co-authored-by: github-actions[bot] * Fixed checkerboard patterns on black pixels (#143) Close #122 * Added telemetry * Debugging CSS * Telemetry and color filter are stable * Forgot to remove this before commiting * Begin update for v0.83.0 (#188) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * Added a Shield for Pages * Added markdown support to the wiki * fixed broken links firefox related links were broken * fixed latest pre-releases links * Cleanup of bugs related to one-click install link * feat: Add new official Blue Marble website and update documentation Add newly created official Blue Marble website and update project documentation - Add official website badge to README.md - Include website link in Quick Guide section - Add website creator credits in CREDITS.md - Update CONTRIBUTING.md with website reference - Add new official website URL: https://bluemarble.camilledaguin.fr/ This commit introduces the newly created official Blue Marble website and updates all documentation to reference it. The website provides a dedicated platform for Blue Marble users and information. * Markdown links are used in CREDITS.md * Website Shield Moved Next to Social Shields * Website should not take priority over download information... ...also, removed the word official due to the fact that the website being linked on the GitHub indicates that the website is official. Just like how the Discord server being linked on GitHub indicates that the Discord server is official. * Since the website does not contain security information... ...it should not be in SECURITY.md * Removed redundant @website meta attribute... ...since @website and @homepageURL do the exact same thing * Added @WondaMegapon to the CREDITS.md file * Fix some issues with the README (#124) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Update README.md Fix some issues with the readme * Added version Shield back --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update documentation branch (#164) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update Wplace status badge (#140) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Update Wplace status badge --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Fix spelling mistakes (#151) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Fix spelling mistakes --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Remove (#161) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Remove --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update to match only the frontend (#162) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Updae to match only the frontend --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * docs: correction of typographical errors (#178) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * docs: correction of typographical errors recieved -> received --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> * Potential fix for code scanning alert no. 30: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Updated README Shields * Update code branch (#190) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * Fix minor comment typo Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Made Blue Marble work on wplace.live// * Fixed duplication of Quick Guide --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: vishnuvardhan33 <93069382+vishnuvardhan33@users.noreply.github.com> Co-authored-by: Filip Str Co-authored-by: Filip Struzik Co-authored-by: East Monster 🍉 <89259667+EastMonster@users.noreply.github.com> Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * v0.84.0; Made Blue Marble work on wplace.live// (#197) * Update to 0.80.0 (#108) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * counts and colors for 81 * updated color palette and counts for transparent pixels * Implement #44 Ability to auto paste coordinates in their proper field (#45) * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * v0.82.0; Merge branch 'code' into main * Git is such a pain * v0.81.0; Git is such a pain * Stupid automation AAAAAA * v0.80.0; Stupid automation AAAAAA * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: Filip Struzik Co-authored-by: SwingTheVine Co-authored-by: github-actions[bot] * Fixed checkerboard patterns on black pixels (#143) Close #122 * Added telemetry * Debugging CSS * Telemetry and color filter are stable * Forgot to remove this before commiting * Begin update for v0.83.0 (#188) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * Added a Shield for Pages * Added markdown support to the wiki * fixed broken links firefox related links were broken * fixed latest pre-releases links * Cleanup of bugs related to one-click install link * feat: Add new official Blue Marble website and update documentation Add newly created official Blue Marble website and update project documentation - Add official website badge to README.md - Include website link in Quick Guide section - Add website creator credits in CREDITS.md - Update CONTRIBUTING.md with website reference - Add new official website URL: https://bluemarble.camilledaguin.fr/ This commit introduces the newly created official Blue Marble website and updates all documentation to reference it. The website provides a dedicated platform for Blue Marble users and information. * Markdown links are used in CREDITS.md * Website Shield Moved Next to Social Shields * Website should not take priority over download information... ...also, removed the word official due to the fact that the website being linked on the GitHub indicates that the website is official. Just like how the Discord server being linked on GitHub indicates that the Discord server is official. * Since the website does not contain security information... ...it should not be in SECURITY.md * Removed redundant @website meta attribute... ...since @website and @homepageURL do the exact same thing * Added @WondaMegapon to the CREDITS.md file * Fix some issues with the README (#124) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Update README.md Fix some issues with the readme * Added version Shield back --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update documentation branch (#164) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update Wplace status badge (#140) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Update Wplace status badge --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Fix spelling mistakes (#151) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Fix spelling mistakes --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Remove (#161) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Remove --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update to match only the frontend (#162) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Updae to match only the frontend --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * docs: correction of typographical errors (#178) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * docs: correction of typographical errors recieved -> received --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> * Potential fix for code scanning alert no. 30: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Updated README Shields * Update code branch (#190) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * Fix minor comment typo Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Made Blue Marble work on wplace.live// * Fixed duplication of Quick Guide --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: vishnuvardhan33 <93069382+vishnuvardhan33@users.noreply.github.com> Co-authored-by: Filip Str Co-authored-by: Filip Struzik Co-authored-by: East Monster 🍉 <89259667+EastMonster@users.noreply.github.com> Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: vishnuvardhan33 <93069382+vishnuvardhan33@users.noreply.github.com> Co-authored-by: Filip Str Co-authored-by: Filip Struzik Co-authored-by: East Monster 🍉 <89259667+EastMonster@users.noreply.github.com> Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Added invalid palette colors as an other option in filtering * Made all invalid palette colors appear under Other color * Updated user documentation to be clearer (#265) * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * Added a Shield for Pages * Added markdown support to the wiki * fixed broken links firefox related links were broken * fixed latest pre-releases links * Cleanup of bugs related to one-click install link * feat: Add new official Blue Marble website and update documentation Add newly created official Blue Marble website and update project documentation - Add official website badge to README.md - Include website link in Quick Guide section - Add website creator credits in CREDITS.md - Update CONTRIBUTING.md with website reference - Add new official website URL: https://bluemarble.camilledaguin.fr/ This commit introduces the newly created official Blue Marble website and updates all documentation to reference it. The website provides a dedicated platform for Blue Marble users and information. * Markdown links are used in CREDITS.md * Website Shield Moved Next to Social Shields * Website should not take priority over download information... ...also, removed the word official due to the fact that the website being linked on the GitHub indicates that the website is official. Just like how the Discord server being linked on GitHub indicates that the Discord server is official. * Since the website does not contain security information... ...it should not be in SECURITY.md * Removed redundant @website meta attribute... ...since @website and @homepageURL do the exact same thing * Added @WondaMegapon to the CREDITS.md file * Fix some issues with the README (#124) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Update README.md Fix some issues with the readme * Added version Shield back --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update documentation branch (#164) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update Wplace status badge (#140) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Update Wplace status badge --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Fix spelling mistakes (#151) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Fix spelling mistakes --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Remove (#161) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Remove --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update to match only the frontend (#162) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Updae to match only the frontend --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * docs: correction of typographical errors (#178) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * docs: correction of typographical errors recieved -> received --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update to 0.84.0 (#263) * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Begin update for v0.83.0 (#188) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * Added a Shield for Pages * Added markdown support to the wiki * fixed broken links firefox related links were broken * fixed latest pre-releases links * Cleanup of bugs related to one-click install link * feat: Add new official Blue Marble website and update documentation Add newly created official Blue Marble website and update project documentation - Add official website badge to README.md - Include website link in Quick Guide section - Add website creator credits in CREDITS.md - Update CONTRIBUTING.md with website reference - Add new official website URL: https://bluemarble.camilledaguin.fr/ This commit introduces the newly created official Blue Marble website and updates all documentation to reference it. The website provides a dedicated platform for Blue Marble users and information. * Markdown links are used in CREDITS.md * Website Shield Moved Next to Social Shields * Website should not take priority over download information... ...also, removed the word official due to the fact that the website being linked on the GitHub indicates that the website is official. Just like how the Discord server being linked on GitHub indicates that the Discord server is official. * Since the website does not contain security information... ...it should not be in SECURITY.md * Removed redundant @website meta attribute... ...since @website and @homepageURL do the exact same thing * Added @WondaMegapon to the CREDITS.md file * Fix some issues with the README (#124) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Update README.md Fix some issues with the readme * Added version Shield back --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update documentation branch (#164) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update Wplace status badge (#140) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Update Wplace status badge --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Fix spelling mistakes (#151) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Fix spelling mistakes --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Remove (#161) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Remove --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update to match only the frontend (#162) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Updae to match only the frontend --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * docs: correction of typographical errors (#178) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * docs: correction of typographical errors recieved -> received --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> * Potential fix for code scanning alert no. 30: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Updated README Shields * Update code branch (#190) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * Fix minor comment typo Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Color filtering & telemetry (#191) * Update to 0.80.0 (#108) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * counts and colors for 81 * updated color palette and counts for transparent pixels * Implement #44 Ability to auto paste coordinates in their proper field (#45) * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * v0.82.0; Merge branch 'code' into main * Git is such a pain * v0.81.0; Git is such a pain * Stupid automation AAAAAA * v0.80.0; Stupid automation AAAAAA * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: Filip Struzik Co-authored-by: SwingTheVine Co-authored-by: github-actions[bot] * Fixed checkerboard patterns on black pixels (#143) Close #122 * Added telemetry * Debugging CSS * Telemetry and color filter are stable * Forgot to remove this before commiting * Begin update for v0.83.0 (#188) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * Added a Shield for Pages * Added markdown support to the wiki * fixed broken links firefox related links were broken * fixed latest pre-releases links * Cleanup of bugs related to one-click install link * feat: Add new official Blue Marble website and update documentation Add newly created official Blue Marble website and update project documentation - Add official website badge to README.md - Include website link in Quick Guide section - Add website creator credits in CREDITS.md - Update CONTRIBUTING.md with website reference - Add new official website URL: https://bluemarble.camilledaguin.fr/ This commit introduces the newly created official Blue Marble website and updates all documentation to reference it. The website provides a dedicated platform for Blue Marble users and information. * Markdown links are used in CREDITS.md * Website Shield Moved Next to Social Shields * Website should not take priority over download information... ...also, removed the word official due to the fact that the website being linked on the GitHub indicates that the website is official. Just like how the Discord server being linked on GitHub indicates that the Discord server is official. * Since the website does not contain security information... ...it should not be in SECURITY.md * Removed redundant @website meta attribute... ...since @website and @homepageURL do the exact same thing * Added @WondaMegapon to the CREDITS.md file * Fix some issues with the README (#124) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Update README.md Fix some issues with the readme * Added version Shield back --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update documentation branch (#164) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update Wplace status badge (#140) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Update Wplace status badge --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Fix spelling mistakes (#151) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Fix spelling mistakes --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Remove (#161) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Remove --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update to match only the frontend (#162) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Updae to match only the frontend --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * docs: correction of typographical errors (#178) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * docs: correction of typographical errors recieved -> received --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> * Potential fix for code scanning alert no. 30: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Updated README Shields * Update code branch (#190) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * Fix minor comment typo Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: vishnuvardhan33 <93069382+vishnuvardhan33@users.noreply.github.com> Co-authored-by: Filip Str Co-authored-by: Filip Struzik Co-authored-by: East Monster 🍉 <89259667+EastMonster@users.noreply.github.com> Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * v0.83.0; Color filtering & telemetry (#191) * Update to 0.80.0 (#108) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * counts and colors for 81 * updated color palette and counts for transparent pixels * Implement #44 Ability to auto paste coordinates in their proper field (#45) * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * v0.82.0; Merge branch 'code' into main * Git is such a pain * v0.81.0; Git is such a pain * Stupid automation AAAAAA * v0.80.0; Stupid automation AAAAAA * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: Filip Struzik Co-authored-by: SwingTheVine Co-authored-by: github-actions[bot] * Fixed checkerboard patterns on black pixels (#143) Close #122 * Added telemetry * Debugging CSS * Telemetry and color filter are stable * Forgot to remove this before commiting * Begin update for v0.83.0 (#188) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * Added a Shield for Pages * Added markdown support to the wiki * fixed broken links firefox related links were broken * fixed latest pre-releases links * Cleanup of bugs related to one-click install link * feat: Add new official Blue Marble website and update documentation Add newly created official Blue Marble website and update project documentation - Add official website badge to README.md - Include website link in Quick Guide section - Add website creator credits in CREDITS.md - Update CONTRIBUTING.md with website reference - Add new official website URL: https://bluemarble.camilledaguin.fr/ This commit introduces the newly created official Blue Marble website and updates all documentation to reference it. The website provides a dedicated platform for Blue Marble users and information. * Markdown links are used in CREDITS.md * Website Shield Moved Next to Social Shields * Website should not take priority over download information... ...also, removed the word official due to the fact that the website being linked on the GitHub indicates that the website is official. Just like how the Discord server being linked on GitHub indicates that the Discord server is official. * Since the website does not contain security information... ...it should not be in SECURITY.md * Removed redundant @website meta attribute... ...since @website and @homepageURL do the exact same thing * Added @WondaMegapon to the CREDITS.md file * Fix some issues with the README (#124) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Update README.md Fix some issues with the readme * Added version Shield back --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update documentation branch (#164) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update Wplace status badge (#140) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Update Wplace status badge --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Fix spelling mistakes (#151) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Fix spelling mistakes --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Remove (#161) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Remove --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update to match only the frontend (#162) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Updae to match only the frontend --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * docs: correction of typographical errors (#178) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * docs: correction of typographical errors recieved -> received --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> * Potential fix for code scanning alert no. 30: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Updated README Shields * Update code branch (#190) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * Fix minor comment typo Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: vishnuvardhan33 <93069382+vishnuvardhan33@users.noreply.github.com> Co-authored-by: Filip Str Co-authored-by: Filip Struzik Co-authored-by: East Monster 🍉 <89259667+EastMonster@users.noreply.github.com> Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Made Blue Marble work on wplace.live// * Fixed duplication of Quick Guide * Made Blue Marble work on wplace.live// (#197) * Update to 0.80.0 (#108) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] * counts and colors for 81 * updated color palette and counts for transparent pixels * Implement #44 Ability to auto paste coordinates in their proper field (#45) * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * added automatic parsing of coordinates if pasted in first coordinate field * v0.82.0; Merge branch 'code' into main * Git is such a pain * v0.81.0; Git is such a pain * Stupid automation AAAAAA * v0.80.0; Stupid automation AAAAAA * v0.81.0; Merge branch 'code' into main --------- Co-authored-by: Filip Struzik Co-authored-by: SwingTheVine Co-authored-by: github-actions[bot] * Fixed checkerboard patterns on black pixels (#143) Close #122 * Added telemetry * Debugging CSS * Telemetry and color filter are stable * Forgot to remove this before commiting * Begin update for v0.83.0 (#188) * Create CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Added some install instructions * Finished CONTRIBUTING.md * Fixed CONTRIBUTING table * Added SECURITY.md * Added Computer Edge instructions * Added Computer FireFox instructions * Clarified where the userscript can be downloaded from * Update to Wiki Docs * Simplify installation instructions with one-click install links This is because Tampermonkey automagically detect whether raw js files are being opened and redirect user to installation page. We might need a custom build action to update the links though. - Replace manual download and drag process with direct install links - Remove unnecessary screenshots and dashboard steps * Fix stuff * Fixed again. Sorry I was looking at the wrong branch T-T * . * Added color palette to src/utils.js * Updated Shields to match HEAD of main * Added build.yml RegEx for v0.0.0 version updating in README.md * Branch sync * Update CONTRIBUTING.md * Added the quick guide * Added wplace status shield * Moved wiki to its own branch * Added Shields from #61 and #58 * Fixed PR template * Squashed commit of the following: commit aca7df4189e2a0846688f95c4f1dfeb203bde659 Author: SwingTheVine Date: Sat Aug 9 20:52:22 2025 -0400 Added color palette to src/utils.js commit 13ff8fbe33c3bac3727db85a742a7af32265ccc3 Merge: 70eb0a2 f2d34d8 Author: SwingTheVine Date: Sat Aug 9 20:49:26 2025 -0400 Merge branch 'main' of https://github.com/SwingTheVine/Wplace-BlueMarble commit 70eb0a26faa0dc419b994ad8c9a7a8e8f1a10596 Author: SwingTheVine Date: Fri Aug 8 19:38:49 2025 -0400 Update to Wiki Docs * Fixed bug in JSDoc generation in build.js * v0.79.0; Merge pull request #98 from SwingTheVine/documentation Updated documentation * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * Added missing dependency for minami * Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * v0.80.0; Added brief description about what Blue Marble does * Added a Shield for Pages * Added markdown support to the wiki * fixed broken links firefox related links were broken * fixed latest pre-releases links * Cleanup of bugs related to one-click install link * feat: Add new official Blue Marble website and update documentation Add newly created official Blue Marble website and update project documentation - Add official website badge to README.md - Include website link in Quick Guide section - Add website creator credits in CREDITS.md - Update CONTRIBUTING.md with website reference - Add new official website URL: https://bluemarble.camilledaguin.fr/ This commit introduces the newly created official Blue Marble website and updates all documentation to reference it. The website provides a dedicated platform for Blue Marble users and information. * Markdown links are used in CREDITS.md * Website Shield Moved Next to Social Shields * Website should not take priority over download information... ...also, removed the word official due to the fact that the website being linked on the GitHub indicates that the website is official. Just like how the Discord server being linked on GitHub indicates that the Discord server is official. * Since the website does not contain security information... ...it should not be in SECURITY.md * Removed redundant @website meta attribute... ...since @website and @homepageURL do the exact same thing * Added @WondaMegapon to the CREDITS.md file * Fix some issues with the README (#124) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Update README.md Fix some issues with the readme * Added version Shield back --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update documentation branch (#164) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 --------- Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Update Wplace status badge (#140) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main * Emergency patch... ...please stop informing me that the install link is broken 😭 * v0.82.0; Emergency patch... ...please stop informing me that the install link is broken 😭 * Update Wplace status badge --------- Co-authored-by: SwingTheVine Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: github-actions[bot] * Fix spelling mistakes (#151) * Added ignore files to stop popular code formatters from messing with the code style * Change transform easing to 0s * Added a translucent gray checkerboard render for #deface * Added workflow to check what branch PR came from * v0.81.0; Merge branch 'code' into main *… * Updated Shields --------- Co-authored-by: thatfrozenfrog <101154752+thatfrozenfrog@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: vishnuvardhan33 <93069382+vishnuvardhan33@users.noreply.github.com> Co-authored-by: Filip Str Co-authored-by: Filip Struzik Co-authored-by: East Monster 🍉 <89259667+EastMonster@users.noreply.github.com> Co-authored-by: Cyberflixt <54700008+Cyberflixt@users.noreply.github.com> Co-authored-by: Iris Co-authored-by: windbus <103200560+windigerbus@users.noreply.github.com> Co-authored-by: AloeSapling Co-authored-by: Endrik Tombak Co-authored-by: KrunchyKrisp Co-authored-by: SobakinTech Co-authored-by: Agatem Co-authored-by: Nemupy <82650472+Nemupy@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- dist/BlueMarble.user.js | 8 ++++---- docs/README.md | 4 ++-- package.json | 2 +- src/BlueMarble.meta.js | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dist/BlueMarble.user.js b/dist/BlueMarble.user.js index 667024a..60837fe 100644 --- a/dist/BlueMarble.user.js +++ b/dist/BlueMarble.user.js @@ -1,13 +1,13 @@ // ==UserScript== // @name Blue Marble // @namespace https://github.com/SwingTheVine/ -// @version 0.84.14 +// @version 0.85.0 // @description A userscript to automate and/or enhance the user experience on Wplace.live. Make sure to comply with the site's Terms of Service, and rules! This script is not affiliated with Wplace.live in any way, use at your own risk. This script is not affiliated with TamperMonkey. The author of this userscript is not responsible for any damages, issues, loss of data, or punishment that may occur as a result of using this script. This script is provided "as is" under the MPL-2.0 license. The "Blue Marble" icon is licensed under CC0 1.0 Universal (CC0 1.0) Public Domain Dedication. The image is owned by NASA. // @author SwingTheVine // @license MPL-2.0 // @supportURL https://discord.gg/tpeBPy46hf // @homepageURL https://bluemarble.camilledaguin.fr/ -// @icon https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/8d02ac9cbe8f6861248152f2b0d632a0b4a830ee/dist/assets/Favicon.png +// @icon https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/051271c433a42db968a865b00f81bb979ee7d13f/dist/assets/Favicon.png // @updateURL https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/dist/BlueMarble.user.js // @downloadURL https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/dist/BlueMarble.user.js // @match https://wplace.live/* @@ -17,10 +17,10 @@ // @grant GM_getValue // @grant GM_xmlhttpRequest // @connect telemetry.thebluecorner.net -// @resource CSS-BM-File https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/8d02ac9cbe8f6861248152f2b0d632a0b4a830ee/dist/BlueMarble.user.css +// @resource CSS-BM-File https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/051271c433a42db968a865b00f81bb979ee7d13f/dist/BlueMarble.user.css // ==/UserScript== // Wplace --> https://wplace.live // License --> https://www.mozilla.org/en-US/MPL/2.0/ -(()=>{var e,t,n=e=>{throw TypeError(e)},i=(e,t,i)=>t.has(e)?n("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),o=(e,t,i)=>(((e,t)=>{t.has(e)||n("Cannot access private method")})(e,t),i),s=class{constructor(t,n){i(this,e),this.name=t,this.version=n,this.t=null,this.i="bm-o",this.o=null,this.l=null,this.m=[]}u(e){this.t=e}h(){return this.m.length>0&&(this.l=this.m.pop()),this}p(e){e?.appendChild(this.o),this.o=null,this.l=null,this.m=[]}v(n={},i=()=>{}){return i(this,o(this,e,t).call(this,"div",{},n)),this}$(n={},i=()=>{}){return i(this,o(this,e,t).call(this,"p",{},n)),this}S(n={},i=()=>{}){return i(this,o(this,e,t).call(this,"small",{},n)),this}M(n={},i=()=>{}){return i(this,o(this,e,t).call(this,"img",{},n)),this}O(n,i={},s=()=>{}){return s(this,o(this,e,t).call(this,"h"+n,{},i)),this}T(n={},i=()=>{}){return i(this,o(this,e,t).call(this,"hr",{},n)),this}D(n={},i=()=>{}){return i(this,o(this,e,t).call(this,"br",{},n)),this}k(n={},i=()=>{}){const s=o(this,e,t).call(this,"label",{textContent:n.textContent??""});delete n.textContent;const r=o(this,e,t).call(this,"input",{type:"checkbox"},n);return s.insertBefore(r,s.firstChild),this.h(),i(this,s,r),this}C(n={},i=()=>{}){return i(this,o(this,e,t).call(this,"button",{},n)),this}N(n={},i=()=>{}){const s=n.title??n.textContent??"Help: No info";delete n.textContent,n.title=`Help: ${s}`;const r={textContent:"?",className:"bm-D",onclick:()=>{this.B(this.i,s)}};return i(this,o(this,e,t).call(this,"button",r,n)),this}I(n={},i=()=>{}){return i(this,o(this,e,t).call(this,"input",{},n)),this}L(n={},i=()=>{}){const s=n.textContent??"";delete n.textContent;const r=o(this,e,t).call(this,"div"),a=o(this,e,t).call(this,"input",{type:"file",style:"display: none !important; visibility: hidden !important; position: absolute !important; left: -9999px !important; width: 0 !important; height: 0 !important; opacity: 0 !important;"},n);this.h();const l=o(this,e,t).call(this,"button",{textContent:s});return this.h(),this.h(),a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),l.addEventListener("click",()=>{a.click()}),a.addEventListener("change",()=>{l.style.maxWidth=`${l.offsetWidth}px`,a.files.length>0?l.textContent=a.files[0].name:l.textContent=s}),i(this,r,a,l),this}G(n={},i=()=>{}){return i(this,o(this,e,t).call(this,"textarea",{},n)),this}B(e,t,n=!1){const i=document.getElementById(e.replace(/^#/,""));i&&(i instanceof HTMLInputElement?i.value=t:n?i.textContent=t:i.innerHTML=t)}P(e,t){let n,i=!1,o=0,s=null,r=0,a=0,l=0,c=0;if(e=document.querySelector("#"==e?.[0]?e:"#"+e),t=document.querySelector("#"==t?.[0]?t:"#"+t),!e||!t)return void this.W(`Can not drag! ${e?"":"moveMe"} ${e||t?"":"and "}${t?"":"iMoveThings "}was not found!`);const m=()=>{if(i){const t=Math.abs(r-l),n=Math.abs(a-c);(t>.5||n>.5)&&(r=l,a=c,e.style.transform=`translate(${r}px, ${a}px)`,e.style.left="0px",e.style.top="0px",e.style.right=""),s=requestAnimationFrame(m)}};let u=null;const d=(d,h)=>{i=!0,u=e.getBoundingClientRect(),n=d-u.left,o=h-u.top;const b=window.getComputedStyle(e).transform;if(b&&"none"!==b){const e=new DOMMatrix(b);r=e.m41,a=e.m42}else r=u.left,a=u.top;l=r,c=a,document.body.style.userSelect="none",t.classList.add("dragging"),s&&cancelAnimationFrame(s),m()},h=()=>{i=!1,s&&(cancelAnimationFrame(s),s=null),document.body.style.userSelect="",t.classList.remove("dragging")};t.addEventListener("mousedown",function(e){e.preventDefault(),d(e.clientX,e.clientY)}),t.addEventListener("touchstart",function(e){const t=e?.touches?.[0];t&&(d(t.clientX,t.clientY),e.preventDefault())},{passive:!1}),document.addEventListener("mousemove",function(e){i&&u&&(l=e.clientX-n,c=e.clientY-o)},{passive:!0}),document.addEventListener("touchmove",function(e){if(i&&u){const t=e?.touches?.[0];if(!t)return;l=t.clientX-n,c=t.clientY-o,e.preventDefault()}},{passive:!1}),document.addEventListener("mouseup",h),document.addEventListener("touchend",h),document.addEventListener("touchcancel",h)}F(e){(0,console.info)(`${this.name}: ${e}`),this.B(this.i,"Status: "+e,!0)}W(e){(0,console.error)(`${this.name}: ${e}`),this.B(this.i,"Error: "+e,!0)}};function r(...e){(0,console.error)(...e)}function a(e,t){if(0===e)return t[0];let n="";const i=t.length;for(;e>0;)n=t[e%i]+n,e=Math.floor(e/i);return n}function l(e){let t="";for(let n=0;n"transparent"!==(e?.name||"").toLowerCase()&&Array.isArray(e?.rgb)).map(e=>`${e.rgb[0]},${e.rgb[1]},${e.rgb[2]}`));const c="222,250,206";this.H.add(c),this.K=new Map(l.filter(e=>Array.isArray(e?.rgb)).map(e=>[`${e.rgb[0]},${e.rgb[1]},${e.rgb[2]}`,{id:e.id,premium:!!e.premium,name:e.name}]));try{const e=l.find(e=>"transparent"===(e?.name||"").toLowerCase());e&&Array.isArray(e.rgb)&&this.K.set(c,{id:e.id,premium:!!e.premium,name:e.name})}catch(e){}}async Z(){console.log("Template coordinates:",this.coords);const e=await createImageBitmap(this.file),t=e.width,n=e.height,i=t*n;console.log(`Template pixel analysis - Dimensions: ${t}×${n} = ${i.toLocaleString()} pixels`),this.X=i;try{const i=new OffscreenCanvas(t,n).getContext("2d",{ee:!0});i.imageSmoothingEnabled=!1,i.clearRect(0,0,t,n),i.drawImage(e,0,0);const o=i.getImageData(0,0,t,n).data;let s=0,r=0;const a=new Map;for(let e=0;e0){for(const e in t){const n=e,i=t[e];if(console.log(n),t.hasOwnProperty(e)){const e=n.split(" "),o=Number(e?.[0]),s=e?.[1]||"0",r=i.name||`Template ${o||""}`,a=i.tiles,l={};let m=0;const u=new Map;for(const e in a)if(console.log(e),a.hasOwnProperty(e)){const t=c(a[e]),n=new Blob([t],{type:"image/png"}),i=await createImageBitmap(n);l[e]=i;try{const e=i.width,t=i.height,n=new OffscreenCanvas(e,t).getContext("2d",{ee:!0});n.imageSmoothingEnabled=!1,n.clearRect(0,0,e,t),n.drawImage(i,0,0);const o=n.getImageData(0,0,e,t).data;for(let n=0;n{d.U?.add(e.split(",").slice(0,2).join(","))})}catch(e){}try{const e=t?.[n]?.palette;if(e)for(const[t,n]of Object.entries(e))d.Y[t]?d.Y[t].enabled=!!n?.enabled:d.Y[t]={count:n?.count||0,enabled:!!n?.enabled}}catch(e){}d.V=n,this.se.push(d),console.log(this.se),console.log("^^^ This ^^^")}}try{const e=document.querySelector("#bm-9");e&&(e.style.display=""),window.postMessage({source:"blue-marble",re:"bm-b"},"*")}catch(e){}}},h=new WeakSet,b=async function(e=navigator.userAgent){return(e=e||"").includes("OPR/")||e.includes("Opera")?"Opera":e.includes("Edg/")?"Edge":e.includes("Vivaldi")?"Vivaldi":e.includes("YaBrowser")?"Yandex":e.includes("Kiwi")?"Kiwi":e.includes("Brave")?"Brave":e.includes("Firefox/")?"Firefox":e.includes("Chrome/")?"Chrome":e.includes("Safari/")?"Safari":navigator.brave&&"function"==typeof navigator.brave.isBrave&&await navigator.brave.isBrave()?"Brave":"Unknown"},p=function(e=navigator.userAgent){return/Windows NT 11/i.test(e=e||"")?"Windows 11":/Windows NT 10/i.test(e)?"Windows 10":/Windows NT 6\.3/i.test(e)?"Windows 8.1":/Windows NT 6\.2/i.test(e)?"Windows 8":/Windows NT 6\.1/i.test(e)?"Windows 7":/Windows NT 6\.0/i.test(e)?"Windows Vista":/Windows NT 5\.1|Windows XP/i.test(e)?"Windows XP":/Mac OS X 10[_\.]15/i.test(e)?"macOS Catalina":/Mac OS X 10[_\.]14/i.test(e)?"macOS Mojave":/Mac OS X 10[_\.]13/i.test(e)?"macOS High Sierra":/Mac OS X 10[_\.]12/i.test(e)?"macOS Sierra":/Mac OS X 10[_\.]11/i.test(e)?"OS X El Capitan":/Mac OS X 10[_\.]10/i.test(e)?"OS X Yosemite":/Mac OS X 10[_\.]/i.test(e)?"macOS":/Android/i.test(e)?"Android":/iPhone|iPad|iPod/i.test(e)?"iOS":/Linux/i.test(e)?"Linux":"Unknown"};var w=GM_info.script.name.toString(),y=GM_info.script.version.toString();!function(e){const t=document.createElement("script");t.setAttribute("bm-E",w),t.setAttribute("bm-B","color: cornflowerblue;"),t.textContent=`(${e})();`,document.documentElement?.appendChild(t),t.remove()}(()=>{const e=document.currentScript,t=e?.getAttribute("bm-E")||"Blue Marble",n=e?.getAttribute("bm-B")||"",i=new Map;window.addEventListener("message",e=>{const{source:o,endpoint:s,blobID:r,blobData:a,blink:l}=e.data,c=Date.now()-l;if(console.groupCollapsed(`%c${t}%c: ${i.size} Recieved IMAGE message about blob "${r}"`,n,""),console.log(`Blob fetch took %c${String(Math.floor(c/6e4)).padStart(2,"0")}:${String(Math.floor(c/1e3)%60).padStart(2,"0")}.${String(c%1e3).padStart(3,"0")}%c MM:SS.mmm`,n,""),console.log(i),console.groupEnd(),"blue-marble"==o&&r&&a&&!s){const e=i.get(r);"function"==typeof e?e(a):function(...e){(0,console.warn)(...e)}(`%c${t}%c: Attempted to retrieve a blob (%s) from queue, but the blobID was not a function! Skipping...`,n,"",r),i.delete(r)}});const o=window.fetch;window.fetch=async function(...e){const s=await o.apply(this,e),r=s.clone(),a=(e[0]instanceof Request?e[0]?.url:e[0])||"ignore",l=r.headers.get("content-type")||"";if(l.includes("application/json"))console.log(`%c${t}%c: Sending JSON message about endpoint "${a}"`,n,""),r.json().then(e=>{window.postMessage({source:"blue-marble",endpoint:a,jsonData:e},"*")}).catch(e=>{console.error(`%c${t}%c: Failed to parse JSON: `,n,"",e)});else if(l.includes("image/")&&!a.includes("openfreemap")&&!a.includes("maps")){const e=Date.now(),o=await r.blob();return console.log(`%c${t}%c: ${i.size} Sending IMAGE message about endpoint "${a}"`,n,""),new Promise(s=>{const l=crypto.randomUUID();i.set(l,e=>{s(new Response(e,{headers:r.headers,status:r.status,statusText:r.statusText})),console.log(`%c${t}%c: ${i.size} Processed blob "${l}"`,n,"")}),window.postMessage({source:"blue-marble",endpoint:a,blobID:l,blobData:o,blink:e})}).catch(o=>{const s=Date.now();console.error(`%c${t}%c: Failed to Promise blob!`,n,""),console.groupCollapsed(`%c${t}%c: Details of failed blob Promise:`,n,""),console.log(`Endpoint: ${a}\nThere are ${i.size} blobs processing...\nBlink: ${e.toLocaleString()}\nTime Since Blink: ${String(Math.floor(s/6e4)).padStart(2,"0")}:${String(Math.floor(s/1e3)%60).padStart(2,"0")}.${String(s%1e3).padStart(3,"0")} MM:SS.mmm`),console.error("Exception stack:",o),console.groupEnd()})}return s}});var v=GM_getResourceText("CSS-BM-File");GM_addStyle(v);var $=document.createElement("link");$.href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap",$.rel="preload",$.as="style",$.onload=function(){this.onload=null,this.rel="stylesheet"},document.head?.appendChild($),new class{constructor(){this.ae=null,this.le=null,this.ce="#bm-h"}me(e){return this.le=e,this.ae=new MutationObserver(e=>{for(const t of e)for(const e of t.addedNodes)e instanceof HTMLElement&&e.matches?.(this.ce)}),this}ue(){return this.ae}observe(e,t=!1,n=!1){e.observe(this.le,{childList:t,subtree:n})}};var x=new s(w,y),S=(new s(w,y),new class{constructor(e,t,n){i(this,m),this.name=e,this.version=t,this.o=n,this.de="1.0.0",this.he=null,this.be="!#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~",this.R=1e3,this.oe=3,this.pe=null,this.ge=null,this.fe="bm-C",this.we="div#map canvas.maplibregl-canvas",this.ye=null,this.ve="",this.se=[],this.ie=null,this.$e=!0,this.xe=new Map}Se(){if(document.body.contains(this.pe))return this.pe;document.getElementById(this.fe)?.remove();const e=document.querySelector(this.we),t=document.createElement("canvas");return t.id=this.fe,t.className="maplibregl-canvas",t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.height=e?.clientHeight*(window.devicePixelRatio||1)+"px",t.style.width=e?.clientWidth*(window.devicePixelRatio||1)+"px",t.height=e?.clientHeight*(window.devicePixelRatio||1),t.width=e?.clientWidth*(window.devicePixelRatio||1),t.style.zIndex="8999",t.style.pointerEvents="none",e?.parentElement?.appendChild(t),this.pe=t,window.addEventListener("move",this.Me),window.addEventListener("zoom",this.Oe),window.addEventListener("resize",this.Te),this.pe}async De(){return{whoami:this.name.replace(" ",""),scriptVersion:this.version,schemaVersion:this.de,templates:{}}}async ke(e,t,n){this.ie||(this.ie=await this.De(),console.log("Creating JSON...")),this.o.F(`Creating template at ${n.join(", ")}...`);const i=new f({displayName:t,_:0,J:a(this.he||0,this.be),file:e,coords:n}),{te:s,ne:r}=await i.Z(this.R);i.j=s;const l=`${i._} ${i.J}`;i.V=l,this.ie.templates[l]={name:i.displayName,coords:n.join(", "),enabled:!0,tiles:r,palette:i.Y},this.se=[],this.se.push(i);const c=(new Intl.NumberFormat).format(i.X);this.o.F(`Template created at ${n.join(", ")}! Total pixels: ${c}`);try{const e=document.querySelector("#bm-9");e&&(e.style.display=""),window.postMessage({source:"blue-marble",re:"bm-b"},"*")}catch(e){}console.log(Object.keys(this.ie.templates).length),console.log(this.ie),console.log(this.se),console.log(JSON.stringify(this.ie)),await o(this,m,u).call(this)}Ce(){}async Ne(){this.ie||(this.ie=await this.De(),console.log("Creating JSON..."))}async Be(e,t){if(!this.$e)return e;const n=this.R*this.oe;t=t[0].toString().padStart(4,"0")+","+t[1].toString().padStart(4,"0"),console.log(`Searching for templates in tile: "${t}"`);const i=this.se;if(console.log(i),i.sort((e,t)=>e._-t._),console.log(i),!i.some(e=>!!e?.j&&(e.U&&e.U.size>0?e.U.has(t):Object.keys(e.j).some(e=>e.startsWith(t)))))return e;const o=i.map(e=>{const n=Object.keys(e.j).filter(e=>e.startsWith(t));if(0===n.length)return null;const i=n.map(t=>{const n=t.split(",");return{Ie:e.j[t],Le:[n[0],n[1]],Ge:[n[2],n[3]]}});return i?.[0]}).filter(Boolean);console.log(o);const s=o?.length||0;console.log(`templateCount = ${s}`);let r=0,a=0,l=0;const c=await createImageBitmap(e),m=new OffscreenCanvas(n,n),u=m.getContext("2d");u.imageSmoothingEnabled=!1,u.beginPath(),u.rect(0,0,n,n),u.clip(),u.clearRect(0,0,n,n),u.drawImage(c,0,0,n,n);let d=null;try{d=u.getImageData(0,0,n,n).data}catch(e){}for(const e of o){if(console.log("Template:"),console.log(e),d)try{const t=e.Ie.width,i=e.Ie.height,o=new OffscreenCanvas(t,i).getContext("2d",{ee:!0});o.imageSmoothingEnabled=!1,o.clearRect(0,0,t,i),o.drawImage(e.Ie,0,0);const s=o.getImageData(0,0,t,i).data,c=Number(e.Ge[0])*this.oe,m=Number(e.Ge[1])*this.oe;for(let e=0;e=n||u>=n)continue;const h=4*(e*t+i),b=s[h],p=s[h+1],g=s[h+2];if(s[h+3]<64){try{const e=this.se?.[0],t=4*(u*n+o),i=d[t],s=d[t+1],r=d[t+2],l=d[t+3],c=`${i},${s},${r}`,m=!!e?.H&&e.H.has(c);l>=64&&m&&a++}catch(e){}continue}try{const e=this.se?.[0];if(e?.H&&!e.H.has(`${b},${p},${g}`))continue}catch(e){}l++;const f=4*(u*n+o),w=d[f],y=d[f+1],v=d[f+2];d[f+3]<64||(w===b&&y===p&&v===g?r++:a++)}}catch(e){console.warn("Failed to compute per-tile painted/wrong stats:",e)}try{const t=this.se?.[0],n=t?.Y||{};if(Object.values(n).some(e=>!1===e?.enabled)){const i=e.Ie.width,o=e.Ie.height,s=new OffscreenCanvas(i,o),r=s.getContext("2d",{ee:!0});r.imageSmoothingEnabled=!1,r.clearRect(0,0,i,o),r.drawImage(e.Ie,0,0);const a=r.getImageData(0,0,i,o),l=a.data;for(let e=0;e0){const e=t;this.xe.set(e,{Pe:r,required:l,We:a});let n=0,i=0,o=0;for(const e of this.xe.values())n+=e.Pe||0,i+=e.required||0,o+=e.We||0;const c=this.se.reduce((e,t)=>e+(t.A||t.X||0),0),m=c>0?c:i,u=(new Intl.NumberFormat).format(n),d=(new Intl.NumberFormat).format(m),h=(new Intl.NumberFormat).format(m-n);this.o.F(`Displaying ${s} template${1==s?"":"s"}.\nPainted ${u} / ${d} • Wrong ${h}`)}else this.o.F(`Displaying ${s} templates.`);return await m.convertToBlob({type:"image/png"})}Fe(e){console.log("Importing JSON..."),console.log(e),"BlueMarble"==e?.whoami&&o(this,m,d).call(this,e)}_e(e){this.$e=e}}(w,y,x)),M=new class{constructor(e){i(this,h),this.Ee=e,this.Je=!1,this.je=[],this.Re=[]}Xe(e){window.addEventListener("message",async t=>{const n=t.data,i=n.jsonData;if(!n||"blue-marble"!==n.source)return;if(!n.endpoint)return;const o=n.endpoint?.split("?")[0].split("/").filter(e=>e&&isNaN(Number(e))).filter(e=>e&&!e.includes(".")).pop();switch(console.log('%cBlue Marble%c: Recieved message about "%s"',"color: cornflowerblue;","",o),o){case"me":if(i.status&&"2"!=i.status?.toString()[0])return void e.W("You are not logged in!\nCould not fetch userdata.");const t=Math.ceil(Math.pow(Math.floor(i.level)*Math.pow(30,.65),1/.65)-i.pixelsPainted);console.log(i.id),(i.id||0===i.id)&&console.log(a(i.id,"!#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~")),this.Ee.he=i.id,e.B("bm-u",`Username: ${function(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML}(i.name)}`),e.B("bm-p",`Droplets: ${(new Intl.NumberFormat).format(i.droplets)}`),e.B("bm-i",`Next level in ${(new Intl.NumberFormat).format(t)} pixel${1==t?"":"s"}`);break;case"pixel":const o=n.endpoint.split("?")[0].split("/").filter(e=>e&&!isNaN(Number(e))),l=new URLSearchParams(n.endpoint.split("?")[1]),c=[l.get("x"),l.get("y")];if(this.je.length&&(!o.length||!c.length))return void e.W("Coordinates are malformed!\nDid you try clicking the canvas first?");this.je=[...o,...c];const m=(s=o,r=c,[parseInt(s[0])%4*1e3+parseInt(r[0]),parseInt(s[1])%4*1e3+parseInt(r[1])]),u=document.querySelectorAll("span");for(const e of u)if(e.textContent.trim().includes(`${m[0]}, ${m[1]}`)){let t=document.querySelector("#bm-h");const n=`(Tl X: ${o[0]}, Tl Y: ${o[1]}, Px X: ${c[0]}, Px Y: ${c[1]})`;t?t.textContent=n:(t=document.createElement("span"),t.id="bm-h",t.textContent=n,t.style="margin-left: calc(var(--spacing)*3); font-size: small;",e.parentNode.parentNode.parentNode.insertAdjacentElement("afterend",t))}break;case"tiles":let d=n.endpoint.split("/");d=[parseInt(d[d.length-2]),parseInt(d[d.length-1].replace(".png",""))];const h=n.blobID,b=n.blobData,p=await this.Ee.Be(b,d);window.postMessage({source:"blue-marble",blobID:h,blobData:p,blink:n.blink});break;case"robots":this.Je="false"==i.userscript?.toString().toLowerCase();break}var s,r})}async Ae(e){console.log("Sending heartbeat to telemetry server...");let t=GM_getValue("bmUserSettings","{}");if(t=JSON.parse(t),!t||!t.telemetry||!t.uuid)return void console.log("Telemetry is disabled, not sending heartbeat.");const n=navigator.userAgent;let i=await o(this,h,b).call(this,n),s=o(this,h,p).call(this,n);GM_xmlhttpRequest({method:"POST",url:"https://telemetry.thebluecorner.net/heartbeat",headers:{"Content-Type":"application/json"},data:JSON.stringify({uuid:t.uuid,version:e,browser:i,os:s}),onload:e=>{200!==e.status&&r("Failed to send heartbeat:",e.statusText)},onerror:e=>{r("Error sending heartbeat:",e)}})}}(S);x.u(M);var O=JSON.parse(GM_getValue("bmTemplates","{}"));console.log(O),S.Fe(O);var T=JSON.parse(GM_getValue("bmUserSettings","{}"));if(console.log(T),console.log(Object.keys(T).length),0==Object.keys(T).length){const e=crypto.randomUUID();console.log(e),GM.setValue("bmUserSettings",JSON.stringify({uuid:e}))}if(setInterval(()=>M.Ae(y),18e5),console.log(`Telemetry is ${!(null==T?.telemetry)}`),null==T?.telemetry||T?.telemetry>1){const e=new s(w,y);e.u(M),e.v({id:"bm-d",style:"top: 0px; left: 0px; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; z-index: 9999;"}).v({id:"bm-7",style:"display: flex; flex-direction: column; align-items: center;"}).v({id:"bm-1",style:"margin-top: 10%;"}).O(1,{textContent:`${w} Telemetry`}).h().h().v({id:"bm-e",style:"max-width: 50%; overflow-y: auto; max-height: 80vh;"}).T().h().D().h().v({style:"width: fit-content; margin: auto; text-align: center;"}).C({id:"bm-8",textContent:"More Information"},(e,t)=>{t.onclick=()=>{window.open("https://github.com/SwingTheVine/Wplace-TelemetryServer#telemetry-data","_blank","noopener noreferrer")}}).h().h().D().h().v({style:"width: fit-content; margin: auto; text-align: center;"}).C({id:"bm-5",textContent:"Enable Telemetry",style:"margin-right: 2ch;"},(e,t)=>{t.onclick=()=>{const e=JSON.parse(GM_getValue("bmUserSettings","{}"));e.telemetry=1,GM.setValue("bmUserSettings",JSON.stringify(e));const t=document.getElementById("bm-d");t&&(t.style.display="none")}}).h().C({id:"bm-2",textContent:"Disable Telemetry"},(e,t)=>{t.onclick=()=>{const e=JSON.parse(GM_getValue("bmUserSettings","{}"));e.telemetry=0,GM.setValue("bmUserSettings",JSON.stringify(e));const t=document.getElementById("bm-d");t&&(t.style.display="none")}}).h().h().D().h().$({textContent:"We collect anonymous telemetry data such as your browser, OS, and script version to make the experience better for everyone. The data is never shared personally. The data is never sold. You can turn this off by pressing the 'Disable' button, but keeping it on helps us improve features and reliability faster. Thank you for supporting the Blue Marble!"}).h().$({textContent:'You can disable telemetry by pressing the "Disable" button below.'}).h().h().h().p(document.body)}!function(){let e=!1,t={};try{t=JSON.parse(GM_getValue("bmCoords","{}"))||{}}catch(e){t={}}const n=()=>{try{const e=Number(document.querySelector("#bm-v")?.value||""),t=Number(document.querySelector("#bm-w")?.value||""),n={qe:e,Ye:t,px:Number(document.querySelector("#bm-x")?.value||""),Ue:Number(document.querySelector("#bm-y")?.value||"")};GM.setValue("bmCoords",JSON.stringify(n))}catch(e){}};x.v({id:"bm-A",style:"top: 10px; right: 75px;"}).v({id:"bm-j"}).v({id:"bm-z"}).h().M({alt:"Blue Marble Icon - Click to minimize/maximize",src:"https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/dist/assets/Favicon.png",style:"cursor: pointer;"},(t,n)=>{n.addEventListener("click",()=>{e=!e;const i=document.querySelector("#bm-A"),o=document.querySelector("#bm-j"),s=document.querySelector("#bm-z"),r=document.querySelector("#bm-k"),a=document.querySelector("#bm-q"),l=document.querySelector("#bm-r"),c=document.querySelector("#bm-s"),m=document.querySelector("#bm-l"),u=document.querySelectorAll("#bm-k input");e||(i.style.width="auto",i.style.maxWidth="300px",i.style.minWidth="200px",i.style.padding="10px"),["#bm-A h1","#bm-f","#bm-A hr","#bm-c > *:not(#bm-k)","#bm-a","#bm-6",`#${t.i}`,"#bm-9"].forEach(t=>{document.querySelectorAll(t).forEach(t=>{t.style.display=e?"none":""})}),e?(r&&(r.style.display="none"),a&&(a.style.display="none"),l&&(l.style.display="none"),c&&(c.style.display="none"),m&&(m.style.display="none"),u.forEach(e=>{e.style.display="none"}),i.style.width="60px",i.style.height="76px",i.style.maxWidth="60px",i.style.minWidth="60px",i.style.padding="8px",n.style.marginLeft="3px",o.style.textAlign="center",o.style.margin="0",o.style.marginBottom="0",s&&(s.style.display="",s.style.marginBottom="0.25em")):(r&&(r.style.display="",r.style.flexDirection="",r.style.justifyContent="",r.style.alignItems="",r.style.gap="",r.style.textAlign="",r.style.margin=""),a&&(a.style.display=""),l&&(l.style.display="",l.style.marginTop=""),c&&(c.style.display="",c.style.marginTop=""),m&&(m.style.display="",m.style.marginTop=""),u.forEach(e=>{e.style.display=""}),n.style.marginLeft="",i.style.padding="10px",o.style.textAlign="",o.style.margin="",o.style.marginBottom="",s&&(s.style.marginBottom="0.5em"),i.style.width="",i.style.height=""),n.alt=e?"Blue Marble Icon - Minimized (Click to maximize)":"Blue Marble Icon - Maximized (Click to minimize)"})}).h().O(1,{textContent:w}).h().h().T().h().v({id:"bm-f"}).$({id:"bm-u",textContent:"Username:"}).h().$({id:"bm-p",textContent:"Droplets:"}).h().$({id:"bm-i",textContent:"Next level in..."}).h().h().T().h().v({id:"bm-c"}).v({id:"bm-k"}).C({id:"bm-q",className:"bm-D",style:"margin-top: 0;",innerHTML:''},(e,t)=>{t.onclick=()=>{const t=e.t?.je;t?.[0]?(e.B("bm-v",t?.[0]||""),e.B("bm-w",t?.[1]||""),e.B("bm-x",t?.[2]||""),e.B("bm-y",t?.[3]||""),n()):e.W("Coordinates are malformed! Did you try clicking on the canvas first?")}}).h().I({type:"number",id:"bm-v",placeholder:"Tl X",min:0,max:2047,step:1,required:!0,value:t.qe??""},(e,t)=>{t.addEventListener("paste",e=>{let t=(e.clipboardData||window.clipboardData).getData("text").split(" ").filter(e=>e).map(Number).filter(e=>!isNaN(e));if(4!==t.length)return;let n=(i=document,coords=[],coords.push(i.querySelector("#bm-v")),coords.push(i.querySelector("#bm-w")),coords.push(i.querySelector("#bm-x")),coords.push(i.querySelector("#bm-y")),coords);var i;for(let e=0;en();t.addEventListener("input",i),t.addEventListener("change",i)}).h().I({type:"number",id:"bm-w",placeholder:"Tl Y",min:0,max:2047,step:1,required:!0,value:t.Ye??""},(e,t)=>{const i=()=>n();t.addEventListener("input",i),t.addEventListener("change",i)}).h().I({type:"number",id:"bm-x",placeholder:"Px X",min:0,max:2047,step:1,required:!0,value:t.px??""},(e,t)=>{const i=()=>n();t.addEventListener("input",i),t.addEventListener("change",i)}).h().I({type:"number",id:"bm-y",placeholder:"Px Y",min:0,max:2047,step:1,required:!0,value:t.Ue??""},(e,t)=>{const i=()=>n();t.addEventListener("input",i),t.addEventListener("change",i)}).h().h().v({id:"bm-9",style:"max-height: 140px; overflow: auto; border: 1px solid rgba(255,255,255,0.1); padding: 4px; border-radius: 4px; display: none;"}).v({style:"display: flex; gap: 6px; margin-bottom: 6px;"}).C({id:"bm-3",textContent:"Enable All"},(e,t)=>{t.onclick=()=>{const t=S.se[0];t?.Y&&(Object.values(t.Y).forEach(e=>e.enabled=!0),buildColorFilterList(),e.F("Enabled all colors"))}}).h().C({id:"bm-0",textContent:"Disable All"},(e,t)=>{t.onclick=()=>{const t=S.se[0];t?.Y&&(Object.values(t.Y).forEach(e=>e.enabled=!1),buildColorFilterList(),e.F("Disabled all colors"))}}).h().h().v({id:"bm-g"}).h().h().L({id:"bm-a",textContent:"Upload Template",accept:"image/png, image/jpeg, image/webp, image/bmp, image/gif"}).h().v({id:"bm-4"}).C({id:"bm-s",textContent:"Enable"},(e,t)=>{t.onclick=()=>{e.t?.Ee?._e(!0),e.F("Enabled templates!")}}).h().C({id:"bm-r",textContent:"Create"},(e,t)=>{t.onclick=()=>{const t=document.querySelector("#bm-a"),n=document.querySelector("#bm-v");if(!n.checkValidity())return n.reportValidity(),void e.W("Coordinates are malformed! Did you try clicking on the canvas first?");const i=document.querySelector("#bm-w");if(!i.checkValidity())return i.reportValidity(),void e.W("Coordinates are malformed! Did you try clicking on the canvas first?");const o=document.querySelector("#bm-x");if(!o.checkValidity())return o.reportValidity(),void e.W("Coordinates are malformed! Did you try clicking on the canvas first?");const s=document.querySelector("#bm-y");if(!s.checkValidity())return s.reportValidity(),void e.W("Coordinates are malformed! Did you try clicking on the canvas first?");t?.files[0]?(S.ke(t.files[0],t.files[0]?.name.replace(/\.[^/.]+$/,""),[Number(n.value),Number(i.value),Number(o.value),Number(s.value)]),e.F("Drew to canvas!")):e.W("No file selected!")}}).h().C({id:"bm-l",textContent:"Disable"},(e,t)=>{t.onclick=()=>{e.t?.Ee?._e(!1),e.F("Disabled templates!")}}).h().h().G({id:x.i,placeholder:`Status: Sleeping...\nVersion: ${y}`,readOnly:!0}).h().v({id:"bm-6"}).v().C({id:"bm-m",className:"bm-D",innerHTML:"🎨",title:"Template Color Converter"},(e,t)=>{t.addEventListener("click",()=>{window.open("https://pepoafonso.github.io/color_converter_wplace/","_blank","noopener noreferrer")})}).h().C({id:"bm-n",className:"bm-D",innerHTML:"🌐",title:"Official Blue Marble Website"},(e,t)=>{t.addEventListener("click",()=>{window.open("https://bluemarble.camilledaguin.fr/","_blank","noopener noreferrer")})}).h().h().S({textContent:"Made by SwingTheVine",style:"margin-top: auto;"}).h().h().h().p(document.body),window.buildColorFilterList=function(){const e=document.querySelector("#bm-g"),t=S.se?.[0];if(!e||!t?.Y)return void(e&&(e.innerHTML="No template colors to display."));e.innerHTML="";const n=Object.entries(t.Y).sort((e,t)=>t[1].count-e[1].count);for(const[t,i]of n){const[n,o,s]=t.split(",").map(Number),r=document.createElement("div");r.style.display="flex",r.style.alignItems="center",r.style.gap="8px",r.style.margin="4px 0";const a=document.createElement("div");a.style.width="14px",a.style.height="14px",a.style.border="1px solid rgba(255,255,255,0.5)",a.style.background=`rgb(${n},${o},${s})`;const l=document.createElement("span");l.style.fontSize="12px";let c=`${i.count.toLocaleString()}`;try{const e=S.se?.[0]?.K?.get(t);if(e&&"number"==typeof e.id){const t=e?.name||`rgb(${n},${o},${s})`,i=e.premium?"★ ":"";c=`#${e.id} ${i}${t} • ${c}`}}catch(e){}l.textContent=c;const m=document.createElement("input");m.type="checkbox",m.checked=!!i.enabled,m.addEventListener("change",()=>{i.enabled=m.checked,x.F(`${m.checked?"Enabled":"Disabled"} ${t}`);try{const e=S.se?.[0],t=e?.V;e&&t&&S.ie?.templates?.[t]&&(S.ie.templates[t].palette=e.Y,GM.setValue("bmTemplates",JSON.stringify(S.ie)))}catch(e){}}),r.appendChild(m),r.appendChild(a),r.appendChild(l),e.appendChild(r)}},window.addEventListener("message",e=>{if("bm-b"===e?.data?.re)try{buildColorFilterList()}catch(e){}}),setTimeout(()=>{try{if(S.se?.length>0){const e=document.querySelector("#bm-9");e&&(e.style.display=""),buildColorFilterList()}}catch(e){}},0)}(),x.P("#bm-A","#bm-z"),M.Xe(x),new MutationObserver((e,t)=>{const n=document.querySelector("#color-1");if(!n)return;let i=document.querySelector("#bm-t");if(!i){i=document.createElement("button"),i.id="bm-t",i.textContent="Move ↑",i.className="btn btn-soft",i.onclick=function(){const e=this.parentNode.parentNode.parentNode.parentNode,t="Move ↑"==this.textContent;e.parentNode.className=e.parentNode.className.replace(t?"bottom":"top",t?"top":"bottom"),e.style.borderTopLeftRadius=t?"0px":"var(--radius-box)",e.style.borderTopRightRadius=t?"0px":"var(--radius-box)",e.style.borderBottomLeftRadius=t?"var(--radius-box)":"0px",e.style.borderBottomRightRadius=t?"var(--radius-box)":"0px",this.textContent=t?"Move ↓":"Move ↑"};const e=n.parentNode.parentNode.parentNode.parentNode.querySelector("h2");e.parentNode?.appendChild(i)}}).observe(document.body,{childList:!0,subtree:!0}),function(...e){(0,console.log)(...e)}(`%c${w}%c (${y}) userscript has loaded!`,"color: cornflowerblue;","")})(); +(()=>{var t,e,i=t=>{throw TypeError(t)},n=(t,e,n)=>e.has(t)?i("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),o=(t,e,n)=>(((t,e)=>{e.has(t)||i("Cannot access private method")})(t,e),n),r=class{constructor(e,i){n(this,t),this.name=e,this.version=i,this.t=null,this.i="bm-o",this.o=null,this.m=null,this.l=[]}u(t){this.t=t}h(){return this.l.length>0&&(this.m=this.l.pop()),this}p(t){t?.appendChild(this.o),this.o=null,this.m=null,this.l=[]}v(i={},n=()=>{}){return n(this,o(this,t,e).call(this,"div",{},i)),this}$(i={},n=()=>{}){return n(this,o(this,t,e).call(this,"p",{},i)),this}S(i={},n=()=>{}){return n(this,o(this,t,e).call(this,"small",{},i)),this}M(i={},n=()=>{}){return n(this,o(this,t,e).call(this,"img",{},i)),this}O(i,n={},r=()=>{}){return r(this,o(this,t,e).call(this,"h"+i,{},n)),this}T(i={},n=()=>{}){return n(this,o(this,t,e).call(this,"hr",{},i)),this}C(i={},n=()=>{}){return n(this,o(this,t,e).call(this,"br",{},i)),this}D(i={},n=()=>{}){const r=o(this,t,e).call(this,"label",{textContent:i.textContent??""});delete i.textContent;const a=o(this,t,e).call(this,"input",{type:"checkbox"},i);return r.insertBefore(a,r.firstChild),this.h(),n(this,r,a),this}k(i={},n=()=>{}){return n(this,o(this,t,e).call(this,"button",{},i)),this}N(i={},n=()=>{}){const r=i.title??i.textContent??"Help: No info";delete i.textContent,i.title=`Help: ${r}`;const a={textContent:"?",className:"bm-D",onclick:()=>{this.B(this.i,r)}};return n(this,o(this,t,e).call(this,"button",a,i)),this}I(i={},n=()=>{}){return n(this,o(this,t,e).call(this,"input",{},i)),this}L(i={},n=()=>{}){const r=i.textContent??"";delete i.textContent;const a=o(this,t,e).call(this,"div"),s=o(this,t,e).call(this,"input",{type:"file",style:"display: none !important; visibility: hidden !important; position: absolute !important; left: -9999px !important; width: 0 !important; height: 0 !important; opacity: 0 !important;"},i);this.h();const m=o(this,t,e).call(this,"button",{textContent:r});return this.h(),this.h(),s.setAttribute("tabindex","-1"),s.setAttribute("aria-hidden","true"),m.addEventListener("click",()=>{s.click()}),s.addEventListener("change",()=>{m.style.maxWidth=`${m.offsetWidth}px`,s.files.length>0?m.textContent=s.files[0].name:m.textContent=r}),n(this,a,s,m),this}G(i={},n=()=>{}){return n(this,o(this,t,e).call(this,"textarea",{},i)),this}B(t,e,i=!1){const n=document.getElementById(t.replace(/^#/,""));n&&(n instanceof HTMLInputElement?n.value=e:i?n.textContent=e:n.innerHTML=e)}W(t,e){let i,n=!1,o=0,r=null,a=0,s=0,m=0,l=0;if(t=document.querySelector("#"==t?.[0]?t:"#"+t),e=document.querySelector("#"==e?.[0]?e:"#"+e),!t||!e)return void this.P(`Can not drag! ${t?"":"moveMe"} ${t||e?"":"and "}${e?"":"iMoveThings "}was not found!`);const c=()=>{if(n){const e=Math.abs(a-m),i=Math.abs(s-l);(e>.5||i>.5)&&(a=m,s=l,t.style.transform=`translate(${a}px, ${s}px)`,t.style.left="0px",t.style.top="0px",t.style.right=""),r=requestAnimationFrame(c)}};let u=null;const d=(d,h)=>{n=!0,u=t.getBoundingClientRect(),i=d-u.left,o=h-u.top;const b=window.getComputedStyle(t).transform;if(b&&"none"!==b){const t=new DOMMatrix(b);a=t.m41,s=t.m42}else a=u.left,s=u.top;m=a,l=s,document.body.style.userSelect="none",e.classList.add("dragging"),r&&cancelAnimationFrame(r),c()},h=()=>{n=!1,r&&(cancelAnimationFrame(r),r=null),document.body.style.userSelect="",e.classList.remove("dragging")};e.addEventListener("mousedown",function(t){t.preventDefault(),d(t.clientX,t.clientY)}),e.addEventListener("touchstart",function(t){const e=t?.touches?.[0];e&&(d(e.clientX,e.clientY),t.preventDefault())},{passive:!1}),document.addEventListener("mousemove",function(t){n&&u&&(m=t.clientX-i,l=t.clientY-o)},{passive:!0}),document.addEventListener("touchmove",function(t){if(n&&u){const e=t?.touches?.[0];if(!e)return;m=e.clientX-i,l=e.clientY-o,t.preventDefault()}},{passive:!1}),document.addEventListener("mouseup",h),document.addEventListener("touchend",h),document.addEventListener("touchcancel",h)}_(t){(0,console.info)(`${this.name}: ${t}`),this.B(this.i,"Status: "+t,!0)}P(t){(0,console.error)(`${this.name}: ${t}`),this.B(this.i,"Error: "+t,!0)}};function a(...t){(0,console.error)(...t)}function s(t,e){if(0===t)return e[0];let i="";const n=e.length;for(;t>0;)i=e[t%n]+i,t=Math.floor(t/n);return i}function m(t){let e="";for(let i=0;i"transparent"!==(t?.name||"").toLowerCase()&&Array.isArray(t?.rgb)).map(t=>`${t.rgb[0]},${t.rgb[1]},${t.rgb[2]}`));const l="222,250,206";this.Y.add(l);const c="other";this.Y.add(c),this.K=new Map(m.filter(t=>Array.isArray(t?.rgb)).map(t=>[`${t.rgb[0]},${t.rgb[1]},${t.rgb[2]}`,{id:t.id,premium:!!t.premium,name:t.name}]));try{const t=m.find(t=>"transparent"===(t?.name||"").toLowerCase());t&&Array.isArray(t.rgb)&&this.K.set(l,{id:t.id,premium:!!t.premium,name:t.name})}catch(t){}try{this.K.set(c,{id:"other",premium:!1,name:"Other"})}catch(t){}}async Z(){const t=await createImageBitmap(this.file),e=t.width,i=t.height,n=e*i;this.J=n;try{const n=new OffscreenCanvas(e,i).getContext("2d",{tt:!0});n.imageSmoothingEnabled=!1,n.clearRect(0,0,e,i),n.drawImage(t,0,0);const o=n.getImageData(0,0,e,i).data;let r=0,a=0;const s=new Map;for(let t=0;t0){for(const t in e){const i=t,n=e[t];if(e.hasOwnProperty(t)){const t=i.split(" "),o=Number(t?.[0]),r=t?.[1]||"0",a=n.name||`Template ${o||""}`,s=n.tiles,m={};let c=0;const u=new Map;for(const t in s)if(s.hasOwnProperty(t)){const e=l(s[t]),i=new Blob([e],{type:"image/png"}),n=await createImageBitmap(i);m[t]=n;try{const t=n.width,e=n.height,i=new OffscreenCanvas(t,e).getContext("2d",{tt:!0});i.imageSmoothingEnabled=!1,i.clearRect(0,0,t,e),i.drawImage(n,0,0);const o=i.getImageData(0,0,t,e).data;for(let i=0;i{d.q?.add(t.split(",").slice(0,2).join(","))})}catch(t){}try{const t=e?.[i]?.palette;if(t)for(const[e,i]of Object.entries(t))d.X[e]?d.X[e].enabled=!!i?.enabled:d.X[e]={count:i?.count||0,enabled:!!i?.enabled}}catch(t){}d.H=i,this.rt.push(d)}}try{const t=document.querySelector("#bm-9");t&&(t.style.display=""),window.postMessage({source:"blue-marble",st:"bm-b"},"*")}catch(t){}}},h=new WeakSet,b=async function(t=navigator.userAgent){return(t=t||"").includes("OPR/")||t.includes("Opera")?"Opera":t.includes("Edg/")?"Edge":t.includes("Vivaldi")?"Vivaldi":t.includes("YaBrowser")?"Yandex":t.includes("Kiwi")?"Kiwi":t.includes("Brave")?"Brave":t.includes("Firefox/")?"Firefox":t.includes("Chrome/")?"Chrome":t.includes("Safari/")?"Safari":navigator.brave&&"function"==typeof navigator.brave.isBrave&&await navigator.brave.isBrave()?"Brave":"Unknown"},p=function(t=navigator.userAgent){return/Windows NT 11/i.test(t=t||"")?"Windows 11":/Windows NT 10/i.test(t)?"Windows 10":/Windows NT 6\.3/i.test(t)?"Windows 8.1":/Windows NT 6\.2/i.test(t)?"Windows 8":/Windows NT 6\.1/i.test(t)?"Windows 7":/Windows NT 6\.0/i.test(t)?"Windows Vista":/Windows NT 5\.1|Windows XP/i.test(t)?"Windows XP":/Mac OS X 10[_\.]15/i.test(t)?"macOS Catalina":/Mac OS X 10[_\.]14/i.test(t)?"macOS Mojave":/Mac OS X 10[_\.]13/i.test(t)?"macOS High Sierra":/Mac OS X 10[_\.]12/i.test(t)?"macOS Sierra":/Mac OS X 10[_\.]11/i.test(t)?"OS X El Capitan":/Mac OS X 10[_\.]10/i.test(t)?"OS X Yosemite":/Mac OS X 10[_\.]/i.test(t)?"macOS":/Android/i.test(t)?"Android":/iPhone|iPad|iPod/i.test(t)?"iOS":/Linux/i.test(t)?"Linux":"Unknown"};var w=GM_info.script.name.toString(),y=GM_info.script.version.toString();!function(t){const e=document.createElement("script");e.setAttribute("bm-E",w),e.setAttribute("bm-B","color: cornflowerblue;"),e.textContent=`(${t})();`,document.documentElement?.appendChild(e),e.remove()}(()=>{const t=document.currentScript,e=t?.getAttribute("bm-E")||"Blue Marble",i=t?.getAttribute("bm-B")||"",n=new Map;window.addEventListener("message",t=>{const{source:o,endpoint:r,blobID:a,blobData:s,blink:m}=t.data;if(Date.now(),"blue-marble"==o&&a&&s&&!r){const t=n.get(a);"function"==typeof t?t(s):function(...t){(0,console.warn)(...t)}(`%c${e}%c: Attempted to retrieve a blob (%s) from queue, but the blobID was not a function! Skipping...`,i,"",a),n.delete(a)}});const o=window.fetch;window.fetch=async function(...t){const e=await o.apply(this,t),i=e.clone(),r=(t[0]instanceof Request?t[0]?.url:t[0])||"ignore",a=i.headers.get("content-type")||"";if(a.includes("application/json"))i.json().then(t=>{window.postMessage({source:"blue-marble",endpoint:r,jsonData:t},"*")}).catch(t=>{});else if(a.includes("image/")&&!r.includes("openfreemap")&&!r.includes("maps")){const t=Date.now(),e=await i.blob();return new Promise(o=>{const a=crypto.randomUUID();n.set(a,t=>{o(new Response(t,{headers:i.headers,status:i.status,statusText:i.statusText}))}),window.postMessage({source:"blue-marble",endpoint:r,blobID:a,blobData:e,blink:t})}).catch(t=>{Date.now()})}return e}});var v=GM_getResourceText("CSS-BM-File");GM_addStyle(v);var x=document.createElement("link");x.href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap",x.rel="preload",x.as="style",x.onload=function(){this.onload=null,this.rel="stylesheet"},document.head?.appendChild(x),new class{constructor(){this.lt=null,this.ct=null,this.ut="#bm-h"}dt(t){return this.ct=t,this.lt=new MutationObserver(t=>{for(const e of t)for(const t of e.addedNodes)t instanceof HTMLElement&&t.matches?.(this.ut)}),this}ht(){return this.lt}observe(t,e=!1,i=!1){t.observe(this.ct,{childList:e,subtree:i})}};var $=new r(w,y),S=(new r(w,y),new class{constructor(t,e,i){n(this,c),this.name=t,this.version=e,this.o=i,this.bt="1.0.0",this.gt=null,this.ft="!#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~",this.A=1e3,this.ot=3,this.wt=null,this.yt=null,this.vt="bm-C",this.xt="div#map canvas.maplibregl-canvas",this.$t=null,this.St="",this.rt=[],this.nt=null,this.Mt=!0,this.Ot=new Map}Tt(){if(document.body.contains(this.wt))return this.wt;document.getElementById(this.vt)?.remove();const t=document.querySelector(this.xt),e=document.createElement("canvas");return e.id=this.vt,e.className="maplibregl-canvas",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.height=t?.clientHeight*(window.devicePixelRatio||1)+"px",e.style.width=t?.clientWidth*(window.devicePixelRatio||1)+"px",e.height=t?.clientHeight*(window.devicePixelRatio||1),e.width=t?.clientWidth*(window.devicePixelRatio||1),e.style.zIndex="8999",e.style.pointerEvents="none",t?.parentElement?.appendChild(e),this.wt=e,window.addEventListener("move",this.Ct),window.addEventListener("zoom",this.Dt),window.addEventListener("resize",this.kt),this.wt}async Nt(){return{whoami:this.name.replace(" ",""),scriptVersion:this.version,schemaVersion:this.bt,templates:{}}}async Bt(t,e,i){this.nt||(this.nt=await this.Nt()),this.o._(`Creating template at ${i.join(", ")}...`);const n=new f({displayName:e,F:0,j:s(this.gt||0,this.ft),file:t,coords:i}),{et:r,it:a}=await n.Z(this.A);n.R=r;const m=`${n.F} ${n.j}`;n.H=m,this.nt.templates[m]={name:n.displayName,coords:i.join(", "),enabled:!0,tiles:a,palette:n.X},this.rt=[],this.rt.push(n);const l=(new Intl.NumberFormat).format(n.J);this.o._(`Template created at ${i.join(", ")}! Total pixels: ${l}`);try{const t=document.querySelector("#bm-9");t&&(t.style.display=""),window.postMessage({source:"blue-marble",st:"bm-b"},"*")}catch(t){}await o(this,c,u).call(this)}It(){}async Lt(){this.nt||(this.nt=await this.Nt())}async Gt(t,e){if(!this.Mt)return t;const i=this.A*this.ot;e=e[0].toString().padStart(4,"0")+","+e[1].toString().padStart(4,"0");const n=this.rt;if(n.sort((t,e)=>t.F-e.F),!n.some(t=>!!t?.R&&(t.q&&t.q.size>0?t.q.has(e):Object.keys(t.R).some(t=>t.startsWith(e)))))return t;const o=n.map(t=>{const i=Object.keys(t.R).filter(t=>t.startsWith(e));if(0===i.length)return null;const n=i.map(e=>{const i=e.split(",");return{Wt:t.R[e],Pt:[i[0],i[1]],_t:[i[2],i[3]]}});return n?.[0]}).filter(Boolean),r=o?.length||0;let a=0,s=0,m=0;const l=await createImageBitmap(t),c=new OffscreenCanvas(i,i),u=c.getContext("2d");u.imageSmoothingEnabled=!1,u.beginPath(),u.rect(0,0,i,i),u.clip(),u.clearRect(0,0,i,i),u.drawImage(l,0,0,i,i);let d=null;try{d=u.getImageData(0,0,i,i).data}catch(t){}for(const t of o){if(d)try{const e=t.Wt.width,n=t.Wt.height,o=new OffscreenCanvas(e,n).getContext("2d",{tt:!0});o.imageSmoothingEnabled=!1,o.clearRect(0,0,e,n),o.drawImage(t.Wt,0,0);const r=o.getImageData(0,0,e,n).data,l=Number(t._t[0])*this.ot,c=Number(t._t[1])*this.ot;for(let t=0;t=i||u>=i)continue;const h=4*(t*e+n),b=r[h],p=r[h+1],g=r[h+2];if(r[h+3]<64){try{const t=this.rt?.[0],e=4*(u*i+o),n=d[e],r=d[e+1],a=d[e+2],m=d[e+3],l=t.Y.has(`${n},${r},${a}`)?`${n},${r},${a}`:"other",c=!!t?.Y&&t.Y.has(l);m>=64&&c&&s++}catch(t){}continue}m++;const f=4*(u*i+o),w=d[f],y=d[f+1],v=d[f+2];d[f+3]<64||(w===b&&y===p&&v===g?a++:s++)}}catch(t){}try{const e=this.rt?.[0],i=e?.X||{};if(Object.values(i).some(t=>!1===t?.enabled)){const n=t.Wt.width,o=t.Wt.height,r=new OffscreenCanvas(n,o),a=r.getContext("2d",{tt:!0});a.imageSmoothingEnabled=!1,a.clearRect(0,0,n,o),a.drawImage(t.Wt,0,0);const s=a.getImageData(0,0,n,o),m=s.data;for(let t=0;t0){const t=e;this.Ot.set(t,{Et:a,required:m,Ft:s});let i=0,n=0,o=0;for(const t of this.Ot.values())i+=t.Et||0,n+=t.required||0,o+=t.Ft||0;const l=this.rt.reduce((t,e)=>t+(e.U||e.J||0),0),c=l>0?l:n,u=(new Intl.NumberFormat).format(i),d=(new Intl.NumberFormat).format(c),h=(new Intl.NumberFormat).format(c-i);this.o._(`Displaying ${r} template${1==r?"":"s"}.\nPainted ${u} / ${d} • Wrong ${h}`)}else this.o._(`Displaying ${r} templates.`);return await c.convertToBlob({type:"image/png"})}jt(t){"BlueMarble"==t?.whoami&&o(this,c,d).call(this,t)}Rt(t){this.Mt=t}}(w,y,$)),M=new class{constructor(t){n(this,h),this.At=t,this.Jt=!1,this.Ut=[],this.Vt=[]}Xt(t){window.addEventListener("message",async e=>{const i=e.data,n=i.jsonData;if(!i||"blue-marble"!==i.source)return;if(!i.endpoint)return;const o=i.endpoint?.split("?")[0].split("/").filter(t=>t&&isNaN(Number(t))).filter(t=>t&&!t.includes(".")).pop();switch(o){case"me":if(n.status&&"2"!=n.status?.toString()[0])return void t.P("You are not logged in!\nCould not fetch userdata.");const e=Math.ceil(Math.pow(Math.floor(n.level)*Math.pow(30,.65),1/.65)-n.pixelsPainted);n.id||n.id,this.At.gt=n.id,t.B("bm-u",`Username: ${function(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}(n.name)}`),t.B("bm-p",`Droplets: ${(new Intl.NumberFormat).format(n.droplets)}`),t.B("bm-i",`Next level in ${(new Intl.NumberFormat).format(e)} pixel${1==e?"":"s"}`);break;case"pixel":const o=i.endpoint.split("?")[0].split("/").filter(t=>t&&!isNaN(Number(t))),s=new URLSearchParams(i.endpoint.split("?")[1]),m=[s.get("x"),s.get("y")];if(this.Ut.length&&(!o.length||!m.length))return void t.P("Coordinates are malformed!\nDid you try clicking the canvas first?");this.Ut=[...o,...m];const l=(r=o,a=m,[parseInt(r[0])%4*1e3+parseInt(a[0]),parseInt(r[1])%4*1e3+parseInt(a[1])]),c=document.querySelectorAll("span");for(const t of c)if(t.textContent.trim().includes(`${l[0]}, ${l[1]}`)){let e=document.querySelector("#bm-h");const i=`(Tl X: ${o[0]}, Tl Y: ${o[1]}, Px X: ${m[0]}, Px Y: ${m[1]})`;e?e.textContent=i:(e=document.createElement("span"),e.id="bm-h",e.textContent=i,e.style="margin-left: calc(var(--spacing)*3); font-size: small;",t.parentNode.parentNode.parentNode.insertAdjacentElement("afterend",e))}break;case"tiles":let u=i.endpoint.split("/");u=[parseInt(u[u.length-2]),parseInt(u[u.length-1].replace(".png",""))];const d=i.blobID,h=i.blobData,b=await this.At.Gt(h,u);window.postMessage({source:"blue-marble",blobID:d,blobData:b,blink:i.blink});break;case"robots":this.Jt="false"==n.userscript?.toString().toLowerCase()}var r,a})}async qt(t){let e=GM_getValue("bmUserSettings","{}");if(e=JSON.parse(e),!e||!e.telemetry||!e.uuid)return;const i=navigator.userAgent;let n=await o(this,h,b).call(this,i),r=o(this,h,p).call(this,i);GM_xmlhttpRequest({method:"POST",url:"https://telemetry.thebluecorner.net/heartbeat",headers:{"Content-Type":"application/json"},data:JSON.stringify({uuid:e.uuid,version:t,browser:n,os:r}),onload:t=>{200!==t.status&&a("Failed to send heartbeat:",t.statusText)},onerror:t=>{a("Error sending heartbeat:",t)}})}}(S);$.u(M);var O=JSON.parse(GM_getValue("bmTemplates","{}"));S.jt(O);var T=JSON.parse(GM_getValue("bmUserSettings","{}"));if(0==Object.keys(T).length){const t=crypto.randomUUID();GM.setValue("bmUserSettings",JSON.stringify({uuid:t}))}if(setInterval(()=>M.qt(y),18e5),null==T?.telemetry||T?.telemetry>1){const t=new r(w,y);t.u(M),t.v({id:"bm-d",style:"top: 0px; left: 0px; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; z-index: 9999;"}).v({id:"bm-7",style:"display: flex; flex-direction: column; align-items: center;"}).v({id:"bm-1",style:"margin-top: 10%;"}).O(1,{textContent:`${w} Telemetry`}).h().h().v({id:"bm-e",style:"max-width: 50%; overflow-y: auto; max-height: 80vh;"}).T().h().C().h().v({style:"width: fit-content; margin: auto; text-align: center;"}).k({id:"bm-8",textContent:"More Information"},(t,e)=>{e.onclick=()=>{window.open("https://github.com/SwingTheVine/Wplace-TelemetryServer#telemetry-data","_blank","noopener noreferrer")}}).h().h().C().h().v({style:"width: fit-content; margin: auto; text-align: center;"}).k({id:"bm-5",textContent:"Enable Telemetry",style:"margin-right: 2ch;"},(t,e)=>{e.onclick=()=>{const t=JSON.parse(GM_getValue("bmUserSettings","{}"));t.telemetry=1,GM.setValue("bmUserSettings",JSON.stringify(t));const e=document.getElementById("bm-d");e&&(e.style.display="none")}}).h().k({id:"bm-2",textContent:"Disable Telemetry"},(t,e)=>{e.onclick=()=>{const t=JSON.parse(GM_getValue("bmUserSettings","{}"));t.telemetry=0,GM.setValue("bmUserSettings",JSON.stringify(t));const e=document.getElementById("bm-d");e&&(e.style.display="none")}}).h().h().C().h().$({textContent:"We collect anonymous telemetry data such as your browser, OS, and script version to make the experience better for everyone. The data is never shared personally. The data is never sold. You can turn this off by pressing the 'Disable' button, but keeping it on helps us improve features and reliability faster. Thank you for supporting the Blue Marble!"}).h().$({textContent:'You can disable telemetry by pressing the "Disable" button below.'}).h().h().h().p(document.body)}!function(){let t=!1,e={};try{e=JSON.parse(GM_getValue("bmCoords","{}"))||{}}catch(t){e={}}const i=()=>{try{const t=Number(document.querySelector("#bm-v")?.value||""),e=Number(document.querySelector("#bm-w")?.value||""),i={Ht:t,Yt:e,px:Number(document.querySelector("#bm-x")?.value||""),zt:Number(document.querySelector("#bm-y")?.value||"")};GM.setValue("bmCoords",JSON.stringify(i))}catch(t){}};$.v({id:"bm-A",style:"top: 10px; right: 75px;"}).v({id:"bm-j"}).v({id:"bm-z"}).h().M({alt:"Blue Marble Icon - Click to minimize/maximize",src:"https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/dist/assets/Favicon.png",style:"cursor: pointer;"},(e,i)=>{i.addEventListener("click",()=>{t=!t;const n=document.querySelector("#bm-A"),o=document.querySelector("#bm-j"),r=document.querySelector("#bm-z"),a=document.querySelector("#bm-k"),s=document.querySelector("#bm-q"),m=document.querySelector("#bm-r"),l=document.querySelector("#bm-s"),c=document.querySelector("#bm-l"),u=document.querySelectorAll("#bm-k input");t||(n.style.width="auto",n.style.maxWidth="300px",n.style.minWidth="200px",n.style.padding="10px"),["#bm-A h1","#bm-f","#bm-A hr","#bm-c > *:not(#bm-k)","#bm-a","#bm-6",`#${e.i}`,"#bm-9"].forEach(e=>{document.querySelectorAll(e).forEach(e=>{e.style.display=t?"none":""})}),t?(a&&(a.style.display="none"),s&&(s.style.display="none"),m&&(m.style.display="none"),l&&(l.style.display="none"),c&&(c.style.display="none"),u.forEach(t=>{t.style.display="none"}),n.style.width="60px",n.style.height="76px",n.style.maxWidth="60px",n.style.minWidth="60px",n.style.padding="8px",i.style.marginLeft="3px",o.style.textAlign="center",o.style.margin="0",o.style.marginBottom="0",r&&(r.style.display="",r.style.marginBottom="0.25em")):(a&&(a.style.display="",a.style.flexDirection="",a.style.justifyContent="",a.style.alignItems="",a.style.gap="",a.style.textAlign="",a.style.margin=""),s&&(s.style.display=""),m&&(m.style.display="",m.style.marginTop=""),l&&(l.style.display="",l.style.marginTop=""),c&&(c.style.display="",c.style.marginTop=""),u.forEach(t=>{t.style.display=""}),i.style.marginLeft="",n.style.padding="10px",o.style.textAlign="",o.style.margin="",o.style.marginBottom="",r&&(r.style.marginBottom="0.5em"),n.style.width="",n.style.height=""),i.alt=t?"Blue Marble Icon - Minimized (Click to maximize)":"Blue Marble Icon - Maximized (Click to minimize)"})}).h().O(1,{textContent:w}).h().h().T().h().v({id:"bm-f"}).$({id:"bm-u",textContent:"Username:"}).h().$({id:"bm-p",textContent:"Droplets:"}).h().$({id:"bm-i",textContent:"Next level in..."}).h().h().T().h().v({id:"bm-c"}).v({id:"bm-k"}).k({id:"bm-q",className:"bm-D",style:"margin-top: 0;",innerHTML:''},(t,e)=>{e.onclick=()=>{const e=t.t?.Ut;e?.[0]?(t.B("bm-v",e?.[0]||""),t.B("bm-w",e?.[1]||""),t.B("bm-x",e?.[2]||""),t.B("bm-y",e?.[3]||""),i()):t.P("Coordinates are malformed! Did you try clicking on the canvas first?")}}).h().I({type:"number",id:"bm-v",placeholder:"Tl X",min:0,max:2047,step:1,required:!0,value:e.Ht??""},(t,e)=>{e.addEventListener("paste",t=>{let e=(t.clipboardData||window.clipboardData).getData("text").split(" ").filter(t=>t).map(Number).filter(t=>!isNaN(t));if(4!==e.length)return;let i=(n=document,coords=[],coords.push(n.querySelector("#bm-v")),coords.push(n.querySelector("#bm-w")),coords.push(n.querySelector("#bm-x")),coords.push(n.querySelector("#bm-y")),coords);var n;for(let t=0;ti();e.addEventListener("input",n),e.addEventListener("change",n)}).h().I({type:"number",id:"bm-w",placeholder:"Tl Y",min:0,max:2047,step:1,required:!0,value:e.Yt??""},(t,e)=>{const n=()=>i();e.addEventListener("input",n),e.addEventListener("change",n)}).h().I({type:"number",id:"bm-x",placeholder:"Px X",min:0,max:2047,step:1,required:!0,value:e.px??""},(t,e)=>{const n=()=>i();e.addEventListener("input",n),e.addEventListener("change",n)}).h().I({type:"number",id:"bm-y",placeholder:"Px Y",min:0,max:2047,step:1,required:!0,value:e.zt??""},(t,e)=>{const n=()=>i();e.addEventListener("input",n),e.addEventListener("change",n)}).h().h().v({id:"bm-9",style:"max-height: 140px; overflow: auto; border: 1px solid rgba(255,255,255,0.1); padding: 4px; border-radius: 4px; display: none;"}).v({style:"display: flex; gap: 6px; margin-bottom: 6px;"}).k({id:"bm-3",textContent:"Enable All"},(t,e)=>{e.onclick=()=>{const e=S.rt[0];e?.X&&(Object.values(e.X).forEach(t=>t.enabled=!0),buildColorFilterList(),t._("Enabled all colors"))}}).h().k({id:"bm-0",textContent:"Disable All"},(t,e)=>{e.onclick=()=>{const e=S.rt[0];e?.X&&(Object.values(e.X).forEach(t=>t.enabled=!1),buildColorFilterList(),t._("Disabled all colors"))}}).h().h().v({id:"bm-g"}).h().h().L({id:"bm-a",textContent:"Upload Template",accept:"image/png, image/jpeg, image/webp, image/bmp, image/gif"}).h().v({id:"bm-4"}).k({id:"bm-s",textContent:"Enable"},(t,e)=>{e.onclick=()=>{t.t?.At?.Rt(!0),t._("Enabled templates!")}}).h().k({id:"bm-r",textContent:"Create"},(t,e)=>{e.onclick=()=>{const e=document.querySelector("#bm-a"),i=document.querySelector("#bm-v");if(!i.checkValidity())return i.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");const n=document.querySelector("#bm-w");if(!n.checkValidity())return n.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");const o=document.querySelector("#bm-x");if(!o.checkValidity())return o.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");const r=document.querySelector("#bm-y");if(!r.checkValidity())return r.reportValidity(),void t.P("Coordinates are malformed! Did you try clicking on the canvas first?");e?.files[0]?(S.Bt(e.files[0],e.files[0]?.name.replace(/\.[^/.]+$/,""),[Number(i.value),Number(n.value),Number(o.value),Number(r.value)]),t._("Drew to canvas!")):t.P("No file selected!")}}).h().k({id:"bm-l",textContent:"Disable"},(t,e)=>{e.onclick=()=>{t.t?.At?.Rt(!1),t._("Disabled templates!")}}).h().h().G({id:$.i,placeholder:`Status: Sleeping...\nVersion: ${y}`,readOnly:!0}).h().v({id:"bm-6"}).v().k({id:"bm-m",className:"bm-D",innerHTML:"🎨",title:"Template Color Converter"},(t,e)=>{e.addEventListener("click",()=>{window.open("https://pepoafonso.github.io/color_converter_wplace/","_blank","noopener noreferrer")})}).h().k({id:"bm-n",className:"bm-D",innerHTML:"🌐",title:"Official Blue Marble Website"},(t,e)=>{e.addEventListener("click",()=>{window.open("https://bluemarble.camilledaguin.fr/","_blank","noopener noreferrer")})}).h().h().S({textContent:"Made by SwingTheVine",style:"margin-top: auto;"}).h().h().h().p(document.body),window.buildColorFilterList=function(){const t=document.querySelector("#bm-g"),e=S.rt?.[0];if(!t||!e?.X)return void(t&&(t.innerHTML="No template colors to display."));t.innerHTML="";const i=Object.entries(e.X).sort((t,e)=>e[1].count-t[1].count);for(const[e,n]of i){let i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.gap="8px",i.style.margin="4px 0";let o=document.createElement("div");o.style.width="14px",o.style.height="14px",o.style.border="1px solid rgba(255,255,255,0.5)";let r=document.createElement("span");r.style.fontSize="12px";let a=`${n.count.toLocaleString()}`;if("other"===e)o.style.background="#888",a=`Other • ${a}`;else if("#deface"===e)o.style.background="#deface",a=`Transparent • ${a}`;else{const[t,i,n]=e.split(",").map(Number);o.style.background=`rgb(${t},${i},${n})`;try{const o=S.rt?.[0]?.K?.get(e);if(o&&"number"==typeof o.id){const e=o?.name||`rgb(${t},${i},${n})`,r=o.premium?"★ ":"";a=`#${o.id} ${r}${e} • ${a}`}}catch(t){}}r.textContent=a;const s=document.createElement("input");s.type="checkbox",s.checked=!!n.enabled,s.addEventListener("change",()=>{n.enabled=s.checked,$._(`${s.checked?"Enabled":"Disabled"} ${e}`);try{const t=S.rt?.[0],e=t?.H;t&&e&&S.nt?.templates?.[e]&&(S.nt.templates[e].palette=t.X,GM.setValue("bmTemplates",JSON.stringify(S.nt)))}catch(t){}}),i.appendChild(s),i.appendChild(o),i.appendChild(r),t.appendChild(i)}},window.addEventListener("message",t=>{if("bm-b"===t?.data?.st)try{buildColorFilterList()}catch(t){}}),setTimeout(()=>{try{if(S.rt?.length>0){const t=document.querySelector("#bm-9");t&&(t.style.display=""),buildColorFilterList()}}catch(t){}},0)}(),$.W("#bm-A","#bm-z"),M.Xt($),new MutationObserver((t,e)=>{const i=document.querySelector("#color-1");if(!i)return;let n=document.querySelector("#bm-t");if(!n){n=document.createElement("button"),n.id="bm-t",n.textContent="Move ↑",n.className="btn btn-soft",n.onclick=function(){const t=this.parentNode.parentNode.parentNode.parentNode,e="Move ↑"==this.textContent;t.parentNode.className=t.parentNode.className.replace(e?"bottom":"top",e?"top":"bottom"),t.style.borderTopLeftRadius=e?"0px":"var(--radius-box)",t.style.borderTopRightRadius=e?"0px":"var(--radius-box)",t.style.borderBottomLeftRadius=e?"var(--radius-box)":"0px",t.style.borderBottomRightRadius=e?"var(--radius-box)":"0px",this.textContent=e?"Move ↓":"Move ↑"};const t=i.parentNode.parentNode.parentNode.parentNode.querySelector("h2");t.parentNode?.appendChild(n)}}).observe(document.body,{childList:!0,subtree:!0}),function(...t){(0,console.log)(...t)}(`%c${w}%c (${y}) userscript has loaded!`,"color: cornflowerblue;","")})(); \ No newline at end of file diff --git a/docs/README.md b/docs/README.md index c983795..b36e587 100644 --- a/docs/README.md +++ b/docs/README.md @@ -43,7 +43,7 @@

    Blue Marble

    Wplace Status -Latest Version +Latest Version Latest Release Software License: MPL-2.0 Contact Me @@ -52,7 +52,7 @@ Total Patches Total Lines of Code Total Comments -Compression +Compression Repo Size Visitors Downloads diff --git a/package.json b/package.json index ce57daa..79af483 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wplace-bluemarble", - "version": "0.84.14", + "version": "0.85.0", "type": "module", "homepage": "https://bluemarble.camilledaguin.fr/", "repository": { diff --git a/src/BlueMarble.meta.js b/src/BlueMarble.meta.js index 46073f0..8477ec7 100644 --- a/src/BlueMarble.meta.js +++ b/src/BlueMarble.meta.js @@ -1,13 +1,13 @@ // ==UserScript== // @name Blue Marble // @namespace https://github.com/SwingTheVine/ -// @version 0.84.14 +// @version 0.85.0 // @description A userscript to automate and/or enhance the user experience on Wplace.live. Make sure to comply with the site's Terms of Service, and rules! This script is not affiliated with Wplace.live in any way, use at your own risk. This script is not affiliated with TamperMonkey. The author of this userscript is not responsible for any damages, issues, loss of data, or punishment that may occur as a result of using this script. This script is provided "as is" under the MPL-2.0 license. The "Blue Marble" icon is licensed under CC0 1.0 Universal (CC0 1.0) Public Domain Dedication. The image is owned by NASA. // @author SwingTheVine // @license MPL-2.0 // @supportURL https://discord.gg/tpeBPy46hf // @homepageURL https://bluemarble.camilledaguin.fr/ -// @icon https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/8d02ac9cbe8f6861248152f2b0d632a0b4a830ee/dist/assets/Favicon.png +// @icon https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/051271c433a42db968a865b00f81bb979ee7d13f/dist/assets/Favicon.png // @updateURL https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/dist/BlueMarble.user.js // @downloadURL https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/dist/BlueMarble.user.js // @match https://wplace.live/* @@ -17,7 +17,7 @@ // @grant GM_getValue // @grant GM_xmlhttpRequest // @connect telemetry.thebluecorner.net -// @resource CSS-BM-File https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/8d02ac9cbe8f6861248152f2b0d632a0b4a830ee/dist/BlueMarble.user.css +// @resource CSS-BM-File https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/051271c433a42db968a865b00f81bb979ee7d13f/dist/BlueMarble.user.css // ==/UserScript== // Wplace --> https://wplace.live