Hi,

I did a minor change to your script.

I think the used regex matches too many links. Any link, which includes the proper node_id=\d+ is highlighted (saw this on the home node of a highlighted user).

Don't know if this is intentional, or not.

As I wanted only to highlight links which direct to home nodes, I tried a fix and changed the regex from /node_id=(\d+)/ to /\?node_id=(\d+)$/:

if ( /\?node_id=(\d+)$/.test(links[i].href) && SaintsBook[RegExp.$1] )

Maybe it's a fix, maybe not.

May it be helpful to others ;)


In reply to Re: [Free Nodelet Hack] Highlight monk names accordingly their XP level by linuxer
in thread [Free Nodelet Hack] Highlight monk names accordingly their XP level by ccn

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":