Skip to content

Instantly share code, notes, and snippets.

@sandbochs
Last active December 15, 2015 05:38
Show Gist options
  • Save sandbochs/5210014 to your computer and use it in GitHub Desktop.
Save sandbochs/5210014 to your computer and use it in GitHub Desktop.
$('tr.unmerged-content td.name h3 a.css-truncate').each(function(i, el) {
url = el.href.replace('/tree/', '/branches/');
console.log(url);
// $.ajax({
// url: url,
// type: 'DELETE'
// })
})
$('tr.merged-content td.name h3 a.css-truncate').each(function(i, el) {
url = el.href.replace('/tree/', '/branches/');
console.log(url);
// $.ajax({
// url: url,
// type: 'DELETE'
// })
})
$('tr.merged-content td.name h3 a.css-truncate').length
$('tr.unmerged-content td.name h3 a.css-truncate').length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment