This script to unfollow the following on your Github account automatically.
[].slice.call(document.querySelectorAll('.js-toggler-target')).forEach(function(button) {
var x = button.parentNode.getAttribute("action")
if(x.indexOf("/users/unfollow") > -1){console.log(x);button.click();}
});