Created
April 17, 2019 13:19
-
-
Save jeremypage/f6df38c8b70d24680469231311073884 to your computer and use it in GitHub Desktop.
JavaScript: Add 'external link' annotation to specific (external) links
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('a[href*="<EXTERNAL URL>"]').each(function(){$(this).after(" <span class='external-link'>(external link)</span>")}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment