Last active
August 14, 2017 02:05
-
-
Save OR13/75c1f1b867f955d1c4d76e4c6411504a to your computer and use it in GitHub Desktop.
Spam Slack
This file contains hidden or 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
window.setInterval(function(){ | |
var msg = 'virus ' + Math.random(); | |
// make sure the command does not have a confirmation step... like giphy does | |
// msg = @user ... etc... | |
document.getElementsByClassName('ql-editor')[0].innerHTML = '<p>' + msg + '</p>' | |
window.TS.view.submit(); | |
}, 1 * 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey there! I am trying to make 'dm everyody' code out of your demo.
I have a storage var that stores the @Handles of all members. thought the code would go like this:
for(var i=0; i<storage.length;i++) { document.getElementsByClassName('ql-editor')[0].innerHTML = '<p>' + '/dm ' + storage[i] + ' test'+ '</p>' ; window.TS.view.submit(); }
but it does not submit. What am I doing wrong?