Skip to content

Instantly share code, notes, and snippets.

@PabloHorno
Created October 17, 2025 20:14
Show Gist options
  • Select an option

  • Save PabloHorno/ce7e8564ca59b31d63a574855a8cecc8 to your computer and use it in GitHub Desktop.

Select an option

Save PabloHorno/ce7e8564ca59b31d63a574855a8cecc8 to your computer and use it in GitHub Desktop.
Siepa read all docs
[...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);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment