Test Case Boilerplate

Fork this way...

by germLukas

HTML

<a href=http://www.numerique.ca>External link</a>

JavaScript

$("a[href='http:'],a[href^='https:']").not("[href*=" + location.hostname  + "]").prop('target','_blank').not(":has(img)").not("[id]").after('<img  src="http://www.numerique.ca/Images/Icones/icone_externe.gif" width="12" height="12" alt="external  link" style="margin-left:3px;"/>');