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();