Created
January 1, 2019 15:53
-
-
Save RAnders00/687af7267c2acc41f34ca8e99ba56d99 to your computer and use it in GitHub Desktop.
Add arbitrary chat delay in seconds
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
javascript:(function(){ let seconds = parseInt(prompt('Enter new chat delay option (in seconds):')); let ms = String(seconds * 1000); let newOption = document.createElement('option'); newOption.setAttribute('value', ms); newOption.setAttribute('data-test-selector', "chat-delay-radio:" + ms); newOption.text = seconds + " seconds"; document.querySelector('.chat-delay-menu > .tw-select').appendChild(newOption); })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment