Created
August 9, 2020 18:25
-
-
Save Dramacydal/5476f532603dc58f9c0c52083d888bbc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function test() { | |
let e = document.getElementsByClassName('reply'); | |
let i = 0; | |
e.forEach(function(e2) { | |
let author = '', text = ''; | |
let authorE = e2.getElementsByClassName('author'); | |
if (authorE.length > 0) { | |
author = authorE[0].innerText; | |
} | |
let textE = e2.getElementsByClassName('wall_reply_text'); | |
if (textE.length > 0) { | |
text = textE[0].innerText; | |
} | |
console.log(++i + ': <' + author + '> ' + text); | |
}) | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment