Skip to content

Instantly share code, notes, and snippets.

@nobodyplace
Created September 26, 2010 04:32
Show Gist options
  • Save nobodyplace/597606 to your computer and use it in GitHub Desktop.
Save nobodyplace/597606 to your computer and use it in GitHub Desktop.
mataniconicomiteruのシンプル版用コード
var w = unsafeWindow;
var subject = w.Video.title;
var url = 'http://nico.ms/' + w.Video.id;
var vinfo = 'watch: ' + subject + ' ' + url + ' #nicovideo #' + w.Video.id;
tw.xhr({
method: 'POST',
url: 'https://twitter.com/statuses/update.json',
headers: {
'Content-type': 'application/x-www-form-urlencoded'
},
data: {
status : vinfo,
},
onload: function(res) {
},
onerror: function(res) {
GM_log(res.status + ':' + res.statusText);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment