Skip to content

Instantly share code, notes, and snippets.

@dberstein
dberstein / tweet-shindanmaker.js
Created June 27, 2011 18:01 — forked from ucnv/tweet-shindanmaker.js
phantomjs script to tweet through shindanmaker.com
var tweet;
var twitter_id = "";
var twitter_pw = "";
var phase;
var setState = function(nextPhase) {
var s = {tweet: tweet, twitter_id: twitter_id, twitter_pw: twitter_pw, phase: nextPhase};
phantom.state = JSON.stringify(s);
};
if(!phantom.state.length) {
var i, args = Array.prototype.slice.apply(phantom.args);