Skip to content

Instantly share code, notes, and snippets.

@poochin
Created January 26, 2013 15:46
Show Gist options
  • Select an option

  • Save poochin/4642974 to your computer and use it in GitHub Desktop.

Select an option

Save poochin/4642974 to your computer and use it in GitHub Desktop.
新dsbdの新規投稿
new Ajax.Request('http://www.tumblr.com/svc/post/update',
{
method: 'post',
parameters: '{"form_key":"' + document.body.getAttribute('data-form-key') + '","context_id":"","context_page":"dashboard","is_rich_text[one]":"0","is_rich_text[two]":"0","is_rich_text[three]":"0","channel_id":"' + $$('#popover_blogs .popover_menu_item:not(#button_new_blog)')[0].id.slice(9) + '","post[slug]":"","post[draft_status]":"","post[source_url]":"http://","post[date]":"","post[type]":"regular","post[one]":"test","post[two]":"test","post[tags]":"","post[publish_on]":"","post[state]":"1","custom_tweet":"test - test [URL]"}',
requestHeaders: ['Content-Type', 'application/json']
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment