Skip to content

Instantly share code, notes, and snippets.

@PeterPorzuczek
Last active May 6, 2022 23:58
Show Gist options
  • Select an option

  • Save PeterPorzuczek/7b7ceb1f063948e7396689fc3cfdab2c to your computer and use it in GitHub Desktop.

Select an option

Save PeterPorzuczek/7b7ceb1f063948e7396689fc3cfdab2c to your computer and use it in GitHub Desktop.
// I believe in code reuse so Ctrl-C and Ctrl-V in console of YT page :-> Enjoy :-)
// It may not work since YT records site usage and not accepts recognized patterns
document.getElementById('simplebox-placeholder').focus();
for(var i = 0; i < 120; i++) {
setTimeout(function (x) {
document.getElementById('contenteditable-root').textContent = "To jest " + x + " odcinek front-endowy";
document.getElementById('submit-button').disabled = false;
document.getElementById('submit-button').click();
}.bind(this, i), i * 15000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment