让 chrome 支持 google bookmarks

1 任意将一个连接拖到 chrome 的 toolbar 上
2 右单击 修改, 将网址改为
 
javascript:void(function(){var d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:'',r='http://www.google.com/bookmarks/mark?op=add&title=&bkmk='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'bookmarks','toolbar=0,resizable=1,scrollbars=yes,status=1,width=680,height=500'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()



另外 测试过 firefox, opera

并可以自动生成 title

你可能感兴趣的:(JavaScript,Google,chrome,Opera,firefox)