Last active
May 12, 2019 11:22
-
-
Save JustinShenk/d93af0c0be8a40776d0e1bb31e023526 to your computer and use it in GitHub Desktop.
Click the first reaction in an open Slack channel
This file contains 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
// How to use: open Console (View -> Developer -> Developer Tools -> Console) | |
// and paste one of the following: | |
/** | |
* Agree with ~first~ reaction in active Slack channel, poll every 10 seconds. | |
**/ | |
function clickFirstReaction() { | |
$("div.c-reaction_bar > button:nth-child(1):not(.c-reaction--reacted)").click() | |
} | |
var timerID = setInterval(clickFirstReaction, 10000); | |
// -- // | |
/** | |
* Agree with ~every~ reaction in active Slack channel, poll every 10 seconds. | |
**/ | |
function clickEveryReaction() { | |
$("div > button.c-button-unstyled.c-reaction:not(.c-reaction--reacted) > span.emoji-outer.emoji-sizer").click() | |
} | |
var timerID = setInterval(clickEveryReaction, 10000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment