NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Telegram Auto Spammer // @copyright SilkArt (GitHub) // @license MIT // ==/UserScript== var message = prompt("Message:"); var interval = prompt("Messages interval:") ; var count = prompt("Messages count:") ; var notifyInterval = prompt("Notification interval:") ; var i = 0 ; var timer = setInterval(function(){ document.getElementsByClassName('composer_rich_textarea')[0].innerHTML = message; $('.im_submit').trigger('mousedown'); i++; if( i == count ) clearInterval(timer); if( i % notifyInterval == 0) console.log(i + ' MESSAGES SENT'); } , interval * 1000 ) ;