From 217e0cd16248731a95e4eab872e16ec014f66512 Mon Sep 17 00:00:00 2001 From: GaboGG Date: Fri, 31 Jul 2026 07:14:52 -0400 Subject: [PATCH] v0.14.35 - Fix gear panel not showing + remove Daily Activities MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Gear panel: wrapped autoScrapeGear() and buildGearPanel() in try/catch. An exception during scrape (new store-scan loop) killed the onclick handler before the panel was scheduled — panel never appeared. - Removed renderProgressPanel() call (Daily Activities window) per user request — not used. --- scripts/hv-unified.user.js | 14 +++++++++----- scripts/latest.user.js | 14 +++++++++----- src/config.js | 2 +- src/gear-analysis.js | 9 +++++++-- src/header.user.js | 2 +- src/init.js | 1 - 6 files changed, 27 insertions(+), 15 deletions(-) diff --git a/scripts/hv-unified.user.js b/scripts/hv-unified.user.js index fd45412..81b0c32 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.14.34 +// @version 0.14.35 // @description HV Unified — battle automation, guidance, and UI enhancements for HentaiVerse // @author GaboGG + Hermes // @match *://*.hentaiverse.org/* @@ -17,7 +17,7 @@ // CONFIG — default settings // ═══════════════════════════════════════════════════════════════════════ -const VERSION = '0.14.34'; +const VERSION = '0.14.35'; const CFG = { // — Battle automation @@ -3958,8 +3958,13 @@ function enhanceGearAnalysis() { fontSize: '11px', fontFamily: 'monospace', }); analyzeBtn.onclick = () => { - autoScrapeGear(); - setTimeout(buildGearPanel, 300); + try { + autoScrapeGear(); + } catch (e) { console.error('[HV] scrape failed:', e); } + setTimeout(() => { + try { buildGearPanel(); } + catch (e) { console.error('[HV] gear panel failed:', e); } + }, 300); }; bar.appendChild(analyzeBtn); @@ -4318,7 +4323,6 @@ function init() { // Always-on features setupRETimer(); addConfigButton(); - renderProgressPanel(); if (STATE.page === 'battle') { initializeBattle(); diff --git a/scripts/latest.user.js b/scripts/latest.user.js index fd45412..81b0c32 100644 --- a/scripts/latest.user.js +++ b/scripts/latest.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name HV Unified // @namespace hvunified -// @version 0.14.34 +// @version 0.14.35 // @description HV Unified — battle automation, guidance, and UI enhancements for HentaiVerse // @author GaboGG + Hermes // @match *://*.hentaiverse.org/* @@ -17,7 +17,7 @@ // CONFIG — default settings // ═══════════════════════════════════════════════════════════════════════ -const VERSION = '0.14.34'; +const VERSION = '0.14.35'; const CFG = { // — Battle automation @@ -3958,8 +3958,13 @@ function enhanceGearAnalysis() { fontSize: '11px', fontFamily: 'monospace', }); analyzeBtn.onclick = () => { - autoScrapeGear(); - setTimeout(buildGearPanel, 300); + try { + autoScrapeGear(); + } catch (e) { console.error('[HV] scrape failed:', e); } + setTimeout(() => { + try { buildGearPanel(); } + catch (e) { console.error('[HV] gear panel failed:', e); } + }, 300); }; bar.appendChild(analyzeBtn); @@ -4318,7 +4323,6 @@ function init() { // Always-on features setupRETimer(); addConfigButton(); - renderProgressPanel(); if (STATE.page === 'battle') { initializeBattle(); diff --git a/src/config.js b/src/config.js index ce060fe..f696125 100644 --- a/src/config.js +++ b/src/config.js @@ -2,7 +2,7 @@ // CONFIG — default settings // ═══════════════════════════════════════════════════════════════════════ -const VERSION = '0.14.34'; +const VERSION = '0.14.35'; const CFG = { // — Battle automation diff --git a/src/gear-analysis.js b/src/gear-analysis.js index f7e1e2b..f9ec352 100644 --- a/src/gear-analysis.js +++ b/src/gear-analysis.js @@ -250,8 +250,13 @@ function enhanceGearAnalysis() { fontSize: '11px', fontFamily: 'monospace', }); analyzeBtn.onclick = () => { - autoScrapeGear(); - setTimeout(buildGearPanel, 300); + try { + autoScrapeGear(); + } catch (e) { console.error('[HV] scrape failed:', e); } + setTimeout(() => { + try { buildGearPanel(); } + catch (e) { console.error('[HV] gear panel failed:', e); } + }, 300); }; bar.appendChild(analyzeBtn); diff --git a/src/header.user.js b/src/header.user.js index 87fc706..db20fb3 100644 --- a/src/header.user.js +++ b/src/header.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name HV Unified // @namespace hvunified -// @version 0.14.34 +// @version 0.14.35 // @description HV Unified — battle automation, guidance, and UI enhancements for HentaiVerse // @author GaboGG + Hermes // @match *://*.hentaiverse.org/* diff --git a/src/init.js b/src/init.js index b93fa39..ea75152 100644 --- a/src/init.js +++ b/src/init.js @@ -10,7 +10,6 @@ function init() { // Always-on features setupRETimer(); addConfigButton(); - renderProgressPanel(); if (STATE.page === 'battle') { initializeBattle();