From f3561bb435b21d92fed3fcd6ec8f1df9191d8fd8 Mon Sep 17 00:00:00 2001 From: GaboGG Date: Fri, 31 Jul 2026 08:57:28 -0400 Subject: [PATCH] v0.14.36 - Add diagnostic logs to gear panel (click, build, render) --- scripts/hv-unified.user.js | 10 +++++++--- scripts/latest.user.js | 10 +++++++--- src/config.js | 2 +- src/gear-analysis.js | 6 +++++- src/header.user.js | 2 +- 5 files changed, 21 insertions(+), 9 deletions(-) diff --git a/scripts/hv-unified.user.js b/scripts/hv-unified.user.js index 81b0c32..2db6c5f 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.35 +// @version 0.14.36 // @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.35'; +const VERSION = '0.14.36'; const CFG = { // — Battle automation @@ -3857,6 +3857,7 @@ function analyzeGear() { // ── UI ── function buildGearPanel() { + console.log('%c[HV] 📊 buildGearPanel called', 'color:#0f0'); // Remove old panel const old = document.getElementById('hv-gear-panel'); if (old) old.remove(); @@ -3883,6 +3884,7 @@ function buildGearPanel() { panel.appendChild(title); const { results } = analyzeGear(); + console.log(`%c[HV] 📊 Analysis: ${results.length} slots`, 'color:#0f0'); results.forEach(({ slot, current, cands }) => { const block = document.createElement('div'); @@ -3933,6 +3935,7 @@ function buildGearPanel() { }); document.body.appendChild(panel); + console.log(`%c[HV] 📊 Panel rendered (${document.getElementById('hv-gear-panel') ? 'in DOM' : 'MISSING from DOM'})`, 'color:#0f0'); } function enhanceGearAnalysis() { @@ -3958,11 +3961,12 @@ function enhanceGearAnalysis() { fontSize: '11px', fontFamily: 'monospace', }); analyzeBtn.onclick = () => { + console.log('%c[HV] 🔍 Analyze clicked', 'color:#0f0'); try { autoScrapeGear(); } catch (e) { console.error('[HV] scrape failed:', e); } setTimeout(() => { - try { buildGearPanel(); } + try { buildGearPanel(); console.log('%c[HV] 📊 Panel built', 'color:#0f0'); } catch (e) { console.error('[HV] gear panel failed:', e); } }, 300); }; diff --git a/scripts/latest.user.js b/scripts/latest.user.js index 81b0c32..2db6c5f 100644 --- a/scripts/latest.user.js +++ b/scripts/latest.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name HV Unified // @namespace hvunified -// @version 0.14.35 +// @version 0.14.36 // @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.35'; +const VERSION = '0.14.36'; const CFG = { // — Battle automation @@ -3857,6 +3857,7 @@ function analyzeGear() { // ── UI ── function buildGearPanel() { + console.log('%c[HV] 📊 buildGearPanel called', 'color:#0f0'); // Remove old panel const old = document.getElementById('hv-gear-panel'); if (old) old.remove(); @@ -3883,6 +3884,7 @@ function buildGearPanel() { panel.appendChild(title); const { results } = analyzeGear(); + console.log(`%c[HV] 📊 Analysis: ${results.length} slots`, 'color:#0f0'); results.forEach(({ slot, current, cands }) => { const block = document.createElement('div'); @@ -3933,6 +3935,7 @@ function buildGearPanel() { }); document.body.appendChild(panel); + console.log(`%c[HV] 📊 Panel rendered (${document.getElementById('hv-gear-panel') ? 'in DOM' : 'MISSING from DOM'})`, 'color:#0f0'); } function enhanceGearAnalysis() { @@ -3958,11 +3961,12 @@ function enhanceGearAnalysis() { fontSize: '11px', fontFamily: 'monospace', }); analyzeBtn.onclick = () => { + console.log('%c[HV] 🔍 Analyze clicked', 'color:#0f0'); try { autoScrapeGear(); } catch (e) { console.error('[HV] scrape failed:', e); } setTimeout(() => { - try { buildGearPanel(); } + try { buildGearPanel(); console.log('%c[HV] 📊 Panel built', 'color:#0f0'); } catch (e) { console.error('[HV] gear panel failed:', e); } }, 300); }; diff --git a/src/config.js b/src/config.js index f696125..4deaef3 100644 --- a/src/config.js +++ b/src/config.js @@ -2,7 +2,7 @@ // CONFIG — default settings // ═══════════════════════════════════════════════════════════════════════ -const VERSION = '0.14.35'; +const VERSION = '0.14.36'; const CFG = { // — Battle automation diff --git a/src/gear-analysis.js b/src/gear-analysis.js index f9ec352..7c1461d 100644 --- a/src/gear-analysis.js +++ b/src/gear-analysis.js @@ -149,6 +149,7 @@ function analyzeGear() { // ── UI ── function buildGearPanel() { + console.log('%c[HV] 📊 buildGearPanel called', 'color:#0f0'); // Remove old panel const old = document.getElementById('hv-gear-panel'); if (old) old.remove(); @@ -175,6 +176,7 @@ function buildGearPanel() { panel.appendChild(title); const { results } = analyzeGear(); + console.log(`%c[HV] 📊 Analysis: ${results.length} slots`, 'color:#0f0'); results.forEach(({ slot, current, cands }) => { const block = document.createElement('div'); @@ -225,6 +227,7 @@ function buildGearPanel() { }); document.body.appendChild(panel); + console.log(`%c[HV] 📊 Panel rendered (${document.getElementById('hv-gear-panel') ? 'in DOM' : 'MISSING from DOM'})`, 'color:#0f0'); } function enhanceGearAnalysis() { @@ -250,11 +253,12 @@ function enhanceGearAnalysis() { fontSize: '11px', fontFamily: 'monospace', }); analyzeBtn.onclick = () => { + console.log('%c[HV] 🔍 Analyze clicked', 'color:#0f0'); try { autoScrapeGear(); } catch (e) { console.error('[HV] scrape failed:', e); } setTimeout(() => { - try { buildGearPanel(); } + try { buildGearPanel(); console.log('%c[HV] 📊 Panel built', 'color:#0f0'); } catch (e) { console.error('[HV] gear panel failed:', e); } }, 300); }; diff --git a/src/header.user.js b/src/header.user.js index db20fb3..7c1dd38 100644 --- a/src/header.user.js +++ b/src/header.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name HV Unified // @namespace hvunified -// @version 0.14.35 +// @version 0.14.36 // @description HV Unified — battle automation, guidance, and UI enhancements for HentaiVerse // @author GaboGG + Hermes // @match *://*.hentaiverse.org/*