v0.14.36 - Add diagnostic logs to gear panel (click, build, render)
This commit is contained in:
parent
217e0cd162
commit
f3561bb435
5 changed files with 21 additions and 9 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
// CONFIG — default settings
|
||||
// ═══════════════════════════════════════════════════════════════════════
|
||||
|
||||
const VERSION = '0.14.35';
|
||||
const VERSION = '0.14.36';
|
||||
|
||||
const CFG = {
|
||||
// — Battle automation
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue