Skip to content

Instantly share code, notes, and snippets.

💾
🔥

Xiuming Chen cxmcc

💾
🔥
Block or report user

Report or block cxmcc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cxmcc
cxmcc / nuke-branch.js
Created Mar 21, 2017
Nuke all Closed and Merged branches on a github web page.
View nuke-branch.js
// 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];
You can’t perform that action at this time.