enigmathe chat window is just an iframe, meaning it's not part of this site at all
I figured as much, though I probably should have just checked by looking at the page source.
brownymasterPretty sure they won't let remote sites do this or I could make a webpage that automatically makes you follow a channel. I hope they don't add it unless they also add in openid (which they need to) because I would exploit the fuck out of it.
Openid at least requires a login/user verification. Would also making giving sub perks 100x easier.
They allow third-party sites/application to do things listed in the api: https://github.com/justintv/Twitch-API
Honestly, the best solution is for twitch to implement an embeddable follow button, so that any site using their api could have a consistent look and feel for the follow (similar to how "like" works for facebook or follow for twitter).
With the current exposed api, it's possible to implement your own, but it would be a lot of work on the site:
Enigma would likely first have to register with twitch as a developer so that they let him access certain features and so his requests from his web server aren't throttled/denied.
Next he would have to add twitch logon to this site, likely as an additional logon protocol similar to the steam one (which opens up its own can of worms as far as user experience on the site and as far as adding in special casing and database schema changes likely).
Then he would just need to add a button to the site which when hit, sends the correct PUT request to the endpoint listed in the api which would cause them to follow the channel.
But if twitch were to make such an embeddable button, all of that work would go to waste. So it might make more sense to simply request the feature from twitch and hope they go do it. And I bet they already are working on such a thing.