From 20068df55c8c9631aca7b686c343545864fe5600 Mon Sep 17 00:00:00 2001 From: GaboGG Date: Tue, 4 Aug 2026 15:08:41 -0400 Subject: [PATCH] v0.16.3 - Fix ',' toggle double-flip desync (settings key now opens AND closes) --- scripts/hv-unified.user.js | 7 +++---- scripts/latest.user.js | 7 +++---- src/config.js | 2 +- src/header.user.js | 2 +- src/keybindings.js | 3 +-- 5 files changed, 9 insertions(+), 12 deletions(-) diff --git a/scripts/hv-unified.user.js b/scripts/hv-unified.user.js index 8c42c40..026db78 100644 --- a/scripts/hv-unified.user.js +++ b/scripts/hv-unified.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name HV Unified // @namespace hvunified -// @version 0.16.2 +// @version 0.16.3 // @description HV Unified — Bridge & Strategy/Gear Advisor for HentaiVerse (complements Monsterbation & HVUtils) // @author GaboGG + Hermes // @match *://*.hentaiverse.org/* @@ -18,7 +18,7 @@ // CONFIG — default settings // ═══════════════════════════════════════════════════════════════════════ -const VERSION = '0.16.2'; +const VERSION = '0.16.3'; const CFG = { // — Battle strategy advisory @@ -1677,8 +1677,7 @@ function setupKeybindings() { const tag = (document.activeElement || {}).tagName; if (tag === 'INPUT' || tag === 'TEXTAREA') return; e.preventDefault(); - STATE.settingsVisible = !STATE.settingsVisible; - toggleSettings(); + toggleSettings(); // toggleSettings owns the settingsVisible flag } }); diff --git a/scripts/latest.user.js b/scripts/latest.user.js index 8c42c40..026db78 100644 --- a/scripts/latest.user.js +++ b/scripts/latest.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name HV Unified // @namespace hvunified -// @version 0.16.2 +// @version 0.16.3 // @description HV Unified — Bridge & Strategy/Gear Advisor for HentaiVerse (complements Monsterbation & HVUtils) // @author GaboGG + Hermes // @match *://*.hentaiverse.org/* @@ -18,7 +18,7 @@ // CONFIG — default settings // ═══════════════════════════════════════════════════════════════════════ -const VERSION = '0.16.2'; +const VERSION = '0.16.3'; const CFG = { // — Battle strategy advisory @@ -1677,8 +1677,7 @@ function setupKeybindings() { const tag = (document.activeElement || {}).tagName; if (tag === 'INPUT' || tag === 'TEXTAREA') return; e.preventDefault(); - STATE.settingsVisible = !STATE.settingsVisible; - toggleSettings(); + toggleSettings(); // toggleSettings owns the settingsVisible flag } }); diff --git a/src/config.js b/src/config.js index ce3d02b..912616a 100644 --- a/src/config.js +++ b/src/config.js @@ -2,7 +2,7 @@ // CONFIG — default settings // ═══════════════════════════════════════════════════════════════════════ -const VERSION = '0.16.2'; +const VERSION = '0.16.3'; const CFG = { // — Battle strategy advisory diff --git a/src/header.user.js b/src/header.user.js index c695cd3..02c3d8b 100644 --- a/src/header.user.js +++ b/src/header.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name HV Unified // @namespace hvunified -// @version 0.16.2 +// @version 0.16.3 // @description HV Unified — Bridge & Strategy/Gear Advisor for HentaiVerse (complements Monsterbation & HVUtils) // @author GaboGG + Hermes // @match *://*.hentaiverse.org/* diff --git a/src/keybindings.js b/src/keybindings.js index 15c26cf..aec4739 100644 --- a/src/keybindings.js +++ b/src/keybindings.js @@ -16,8 +16,7 @@ function setupKeybindings() { const tag = (document.activeElement || {}).tagName; if (tag === 'INPUT' || tag === 'TEXTAREA') return; e.preventDefault(); - STATE.settingsVisible = !STATE.settingsVisible; - toggleSettings(); + toggleSettings(); // toggleSettings owns the settingsVisible flag } });