Keep It Simple, Stupid | |
PerlMonks |
Nodelet Hack to auto-linkify modules in code sections (well almost)by LanX (Saint) |
on Jul 22, 2022 at 17:15 UTC ( [id://11145661]=monkdiscuss: print w/replies, xml ) | Need Help?? |
Hi I just wanted to hack a free nodelet hack (sic) on the fly, which automatically links any used or required module in code-sections to CPAN. But I don't know what I'm doing wrong, can't make it work yet. Not sure if it's a JS problem or related to Chrome and security issues (couldn't test in FF yet). Before scratching all the efforts, I thought it might be reasonable to ask for help. paste this into the JS Console
and call linkCPAN() you should see the properly replaced HTML in the console, but nothing happens in the window. here some input for testing
Any ideas?
Cheers Rolf
updatefixed JS has no hashes but objects bug with if (!codes.hasOwnProperty(i)) continue;
Back to
Perl Monks Discussion
|
|