Skip to content

Instantly share code, notes, and snippets.

@RAnders00
Created January 1, 2019 15:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RAnders00/687af7267c2acc41f34ca8e99ba56d99 to your computer and use it in GitHub Desktop.
Save RAnders00/687af7267c2acc41f34ca8e99ba56d99 to your computer and use it in GitHub Desktop.
Add arbitrary chat delay in seconds
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