diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a1bed39..7e8bb33 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,6 +24,11 @@ jobs: - name: Build userscript run: npm run build + - name: Update userscript version + run: | + npm version minor --no-git-tag-version + node update-version.js + - name: Commit and push built script run: | git config user.name "github-actions[bot]" diff --git a/BlueMarble.meta.js b/BlueMarble.meta.js index 5684955..2cca8c9 100644 --- a/BlueMarble.meta.js +++ b/BlueMarble.meta.js @@ -1,8 +1,8 @@ // ==UserScript== // @name Blue Marble // @namespace https://github.com/SwingTheVine/ -// @version 0.0.2 -// @description A userscript for Wplace.live +// @version 0.0.6 +// @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 @@ -11,4 +11,6 @@ // @updateURL https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/BlueMarble.user.js // @downloadURL https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/BlueMarble.user.js // @match *://*.wplace.live/* -// ==/UserScript== \ No newline at end of file +// @link https://wplace.live +// @link https://www.mozilla.org/en-US/MPL/2.0/ +// ==/UserScript== diff --git a/BlueMarble.user.js b/BlueMarble.user.js deleted file mode 100644 index 5c7761f..0000000 --- a/BlueMarble.user.js +++ /dev/null @@ -1,101 +0,0 @@ -// ==UserScript== -// @name Blue Marble -// @namespace https://github.com/SwingTheVine/ -// @version 0.0.2 -// @description A userscript for Wplace.live -// @author SwingTheVine -// @license MPL-2.0 -// @supportURL https://discord.gg/tpeBPy46hf -// @homepageURL https://github.com/SwingTheVine/Wplace-BlueMarble -// @icon https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/Favicon.png -// @updateURL https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/BlueMarble.user.js -// @downloadURL https://raw.githubusercontent.com/SwingTheVine/Wplace-BlueMarble/main/BlueMarble.user.js -// @match *://*.wplace.live/* -// ==/UserScript== - -/** This script is designed 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. - * The author 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 - * @version 0.0.2 - * @description A userscript for Wplace.live - * @license MPL-2.0 - * @link https://wplace.live - * @link https://github.com/SwingTheVine/Wplace-BlueMarble - * @link https://www.mozilla.org/en-US/MPL/2.0/ -*/ - -console.log("Blue Marble script has loaded."); - -(function() { - 'use strict'; - - /** The overlay for the Blue Marble script. - * @since 0.0.2 - * @description Thie class handles the overlay UI for the Blue Marble script. - * @class Overlay - */ - class Overlay { - - /** Constructor for the Overlay class. - * @param {*} text - The text to display in the overlay. - * @since 0.0.2 - * @see {@link Overlay} - */ - constructor(text) { - this.text = text; - this.element = null; - } - - /** Creates and deploys the overlay element - * @since 0.0.2 - */ - create() { - - const div = document.createElement('div'); // Creates a new