Skip to content

Instantly share code, notes, and snippets.

@kamipo
Created March 19, 2009 10:44
Show Gist options
  • Save kamipo/81754 to your computer and use it in GitHub Desktop.
Save kamipo/81754 to your computer and use it in GitHub Desktop.
(function(){
var dc=document;
var t=dc.title;
var u=location.href;
var f=dc.createElement('form');
f.action='http://mixi.jp/add_diary.pl?id=374297';
f.method='post';
f.name='mixi';
f.innerHTML='<input type="hidden" name="diary_body" value="'+t+"¥n"+u+'">'
+'<input type="hidden" name="news_title" value="'+t+'">';
dc.body.appendChild(f);
dc.forms[dc.forms.length-1].submit()
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment