daily pastebin goal
64%
SHARE
TWEET

Untitled

a guest Nov 23rd, 2017 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function andres(message ,n, inter=1000){
  2.     myCounter = 0
  3.  
  4.     spam = function(c){
  5.         document.getElementsByClassName("pluggable-input-body")[0].innerText=message;
  6.         document.getElementsByClassName("pluggable-input-body")[0].dispatchEvent(new Event('input', {bubbles: true}));
  7.         document.getElementsByClassName("compose-btn-send")[0].click();
  8.         myCounter++;
  9.         if(!(myCounter < n )){clearInterval(interval)}
  10.     }
  11.     interval = setInterval(spam, inter);
  12. }
  13. andres("message" /*message*/ , /*number of messages*/, /*miliseconds in between sends*/ )
RAW Paste Data
Top