v0.16.3 - Fix ',' toggle double-flip desync (settings key now opens AND closes)
This commit is contained in:
parent
de9605609e
commit
20068df55c
5 changed files with 9 additions and 12 deletions
|
|
@ -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
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
// CONFIG — default settings
|
||||
// ═══════════════════════════════════════════════════════════════════════
|
||||
|
||||
const VERSION = '0.16.2';
|
||||
const VERSION = '0.16.3';
|
||||
|
||||
const CFG = {
|
||||
// — Battle strategy advisory
|
||||
|
|
|
|||
|
|
@ -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/*
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue