This is a script that will find duplicate page elements and return the index of where those elements are
The folks over at Google have hit another winner.If you have'nt been introduced to Google's Closure Compiler you missing out on a great tool.To put it in Google's own words:
When troubleshooting code I try to follow a set path in order to quickly isolate the issue. The problem is that I’m just as guilty as others at trying to shortcut the process. One major trap I fall into is the time consuming ‘wandering’ into certain parts of the code and encountering a road block by not staying on the original path. In doing this I often end up chasing problems that are caused by other problems that need to be addressed first. With that being said I have developed a good instinct for finding problem code.