Created
January 19, 2011 14:43
-
-
Save jsor/786249 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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