Those long comments with all the links are posted by spam scripts and won't be affected by any javascript in the comment form.