behind as default for overlay full upon swap

This commit is contained in:
ShinkoNet 2025-08-12 22:19:29 +10:00
parent c1a5c67f2e
commit 1b6814bd7f
3 changed files with 2 additions and 4 deletions

View file

View file

@ -1,7 +1,7 @@
// ==UserScript==
// @name Wplace Overlay Pro
// @namespace http://tampermonkey.net/
// @version 3.1.1
// @version 3.1.2
// @description Overlays tiles on wplace.live. Can also resize, and color-match your overlay to wplace's palette. 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 GPLv3.
// @author shinkonet
// @match https://wplace.live/*

View file

@ -281,9 +281,7 @@ function addEventListeners(panel: HTMLDivElement) {
btn.addEventListener('click', () => {
const mode = btn.getAttribute('data-mode') as 'above' | 'minify' | 'original';
if (mode === 'above') {
if (config.overlayMode !== 'behind') {
config.overlayMode = 'above';
}
config.overlayMode = 'behind';
} else {
config.overlayMode = mode;
}