Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document.addEventListener('DOMContentLoaded', function() {
- if (document.body.classList.contains('single')) { document.querySelectorAll('.comment').forEach(function(commentElement) {
- if (commentElement.querySelector('cite a')) {
- commentElement.classList.add('my-class');
- }
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment