改進新浪微博Bookmarklet

改進內容:javascript

先前只會把當前頁的標題(title)微博內容。。改進以後,會把選中的內容做爲微博內容。php

改進以後的代碼:java

javascript:
(function(){
  window.open('http://v.t.sina.com.cn/share/share.php?title='+encodeURIComponent(window.content.getSelection().toString())+'&url='+encodeURIComponent(location.href)+'&source=bookmark','_blank','');
}
)()ide

相關文章
相關標籤/搜索