Skip to content

Instantly share code, notes, and snippets.

@longjasonm
Created September 11, 2013 21:15
Show Gist options
  • Save longjasonm/6529893 to your computer and use it in GitHub Desktop.
Save longjasonm/6529893 to your computer and use it in GitHub Desktop.
Make all links on a page "nofollow".
<script type="text/javascript">
if ( typeof $jQ == 'undefined' ) { var $jQ = jQuery.noConflict(); }
$jQ(document).ready(function() {
$jQ('a').attr('rel', 'nofollow');
})
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment