how to make official Tumblr bookmarklet link button for firefox.
FirefoxのナビゲーションツールバーにTumblrブックマークレット(共有ボタン)を設置する方法
- install Custom Button Add-on.
Custom Buttonアドオンをインストール - right click on the navigationbar,then select “Add New Button”
ナビゲーションバーを右クリック→Add New Buttonを選択 - select “Code” tab and write this code
Codeタブを選択して下記のコードを入力loadURI (“javascript:var%20d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f=’http://www.tumblr.com/share’,l=d.location,e=encodeURIComponent,p=’?v=3&u=’+e(l.href)%20+’&t=’+e(d.title)%20+’&s=’+e(s),u=f+p;try{if(!/^(.*.)?tumblr[^.]*$/.test(l.host))throw(0);tstbklt();}catch(z){a%20=function(){if(!w.open(u,’t’,’toolbar=0,resizable=0,status=1,width=450,height=430’))l.href=u;};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();}void(0)”);
-
choose icon image which you like,and press OK.
好きなアイコンを選択してOKをクリック。
enjoy(・∀・)