Skip to content

Instantly share code, notes, and snippets.

@devdrops
Last active May 25, 2017 19:15
Show Gist options
  • Select an option

  • Save devdrops/26e841f9ea934ff718e49896b2b18ed7 to your computer and use it in GitHub Desktop.

Select an option

Save devdrops/26e841f9ea934ff718e49896b2b18ed7 to your computer and use it in GitHub Desktop.
Go Travis Go!

Go Travis Go!

Kudos para @MarcoWorms por criar o script original - eu só fiz como bookmark e coloquei os ponto-e-vírgula :D

  1. Crie uma nova bookmark no Chrome;
  2. Em Bookmark Manager, edite o conteúdo da Bookmark colocando o trecho de código abaixo:
javascript:(function(){window.setInterval(() => document.querySelectorAll('.jobs-item.failed').forEach(build => {console.log('Restarting build', build.querySelector('.job-env').textContent.trim(), (new Date()).toString()); build.querySelector('.action-button--restart').click(); }), 5000); }());
  1. Clique para executar.
  2. PROFIT!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment