User:Ucucha/duplinks.js is a script that highlights links that occur more than once in an article. Per WP:REPEATLINK, terms should generally be linked only once in an article, but there are a number of exceptions to this rule. To account for these exceptions, this script considers only links that are within paragraphs (
<p>...</p> tags) and ignores any links inside an infobox or navbox. In addition, it highlights duplicate links within the lead and within the body of the article separately.
To install the script, add:
importScript('User:Ucucha/duplinks.js'); // [[User:Ucucha/duplinks]]
to Special:MyPage/common.js. There will be a link "Highlight duplicate links" in the toolbox on the left on every mainspace article. Once in Edit mode, clicking it will highlight the duplicate links in the edit preview by drawing a red border around them.
Please report any bugs here or on this page's talk page.