/*
* @title 引用して Twitter
* @description 「"選択中のテキスト": title - URL」という形式で Twitter の投稿ページを開く
* @include http://*
* @license MIT License
* @require
*/
var d = document;
if (d.selection)
s = d.selection.createRange().text;
else if (d.getSelection)
s = d.getSelection();
else if (window.getSelection)
s = window.getSelection();
else
s = "";
if (s && s != "")
s = '"' + s + '": ';
s = s + d.title + " - " + location.href;
window.location='http://twitter.com/home?status=' + encodeURIComponent(s);