
現在のページ( goo.gl 、およびbit.ly )の短縮リンクを取得するための簡単なブックマークレットが表示された後、論理的な継続はこの短縮リンクをtwitterに送信するためのブックマークレットである必要があることに気付きました。 その結果、私にとって非常に便利なツールが生まれました。
そのため、通常どおり、ブックマークを作成し、次のコードをそのURLに貼り付けます。
javascript:window.bitly_callback=function(response){if(response.errorCode)alert("Error: "+response.errorMessage);else{var text="";if(document.getSelection)text=document.getSelection();else if(document.selection&&document.selection.createRange)text=document.selection.createRange().text; document.location="http://twitter.com/home/?status="+text+" "+response.results[window.location.href].shortCNAMEUrl}};var s=document.createElement("script"); s.src="http://api.bit.ly/shorten?version=2.0.1&longUrl="+encodeURIComponent(window.location.href)+"&login=twshorten&apiKey=R_17f3f726d1661bbebbdcb571489724dc&callback=bitly_callback"; void document.body.appendChild(s);
興味深いページに移動し、ブックマークレットをクリックして自動的にツイッターにアクセスすると、メッセージフィールドに短縮リンクが既に挿入されています

いくつかの単語を追加するだけです。
チップ
興味深いページにいる場合、ブックマークレットをクリックする前に、テキストを選択してください
メッセージフィールドのリンクの前に自動的に追加されます

今すぐ更新ボタンをクリックしてください:)