You won't do shit.
You talk alot but you do nothing.
let number=0
function produceRandomMessage(length) {
number+=1;
return number;
}
var btnPostMessage = document.getElementsByClassName("button--primary button button--icon button--icon--reply")[0];
setInterval(function(){
// This is the number of messages in that page
let index =document.getElementsByClassName("actionBar-action actionBar-action--reply").length
//This is the last message in that page
let btnLastMessage =document.getElementsByClassName("actionBar-action actionBar-action--reply")[index-1]
if(index>1){ // If there are at least two messages in the page
let random = Math.floor(Math.random()*11)
let author = document.getElementsByClassName("message message--conversationMessage js-message")[index-1].dataset.author
if(random>0 && random<8 && author !="decembrist_kirillov"){ // If this post is someone else's post
btnLastMessage.click()
}
else if(random==8 && author=='decembrist_kirillov' ){
btnLastMessage.click()
}
}
document.getElementsByClassName("fr-element fr-view fr-element-scroll-visible")[0].innerHTML+=produceRandomMessage();
btnPostMessage .click();
document.getElementsByClassName("fr-element fr-view fr-element-scroll-visible")[0].innerHTML=""
const yikes =document.getElementsByClassName("overlay-container is-active")[0]
if(yikes!=null){
number--;
yikes.remove();
}
else{
console.log(number)
}
}, 1761);