Skip to content

Instantly share code, notes, and snippets.

@Dramacydal
Created August 9, 2020 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dramacydal/5476f532603dc58f9c0c52083d888bbc to your computer and use it in GitHub Desktop.
Save Dramacydal/5476f532603dc58f9c0c52083d888bbc to your computer and use it in GitHub Desktop.
(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