通过纯js的方式创建书签,确实是一种不错的向下思维。首先兼容性肯定没问题了,书签又可以云同步!
不错啊@
javascript:(function(){var description;var desString="";var metas=document.getElementsByTagName('meta');for(var x=0,y=metas.length;x<y;x++){if(metas[x].name.toLowerCase()=="description"){description=metas[x];}}if(description){desString="&description="+encodeURIComponent(description.content);}var win=window.open("http://favorites.ren/collect?from=webtool&url="+encodeURIComponent(document.URL)+desString+"&title="+encodeURIComponent(document.title)+"&charset="+document.charset,'_blank');win.focus();})();