Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search


  • Content Count

  • Joined

  • Last visited

  1. For those that want a slightly cleaner approach you should check for the existence of the element first. Otherwise you will get JS errors on pages that don't have a comment section. I think the best way would be to figure this out in CSS instead of JS but in the meantime this is a cleaner approach. <script> var commentSection = document.getElementsByClassName("blog-item-comments-toggle"); if (commentSection.length){ commentSection[0].click(); } </script>
  • Create New...