Add a bookmark that is only javascript, not a URL

前端 未结 5 1915
傲寒
傲寒 2020-12-08 02:28

I\'m thinking that the reason I can\'t do this is because it might be a huge security hole, but here goes...

I want to have a bookmark on my browser (FF3, preferably

5条回答
  •  情书的邮戳
    2020-12-08 03:01

    Google Bookmark

    javascript:(function(){var%20a=window,b=document,c=encodeURIComponent,d=a.open("http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk="+c(b.location)+"&title="+c(b.title),"bkmk_popup","left="+((a.screenX||a.screenLeft)+10)+",top="+((a.screenY||a.screenTop)+10)+",height=420px,width=550px,resizable=1,alwaysRaised=1");a.setTimeout(function(){d.focus()},300)})();
    

提交回复
热议问题