Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var a = $('.commentaire'); var b = a[Math.round(Math.random() * (a.length - 1))]; b.style.background = 'red'; var $user = $($(b).find('.spf-link.link.black.b')[0]); var $comment = $($(b).find('.texte')[0]); console.log($user.text(), window.origin + $user.attr('href'), $comment.text()); window.location = window.location.origin + window.location.pathname + '#' + $(b).attr('id');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement