Skip to content

Instantly share code, notes, and snippets.

@albinekb
Created May 13, 2016 12:34
Show Gist options
  • Save albinekb/adb85d1005e4dffe0494a0f4dc29b3b2 to your computer and use it in GitHub Desktop.
Save albinekb/adb85d1005e4dffe0494a0f4dc29b3b2 to your computer and use it in GitHub Desktop.
function run () {
const updateButton = document.querySelector('.branch-action-btn button')
const mergeButton = document.querySelector('.merge-message button')
if (mergeButton.disabled && !updatebutton.disabled) {
updateButton.click()
} else if (!mergeButton.disabled) {
mergeButton.click()
}
}
setInterval(run(), 5000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment