Skip to content

Instantly share code, notes, and snippets.

View cxmcc's full-sized avatar
🏠
Working from home

Xiuming Chen cxmcc

🏠
Working from home
View GitHub Profile
@cxmcc
cxmcc / nuke-branch.js
Created March 21, 2017 23:12
Nuke all Closed and Merged branches on a github web page.
// Paste into console
// Need to disable Content Security Policy in your browser
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
var branch_actions = $('.branch-actions');
$.each(branch_actions, function() {
var first_child = this.children[0];