MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 60: Line 60:
             for (var i = 0; i < nodes.snapshotLength; i++) {
             for (var i = 0; i < nodes.snapshotLength; i++) {
                 var node = nodes.snapshotItem(i);
                 var node = nodes.snapshotItem(i);
                // find the person's name in the node, and surround their name (in the innerhtml) with a span and change the color to purple. Make sure that the name only exists in the text, and not in the html (so we don't change the color of the link)
                 var nodeText = node.textContent;
                 var nodeText = node.textContent;