v0.16.3 - Fix ',' toggle double-flip desync (settings key now opens AND closes)

This commit is contained in:
GaboGG 2026-08-04 15:08:41 -04:00
parent de9605609e
commit 20068df55c
5 changed files with 9 additions and 12 deletions

View file

@ -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
}
});

View file

@ -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
}
});

View file

@ -2,7 +2,7 @@
// CONFIG — default settings
// ═══════════════════════════════════════════════════════════════════════
const VERSION = '0.16.2';
const VERSION = '0.16.3';
const CFG = {
// — Battle strategy advisory

View file

@ -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/*

View file

@ -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
}
});