mirror of
https://github.com/ShinkoNet/Wplace-Overlay-Pro.git
synced 2026-01-11 22:40:37 +00:00
behind as default for overlay full upon swap
This commit is contained in:
parent
c1a5c67f2e
commit
1b6814bd7f
3 changed files with 2 additions and 4 deletions
0
plan.md
0
plan.md
|
|
@ -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/*
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue