Overlay Tools (ex: delete branches etc...)
- add chrome extension
cjs
(add jQuery) - add the following code
- goto /branches
// branches that you don't want to delete
var white_list = ["master", "develop", "devops"]
$('body').prepend('<div style="position:fixed;z-index:9999;float:left;">'+
' <button style="background:orange;" id="remove_branches">'+
' Remove Branches'+
' </button>'+
'</div>');
$('#remove_branches').click(remove_branches);
function remove_branches(){
$('div.branch-summary').each(function(index){
var _this = $(this);
setTimeout(function(){
var branch_name = _this.data('branch-name').toLowerCase();
if(!white_list.includes(branch_name)){
console.log(branch_name);
_this.find('.branch-delete').eq(0).click();
}
}, index*300)
})
}