Skip to content

Instantly share code, notes, and snippets.

@jsor
Created January 19, 2011 14:43
Show Gist options
  • Save jsor/786249 to your computer and use it in GitHub Desktop.
Save jsor/786249 to your computer and use it in GitHub Desktop.
// Visit the profile page of the organisation (e.g. https://github.com/facebook) and ensure you're logged in. Then run the following javascript code using Firebug
var x = new XMLHttpRequest(), user = location.pathname.substr(1), s = user.indexOf('/');
if (s != -1) {
user = user.substring(0, s);
};
x.open("POST","/users/follow?target="+user, true);
x.send('request_uri=/'+user+'&authenticity_token='+window._auth_token);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment