Skip to content

Instantly share code, notes, and snippets.

View PabloHorno's full-sized avatar
🏠
Working from home

Pablo PabloHorno

🏠
Working from home
View GitHub Profile
[...document.querySelectorAll('a[href*="verManual" i')]
.forEach(a => {
const match = a.href.match(/verManual\(([^)]+)\);/i);
if (match && match[1] && typeof verManual === 'function') {
try {
const args = new Function('return [' + match[1] + '];')();
console.log(`Ejecutando verManual para: ${a.textContent.trim().substring(0, 40)}...`);
window.verManual.apply(null, args);
} catch (e) {
console.error('Error al ejecutar para:', a.href, e);