Guest User

Untitled

a guest
Aug 19th, 2024
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. document.addEventListener('DOMContentLoaded', function() {
  2. if (document.body.classList.contains('single')) { document.querySelectorAll('.comment').forEach(function(commentElement) {
  3. if (commentElement.querySelector('cite a')) {
  4. commentElement.classList.add('my-class');
  5. }
  6. });
  7. }
  8. });
Advertisement
Add Comment
Please, Sign In to add comment