前往
大廳
主題

三個書籤小工具Bookmarklet-分享轉貼到噗浪、推特、臉書

—— | 2014-10-11 01:08:34 | 巴幣 0 | 人氣 514

在沒有提供分享到社群網站按鈕的網站時可用。
使用方法:新增書籤/我的最愛,把下面代碼貼在網址,要用時點一下即可。

臉書:
javascript:var%20d=document,f='http://www.facebook.com/share',l=d.location,e=encodeURIComponent,p='.php?src=bm&v=4&i=1291997811&u='+e(l.href)+'&t='+e(d.title);1;try{if%20(!/^(.*\.)?facebook\.[^.]*$/.test(l.host))throw(0);share_internal_bookmarklet(p)}catch(z)%20{a=function()%20{if%20(!window.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=1,width=626,height=436'))l.href=f+p};if%20(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}}void(0)

推特:
javascript:void((()=> {
  var F=document,E=encodeURIComponent;
  window.open(`https://twitter.com/intent/tweet/?text=${E(F.title)}&url=${E(F.location.href)}`);
})());


這個的推特失效,噗浪應該可以用,我不用噗浪
「可畫重點」的 Twitter、Plurk瀏覽器推文按鈕(Bookmarklet書籤小工具) | 重灌狂人

用兩家以上可以合併
合併Bookmarklet,讓書籤工具列更乾淨 | 硬是要學

創作回應

相關創作

更多創作