v0.14.35 - Fix gear panel not showing + remove Daily Activities
- 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.
This commit is contained in:
parent
03cbccf703
commit
217e0cd162
6 changed files with 27 additions and 15 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name HV Unified
|
// @name HV Unified
|
||||||
// @namespace hvunified
|
// @namespace hvunified
|
||||||
// @version 0.14.34
|
// @version 0.14.35
|
||||||
// @description HV Unified — battle automation, guidance, and UI enhancements for HentaiVerse
|
// @description HV Unified — battle automation, guidance, and UI enhancements for HentaiVerse
|
||||||
// @author GaboGG + Hermes
|
// @author GaboGG + Hermes
|
||||||
// @match *://*.hentaiverse.org/*
|
// @match *://*.hentaiverse.org/*
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
// CONFIG — default settings
|
// CONFIG — default settings
|
||||||
// ═══════════════════════════════════════════════════════════════════════
|
// ═══════════════════════════════════════════════════════════════════════
|
||||||
|
|
||||||
const VERSION = '0.14.34';
|
const VERSION = '0.14.35';
|
||||||
|
|
||||||
const CFG = {
|
const CFG = {
|
||||||
// — Battle automation
|
// — Battle automation
|
||||||
|
|
@ -3958,8 +3958,13 @@ function enhanceGearAnalysis() {
|
||||||
fontSize: '11px', fontFamily: 'monospace',
|
fontSize: '11px', fontFamily: 'monospace',
|
||||||
});
|
});
|
||||||
analyzeBtn.onclick = () => {
|
analyzeBtn.onclick = () => {
|
||||||
|
try {
|
||||||
autoScrapeGear();
|
autoScrapeGear();
|
||||||
setTimeout(buildGearPanel, 300);
|
} catch (e) { console.error('[HV] scrape failed:', e); }
|
||||||
|
setTimeout(() => {
|
||||||
|
try { buildGearPanel(); }
|
||||||
|
catch (e) { console.error('[HV] gear panel failed:', e); }
|
||||||
|
}, 300);
|
||||||
};
|
};
|
||||||
bar.appendChild(analyzeBtn);
|
bar.appendChild(analyzeBtn);
|
||||||
|
|
||||||
|
|
@ -4318,7 +4323,6 @@ function init() {
|
||||||
// Always-on features
|
// Always-on features
|
||||||
setupRETimer();
|
setupRETimer();
|
||||||
addConfigButton();
|
addConfigButton();
|
||||||
renderProgressPanel();
|
|
||||||
|
|
||||||
if (STATE.page === 'battle') {
|
if (STATE.page === 'battle') {
|
||||||
initializeBattle();
|
initializeBattle();
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name HV Unified
|
// @name HV Unified
|
||||||
// @namespace hvunified
|
// @namespace hvunified
|
||||||
// @version 0.14.34
|
// @version 0.14.35
|
||||||
// @description HV Unified — battle automation, guidance, and UI enhancements for HentaiVerse
|
// @description HV Unified — battle automation, guidance, and UI enhancements for HentaiVerse
|
||||||
// @author GaboGG + Hermes
|
// @author GaboGG + Hermes
|
||||||
// @match *://*.hentaiverse.org/*
|
// @match *://*.hentaiverse.org/*
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
// CONFIG — default settings
|
// CONFIG — default settings
|
||||||
// ═══════════════════════════════════════════════════════════════════════
|
// ═══════════════════════════════════════════════════════════════════════
|
||||||
|
|
||||||
const VERSION = '0.14.34';
|
const VERSION = '0.14.35';
|
||||||
|
|
||||||
const CFG = {
|
const CFG = {
|
||||||
// — Battle automation
|
// — Battle automation
|
||||||
|
|
@ -3958,8 +3958,13 @@ function enhanceGearAnalysis() {
|
||||||
fontSize: '11px', fontFamily: 'monospace',
|
fontSize: '11px', fontFamily: 'monospace',
|
||||||
});
|
});
|
||||||
analyzeBtn.onclick = () => {
|
analyzeBtn.onclick = () => {
|
||||||
|
try {
|
||||||
autoScrapeGear();
|
autoScrapeGear();
|
||||||
setTimeout(buildGearPanel, 300);
|
} catch (e) { console.error('[HV] scrape failed:', e); }
|
||||||
|
setTimeout(() => {
|
||||||
|
try { buildGearPanel(); }
|
||||||
|
catch (e) { console.error('[HV] gear panel failed:', e); }
|
||||||
|
}, 300);
|
||||||
};
|
};
|
||||||
bar.appendChild(analyzeBtn);
|
bar.appendChild(analyzeBtn);
|
||||||
|
|
||||||
|
|
@ -4318,7 +4323,6 @@ function init() {
|
||||||
// Always-on features
|
// Always-on features
|
||||||
setupRETimer();
|
setupRETimer();
|
||||||
addConfigButton();
|
addConfigButton();
|
||||||
renderProgressPanel();
|
|
||||||
|
|
||||||
if (STATE.page === 'battle') {
|
if (STATE.page === 'battle') {
|
||||||
initializeBattle();
|
initializeBattle();
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
// CONFIG — default settings
|
// CONFIG — default settings
|
||||||
// ═══════════════════════════════════════════════════════════════════════
|
// ═══════════════════════════════════════════════════════════════════════
|
||||||
|
|
||||||
const VERSION = '0.14.34';
|
const VERSION = '0.14.35';
|
||||||
|
|
||||||
const CFG = {
|
const CFG = {
|
||||||
// — Battle automation
|
// — Battle automation
|
||||||
|
|
|
||||||
|
|
@ -250,8 +250,13 @@ function enhanceGearAnalysis() {
|
||||||
fontSize: '11px', fontFamily: 'monospace',
|
fontSize: '11px', fontFamily: 'monospace',
|
||||||
});
|
});
|
||||||
analyzeBtn.onclick = () => {
|
analyzeBtn.onclick = () => {
|
||||||
|
try {
|
||||||
autoScrapeGear();
|
autoScrapeGear();
|
||||||
setTimeout(buildGearPanel, 300);
|
} catch (e) { console.error('[HV] scrape failed:', e); }
|
||||||
|
setTimeout(() => {
|
||||||
|
try { buildGearPanel(); }
|
||||||
|
catch (e) { console.error('[HV] gear panel failed:', e); }
|
||||||
|
}, 300);
|
||||||
};
|
};
|
||||||
bar.appendChild(analyzeBtn);
|
bar.appendChild(analyzeBtn);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name HV Unified
|
// @name HV Unified
|
||||||
// @namespace hvunified
|
// @namespace hvunified
|
||||||
// @version 0.14.34
|
// @version 0.14.35
|
||||||
// @description HV Unified — battle automation, guidance, and UI enhancements for HentaiVerse
|
// @description HV Unified — battle automation, guidance, and UI enhancements for HentaiVerse
|
||||||
// @author GaboGG + Hermes
|
// @author GaboGG + Hermes
|
||||||
// @match *://*.hentaiverse.org/*
|
// @match *://*.hentaiverse.org/*
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ function init() {
|
||||||
// Always-on features
|
// Always-on features
|
||||||
setupRETimer();
|
setupRETimer();
|
||||||
addConfigButton();
|
addConfigButton();
|
||||||
renderProgressPanel();
|
|
||||||
|
|
||||||
if (STATE.page === 'battle') {
|
if (STATE.page === 'battle') {
|
||||||
initializeBattle();
|
initializeBattle();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue